How is NBIT_CKEY_ACTIVE used?
-
How does one use
NBIT_CKEY_ACTIVE
? I see in the documentation that it's the "Active point of animation path in editor." I couldn't find any examples that use it successfully however. I found it used in this old post on CGSociety by Per-Anders from 2013, but I couldn't get it to work. Here's the code I'm using to test it:import c4d def main(): tracks = op.GetCTracks() for track in tracks: print "*"*100 print track.GetName() curve = track.GetCurve() count = curve.GetKeyCount() for x in range(0,count): key = curve.GetKey(x) print "Key %s: NBIT_CKEY_ACTIVE: %s"%(x,key.GetNBit(c4d.NBIT_CKEY_ACTIVE)) if __name__=='__main__': main()
Thank you.
-
Hi @blastframe the
NBIT_CKEY_ACTIVE
is set when the animation path key is selected in the viewport (and not in the Timeline)Cheers, R
-
@r_gigante Ahhhhhhhh, okay, I get it now. Thank you