PDA

View Full Version : check if a object has a animation?


jedie
04-16-2012, 11:23 AM
Is there a way to check if an object hat a key frame animation on any controllers?

Kameleon
04-16-2012, 11:52 AM
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

jonadb
04-16-2012, 01:25 PM
and for a more global check:

trackbar.getPreviousKeyTime()

and

trackbar.getNextKeyTime()

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 :)

jedie
04-16-2012, 01:47 PM
and for a more global check:

trackbar.getPreviousKeyTime()

and

trackbar.getNextKeyTime()
I am not sure how to use this for a specific object ?

denisT
04-16-2012, 02:37 PM
Is there a way to check if an object hat a key frame animation on any controllers?
the whole thread is about that: http://forums.cgsociety.org/showthread.php?f=98&t=1020938&highlight=mini-challenge

jedie
04-16-2012, 03:01 PM
the whole thread is about that: http://forums.cgsociety.org/showthread.php?f=98&t=1020938&highlight=mini-challenge
Yes, this is the problem... But now i have a complete other solution ;) Anyway thanks for the link...

denisT
04-16-2012, 06:11 PM
Yes, this is the problem... But now i have a complete other solution ;) Anyway thanks for the link...
and what your complete other solution is?

jedie
04-16-2012, 06:12 PM
and what your complete other solution is?
Nothing related to "has obj animation keys", sorry.

denisT
04-16-2012, 06:24 PM
Nothing related to "has obj animation keys", sorry.
ok... complete other means completely different. :)

CGTalk Moderation
04-16-2012, 06: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.