PDA

View Full Version : Is there a way to get biped key values?


WhiteMage
02-17-2009, 07:35 PM
Right now I'm using
biped.getTransform $ #rotation
to get a value, but it's inefficient for what I'm trying to do.

Is there another way to get values? I was using:
$[#transform][#rotation][#x_rotation].controller.keys[n].value
for other objects. Is there something similar for the biped?
$[transform].controller.keys
do return an array of keys, but the .value property isn't returning anything.

thanks,

Context
02-17-2009, 08:54 PM
In short: no.

The biped`s internal controller organization is both confusing and annoying.

Your best bet is to count up through the controllers keys until you get an error and store that number then run a for loop up to the stored number, yanking out the data you need.

WhiteMage
02-17-2009, 10:36 PM
Well I do find it annoying...

I'm doing something similar than what you said. It works with most biped parts, but as soon as I use .setTransform on the COM, it sets keys for both Horizontal AND Vertical and then I have to clean up with biped.deleteKey.

Unless there is a better way...

CGTalk Moderation
02-17-2009, 10:36 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.