Loads of keyframes in loads of objects.....

   1469   2   1
User Avatar
Member
115 posts
Joined: Feb. 2014
Offline
So I have lots of things at object level and lots of things in each object with lots of keyframes. Now I want to edit all the fcurves in one go so I need all the keyframed parameters in the animation editor. Do I really have to go into all 60 objects, select all the keyframed nodes and peg them in the animation mixer? Or am I as per usual missing something…..



cheers,

Andi.
User Avatar
Member
30 posts
Joined:
Offline
this script will add all animated parms in the scene to the animation editor
""" 
scopes all keyframed parms in the scene
"""

import hou

animated_list = []
nd = hou.node("/")
nodeArr = nd.allSubChildren()
for n in nodeArr:
    if not n.isInsideLockedHDA():
        parmArr = n.parms()
        for p in parmArr:
            if p.isTimeDependent():
                deletelist = []
                keyframes = p.keyframes()
                if len(keyframes) > 1:
                    p.setScope(True)

cheers,
chrisg
User Avatar
Member
115 posts
Joined: Feb. 2014
Offline
doctorBob you lifesaver,

thank you so much.

A>
  • Quick Links