expressions question 2004-05-25 - By alex dinnin
Back Am I correct in saying then, that if you have frozen the object !!! you can not use the radius ??? thanks for the help on this everyone....
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
-- ---- ---- ---- ---- ---- ----- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger <DIV>Am I correct in saying then, that if you have frozen the object !!! you can not use the radius ???</DIV> <DIV> </DIV> <DIV>thanks for the help on this everyone....<BR><BR><B><I>Peter Twardo < ;peliosis_v2@(protected)></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER -LEFT: #1010ff 2px solid"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <STYLE></STYLE>
<DIV><FONT size=2> <P><FONT face=Arial>Well, since the amount of rotation, depends on both : translation, and radius of an object, your expression could't work.</FONT></P> <P><FONT face=Arial>I hope this helps:</FONT></P> <P><FONT face=Arial>(Try changing radius of your cylinder or whatever if you havent frozen it)</FONT></P> <P><FONT face=Arial></FONT> </P> <P><FONT face=Arial>' ******************************************</FONT></P> <P>CreatePrim "Cylinder", "MeshSurface"</P> <P>Rotate , 90, 0, 0, siAbsolute, siParent, siObj, siX</P> <P>ResetTransform "cylinder", siCtr, siRot, siXYZ</P> <P>InspectObj "cylinder.kine.local"</P> <P>AddExpr "cylinder.kine.local.rotz"</P> <P>SetExpr "cylinder.kine.local.rotz", "<STRONG>cylinder.kine.local.posx*-(360/ (2*PI*cylinder.polymsh.geom.cylinder.radius))</STRONG>"</P> <P>' ******************************</P> <P><FONT face=Arial></FONT> </P> <P><FONT face=Arial>Peter</FONT></P></FONT></DIV></BLOCKQUOTE><p> <hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Friends. Fun. <a href= "http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</a>
|
|