PDA

View Full Version : How to make a simple IK chain with MaxScript ?


EricDLegare
05-02-2007, 11:05 AM
Hi,

I'm doing a "Make IK/FK Switch" script, and it works fine, except that I can't make an IK chain with MaxScript.

( Since the IK is a macro and it does not seems that there is any way to create an IK with MaxScript )

I'm currently calling the macro script that creates IKs, but the user have to pick the end joint, and I want the entire script to be really user friendly.

If there is no way of doing it with MaxScript then
(
_____Is there a way to "feed" the picknode directly with MaxScript ?
)


Thanks in advance !

shibumenon
05-03-2007, 10:53 AM
bn1 = $bone01
bn2 = $bone03

if bn1 and bn2 are the start and ends of the bone chain to which you wish to apply a HI IK chain, then

iksys.ikchain bn1 bn2 "IKHiSolver"
should create the chain.

EricDLegare
05-03-2007, 12:32 PM
OMG :D


So simple ! Thanks !


I missinetpreted the MaxScript user reference saying that you cannot create a IK Struct ... :sad:



THANKS AGAIN :P :thumbsup:

CGTalk Moderation
05-03-2007, 12:32 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.