|
some code... in python
def Update(In_UpdateContext,Out,Inpolymsh,Inmeshglobal): pntPos = Inpolymsh.Value.Geometry.Points(1).Position # this uses index one of your polymesh, replace this accordingly objPos =
Inmeshglobal.Value.Transform.Translation pntPos.AddInPlace(objPos) xform = XSIMath.CreateTransform() xform.SetTranslation(pntPos) Out.Value.Transform = xform return
just apply this to some objects global kinematics. you need two inputs. the global kinematics of the mesh object and the polymsh primitive of that same object.
On 5/30/07, Steven Caron <carons(at)gmail.com> wrote:
you can use a reference model's geometry in a scripted op.
make a null with a scop on which ever params you prefer. local or global. use the geometry and the indice from your ref model.
access the geometry.points
("your indice here").position and update the null's kinematics with it
steven
On 5/30/07,
Votch <
megavotch(at)gmail.com> wrote:Anybody know of a way to add a cluster to a reference model?
I need to constrain a null to a point on a ref model. Any Idea's?
Votch Levi CafeFX
|