IK Scripting

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

IK Scripting // Scriptorium

1  |  

Post by Asem // Jun 18, 2007, 8:51am

Asem
Total Posts: 255
I'm hoping someone can help with this. I wanted to create a script that would take an ik handle and make it's goal position connect to and object.

For example:

Crazy Bob's feet moving according to the position of a surf board.

I check out the createDo for Ik Skeleton and bone but they are very limited at the moment(about 4 functions that don't help). I even tried to just grab the handlers specific matrix and move up the heirachy to make it so that it's matrix was connected to the boards but it only goes so far.

I started trying this from one way (which is the way I explained) and am going to try to do this backwards and hope that it works so any input is appreciated.

Hope this makes since.

Post by tomasb // Jun 18, 2007, 10:16am

tomasb
Total Posts: 261
I'm hoping someone can help with this. I wanted to create a script that would take an ik handle and make it's goal position connect to and object.



Changing IK handle obj input matrix will call IK solver to update pose. You need to make sure that handle uses IK interpolation and is not Posing only.

IK handles are using skeleton space so if you want to use world space target you need to multiply world space matrix with skeleton world space matrix inverse.

Post by Asem // Jun 18, 2007, 10:23am

Asem
Total Posts: 255
Thanks I'll try that tonight. Just to be clear, I can use Node.Value(.../handlermatrix);(When I do it this way it doesn't see the value and gives me error) or to some extent? Tomas can you give me an example?
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn