Notifications
Clear all

[Closed] dependsOn() & biped subanim script controller

hi, i’ve figured out a way to do auto clavicle & neck bone rotation in a biped by using a script controller in the subanim list (eg. rot subanim > euler xyz > float script in relevant axis > quattoeuler $Bip01_L_Upperarm.transform etc.)

this is fine for keyframed animation, but since there’s no realtime feedback on the automated bone rotation, i thought i could use the ‘dependsOn(relevant biped bone)’ function to evaluate the script controller interactively.

but this doesn’t have any effect with a biped, although it works fine when i test on some primitive meshes.

any ideas on how i could get this to work, or perhaps an alternative technique?

thanks

2 Replies

Could you please post your script?

First thought,… could you link a dummy to the biped bone and then use “dependsOn(dummy)”?

the script on a clavicle (under rot subanim > euler xyz > axis > float script controller) to make it rotate according to the upperarm looks like:

dependsOn $Bip01_L_Upperarm
rot= quattoeuler $Bip01_L_Upperarm.transform
rot.axis (& some other maths here to get the correct values)

i tried both linking & position constraining (& even doing a lookat with) a dummy to the upperarm bone & using ‘dependsOn $Dummy01’ (or ‘dependsOn $Dummy01.pos.controller’), but still no realtime evaluating of the script. thanks for the tip though. any ideas?