check if a object has a animation?


#1

Is there a way to check if an object hat a key frame animation on any controllers?


How can I know the type of animation key using MXS?
#2

From Maxscript help:

<node>.pos.isAnimated : Boolean, read-only --true if position is animated

<node>.rotation.isAnimated : Boolean, read-only --true if rotation is animated

<node>.scale.isAnimated : Boolean, read-only --true if scale is animated


All animatable properties in 3ds Max objects let you reference several controller-related sub-properties. These are:

<property>.isAnimated 

A boolean indicating whether the property is animated.

Hope this helps


#3

and for a more global check:

[i]trackbar.getPreviousKeyTime/i

and

[i]trackbar.getNextKeyTime/i

If both are undefined then there are no keys on the trackbar, which means no animation for the selected object.

This will not work for network rendering and such (need the GUI) and doesn’t account for trackbar filters but might work in your situation :slight_smile:


#4

I am not sure how to use this for a specific object ?


#5

the whole thread is about that: http://forums.cgsociety.org/showthread.php?f=98&t=1020938&highlight=mini-challenge


#6

Yes, this is the problem… But now i have a complete other solution :wink: Anyway thanks for the link…


#7

and what your complete other solution is?


#8

Nothing related to “has obj animation keys”, sorry.


#9

ok… complete other means completely different. :slight_smile:


#10

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.