expressions question 2004-05-25 - By stefan@(protected)
Back This one worked fine for me (on cylinder1.kine.local.rotz).
( cylinder1.kine.global.posx / ( 2 * PI ) / 4 ) * 360 * -1
Change the "/ 4 " to what ever radius the object has.
best regards
/stefan andersson
"Peter Twardo" <peliosis_v2@(protected)> wrote:
> Well, since the amount of rotation, depends on both : translation, and radius of > an object, your expression could't work. > > I hope this helps: > > (Try changing radius of your cylinder or whatever if you havent frozen it) > > > > ' ****************************************** > > CreatePrim "Cylinder", "MeshSurface" > > Rotate , 90, 0, 0, siAbsolute, siParent, siObj, siX > > ResetTransform "cylinder", siCtr, siRot, siXYZ > > InspectObj "cylinder.kine.local" > > AddExpr "cylinder.kine.local.rotz" > > SetExpr "cylinder.kine.local.rotz", > "cylinder.kine.local.posx*-(360/(2*PI*cylinder.polymsh.geom.cylinder.radius))" > > ' ****************************** > > > > Peter >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|