Check if attribute value changes over time.

Check if attribute value changes over time.

wynand.lens
Explorer Explorer
543 Views
1 Reply
Message 1 of 2

Check if attribute value changes over time.

wynand.lens
Explorer
Explorer

I know you can see if there is a value change if the attribute is keyed using:

keyed_values = cmds.keyframe('obj.attr', q=1, valueChange=1)

But, if it is driven by a connection, I can't see if there is a value change, unless I check every attribute across every frame on my timeline. And that is obviously incredibly inefficient.

Is there a way to Check if an attribute's value changes over time if its connected to something other than an animCurve?

GIF.gif

I need a command to detect that these attributes are actually changing over time!

 

0 Likes
544 Views
1 Reply
Reply (1)
Message 2 of 2

brent8S64J
Contributor
Contributor

Do you need to check it once, or check it all the time?  If you need to check it once - you can use a number of methods, a frameCache node, or a loop of getAttrs at different times.  If you need to check it all the time, you may need a scriptJob or a script that evaluates on every frame change.  Give me a bit more description of what you want your user experience to be like, and I'll write you the code that does it.