PDA

View Full Version : How do I check if a channel is animated?


whalerider
08-13-2009, 12:08 PM
... regardless of whether it is via keyframing/motion path/expression/etc. ?

I tried a few things like getAttr, attributeInfo, attributeQuery, checking if the channel has curves, but could not find a command that works in all cases.

Thanks.

safakoner
08-13-2009, 02:40 PM
try listConnections

query size of the connection

string $con[] = `listConnections "cube.tx"`;
if(`size $con`)
print "there is a connection";
else
print "no connection";

whalerider
08-13-2009, 10:24 PM
That worked. Thanks a lot.

CGTalk Moderation
08-13-2009, 10:24 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.