|
Hey all,
I’m still plugging away at my simple autorig script and have come to a problem with the leg chains. When I create them through the OM I get inconsistent results on which way the bone chain faces. I look at the first bone’s roll property and regardless if the chain is facing backwards or forwards, the roll says 0. Anyone else run into this issue? If so got any tips on how to fix it? Using 6.5
Eric T.
|
|
|
|
Hi,
Usually the key here is to tell XSI the right viewport to use when drawing the bone.
set oRoot = Application.ActiveProject.ActiveScene.Root
set oChain = oRoot.Add2DChain(Array(0,0,0), Array(3,0,-3), ,si2DChainTop )
oChain.AddBone(Array(6,0,0))
They key here is the 4th argument for the Add2DChain command, which tells XSI which view to draw the bone from. So for arms etc. you would use si2DChainTop which is default. For legs it would be si2DChainRight.
If you draw legs from the top view, you might get inconsistent results.
Hope this helps.
|
|
|