How to query the value of a SDK?

How to query the value of a SDK?

Anonymous
Not applicable
352 Views
1 Reply
Message 1 of 2

How to query the value of a SDK?

Anonymous
Not applicable
Hi,

I’m trying to query a set driven key value.

In the below example, I already know the driver channel, driver value, and driven channel. ( in this case pCube1.tx = 0 & the driven channel is joint1.ty ).

How can I discover the driven value of joint1.ty when pCube1.tx = 0 via .mel command?

Much Thanks!

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

Anonymous
Not applicable
This is what I was able to find....


//--find the driver object and channel from the driven object
string $driverObject[] = `setDrivenKeyframe -q -cd joint1 `;

//---find the driven channels
string $drivenChannels[] = `setDrivenKeyframe -q -dn joint1 `;

//---find the driven value from the drivenObject.channel
float $drivenVal[] = `keyframe -q -vc joint1_translateY`;

//---find driver value from driverObject.channel
float $driverVal[] = `keyframe -q -fc joint1_translateY`;


I hope this is helpful to someone in the future!
0 Likes