Charlie Winter Posted January 15, 2019 Share Posted January 15, 2019 (edited) Is it possible for a script to assign a specified class (written into the script) to single or multiple selected Lighting Device Objets? Edited January 15, 2019 by Charlie Winter Quote Link to comment
JBenghiat Posted January 15, 2019 Share Posted January 15, 2019 A single object is easy: SetClass( FSActLayer, ‘Class Name’ ); All select objects takes a bit more code structure. Look at ForEachObjectInList, which will iterate through objects. You can set the function to traverse all selected objects. Quote Link to comment
Julian Carr Posted January 15, 2019 Share Posted January 15, 2019 So what Josh is referring to is a structure like this, which is one of the most time saving scripts you can have because it can be adapted to do so many things:: Procedure TimeSaver; Procedure DoIt(h1 : HANDLE); BEGIN SetClass( h1, ‘Class Name’ ); END; BEGIN ForEachObject(DoIt, (Sel = True)); END; Run(TimeSaver); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.