View Full Version : controlling bone length via maxscript
virtualmesh 08-02-2006, 04:58 PM scrap that.
|
|
Well for anyone who wants to do it:
All your doing is driving the x value of the child bone:
give the children a bezier_XYZ controller then:
on the child itself:
$.pos.controller[1].value = slider01.value
From the parent:
$.children[1].pos.controller[1].value = slider01.value
also you can drive it via instancing to:
$.pos.controller[1].controller = $control.slider01.value
Also the distance:
$.pos.controller[1].value = distance a b
or from the length of a spline:
$.pos.controller[1].value = curvelength $line01 1
or hell the angle derived from 3 vectors ala dot:
n1 = normalize (v1 - v2)
n2 = normalize (v3 - v2)
ang = acos (dot n1 n2)
$.pos.controller[1].value = degtorad ang
guess you could do it from the wirecolor of another object or itself too say the red value hmm...
r = $anotherobjectoritself.wirecolor as point3
$.pos.controllers[1].value = r.x
oh and ofcourse not controller space but world space to:
$.pos.controller[1].value = $controller.transform.pos[1]
or you could put it into the parent space's x rotation or something? :shrug: :
$.pos.controller[1].value = (($.transform * $.parent.transform)as eulerangles).x
or:
(quattoeuler ($.transform * inverse $.parent.transform)).x
or umm..
CGTalk Moderation
08-03-2006, 01:44 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.