how to query setDrivenKey times and values?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 06 June 2003   #1
Talking how to query setDrivenKey times and values?

hey all,

i was wondering if anyone knows how to query the values associated with set driven key animation curves?. i have tried:

keyframe -q timechange and keyframe -q valuechange

and it seems to work for regular animation curves, but not for SDK curves.

the only information i have to work with is the name of the object that is driven. There must be a way to find out the values of the keys...but i cant find it..

does anyone know??

Sedric
__________________
check out my portfolio web site!

Click Here and see!
 
Old 06 June 2003   #2
Hey sedric,

You must use the setDrivenKeyframe command instead of the keyframe command.

With this command, you can query values and so forth.

Hope this helps.
later
loked
 
Old 06 June 2003   #3
couldn't you just query the values of the atributes driving/being driven?

S
 
Old 06 June 2003   #4
thanks fellas, I wanted to be able to query the animation node that is created for a SDK.

With the keyframs command, you can get all of the times of the different keys, and then get the matching values.

this only seems to work with regular animation, where the "time" is measured in frames. the setDrivenKey command will return the attributes and values of the driver and driven when you have the keyframe....but if you don't...I don't think it works..

I solved the problem though....I just duplicated the animation nodes and re-did the inputs and outputs for the other objects in my scene. no need to query anything now....

thanks for the help though fellas,

Sedric
__________________
check out my portfolio web site!

Click Here and see!
 
Old 07 July 2004   #5
OK, this is a bit late, but I stumbled upon this thread when I was looking for a way to query the output value of a driven key animation curve given an arbitary input value.

I found that if you want to query the output value of a driven key animation curve, you can use:

keyframe -attribute |the_attribute| -float |the_driver_value| -q -eval;

(Exchange |the_attribute| for the name of the attribute whose out value you want to query, e.g. translateY, and |the_driver_value| for the value of the driver attribute , e.g. 2.6).

This, I understand, is a fairly fast (execution-wise) way to get the value, since maya doesn't have to update the time or move things around to get the value.

I'm not sure this is what you were after in the first place though, but it might be of some help to someone else.
 
Old 07 July 2004   #6
if u pass the name of the name of the actual anim curve to the keyframe command, you can query any animCurve. this is pretty standard with all maya commands.

keyframe -q timechange animCurveNode
__________________
-:macaroniKazoo:-
 
Old 01 January 2006   #7
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:39 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.