Mute Object Animation
Is there a way to mute object animation using python?
Here's how to do it manually through the timeline editor:
m_adam last edited by
Hi @bentraje this is the parameter
So here ho to disable the first track of an animated object.
track = op.GetFirstCTrack() track[c4d.ID_CTRACK_ANIMOFF] = False c4d.EventAdd()
Thanks for your response. Works as expected.
for track in op.GetCTracks(): # Just to get all tracks at once. track[c4d.ID_CTRACK_ANIMOFF] = 0 c4d.EventAdd()
zipit last edited by
track[c4d.ID_CTRACK_ANIMOFF] = 0
one could consider this nitpicky, but you should be careful with
GeListNode.__setitem__and your input types. Here it probably will not matter, but
ID_CTRACK_ANIMOFFis a boolean parameter and you rely on the fact that
GeListNode.__setitem__is interpreting the passed integer literal as the correct boolean literal. If one is not using the specific function on the data container, i.e.
SetBool, I would always make sure to be as precise as possible with my data types, having all the oopsies in mind that can happen with filename and string parameters in containers and mixing them up.
Gotcha. Thanks for the reminder :)