I want a section script checking exist keyframes in scene or check animation keys in scene
I have a section script, this
for obj in $* do ( ctrl = obj.position.controller -- just as an example rot = obj.scale.controller t = 0f k = getKeyIndex ctrl t -- returns the index of the key at time t (if there is one) l = getKeyIndex rot t if (k>0) or (l>0) then ( if queryBox "WARNING: The script found animation key and it willl clear them. Are you sure you want to continue?" beep:true then( actionMan.executeAction 0 "18" ) exit ) )
but it is not good, it can’t checking if object have keyframe is scale, rotation, color or visibility object
Who can help me ?
Thanks so much!