Notifications
Clear all

[Closed] Apply linear to all animated cotroller

Hey everybody
I’ve found this page [quote=]  http://forums.cgsociety.org/showthread.php?f=98&t=1020938&page=2&pp=15 while i was searching, it tries to collect all animated objects in the scene at any controller or …

Now my question is how to apply linear_float to all animated controller in the selected objects or scene

3 Replies

here is an idea. debug yourself:


for c in floatcontroller.classes where c.creatable and c != Linear_Float do
(
   for node in nodes do
   (
      tpvs = getclassinstances c target:node astrackviewpick:on 
      for tpv in tpvs do
      (
         tpv.client[tpv.subnum].controller = linear_float()
      )
   )
)

Nice example Denis!

Thanks denis For the answer.