Notifications
Clear all

[Closed] collect all controller with script _controller

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
(@denist)
Joined: 10 months ago

Posts: 0

-- 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"


Big thanks for a Big help