Notifications
Clear all
[Closed] collect all controller with script _controller
Apr 30, 2018 5:18 pm
Hi everybody
We have some objects selected. which some of them have freezed transform some of them have list controller in position and rotation.
My question is :
Is there a way collect all the controller with script controller (float script) and for example apply bezier float or change the script controller’s text to something
Thanks in advance
2 Replies
1 Reply
-- get all scripts from transform controllers
ss = getclassinstances float_script target:$.controller
-- replace to not unique:
c = bezier_float()
for s in ss do replaceinstances s c
-- replace to unique:
for s in ss do replaceinstances s (bezier_float())
-- change script for all to the same:
ss.script = <new script> -- for example: ss.script = "0"