Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
expressions question

expressions question

2004-05-25       - By Graham D Clark

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

use getBBox to get the geometries min max values as diameter then use
that value as diameter in the line where you apply your expression,
or if you need the radius to animate over time (and the object has been
frozen or has no radius parmeter) then afaik you'll need to make a scop
for it.
it gets a little trickier if you want to 'steer' your wheel too  and
have it roate correclty in any direction but animating the wheels on
paths and using path percentage value to rotate can make that math a lot
easier
-- ---- ---- ---- ---- ---- --
http://www.grahamdclark.com <http://www.grahamdclark.com/>  
2nd hand TD

-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf
Of alex dinnin
Sent: May 25, 2004 12:40 PM
To: XSI@(protected)
Subject: Re: expressions question


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.rad
ius))"

' ******************************



Peter



 __ __  

Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo!  <http://messenger.yahoo.com/>
Messenger


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=334265114-25052004><FONT face=Arial color=#0000ff size=2>use
getBBox to get the geometries&nbsp;min max values as diameter then use that
value as diameter&nbsp;in the line where you apply your
expression,</FONT></SPAN></DIV>
<DIV><SPAN class=334265114-25052004><FONT face=Arial color=#0000ff size=2>or if
you need the radius to&nbsp;animate over time (and the object has been frozen
or
has no radius parmeter) then afaik you'll need to make a scop for
it.</FONT></SPAN></DIV>
<DIV><SPAN class=334265114-25052004><FONT face=Arial color=#0000ff size=2>it
gets a little trickier if you want to 'steer' your wheel too&nbsp; and have it
roate correclty in any direction but animating the wheels on paths&nbsp;and
using path percentage value to rotate can make that math a lot
easier</FONT></SPAN></DIV>
<DIV><FONT face="Times New Roman">-- ---- ---- ---- ---- ---- --</FONT>
<BR><FONT face="Times New Roman"><A
href="http://www.grahamdclark.com/">http://www.grahamdclark.com</A></FONT>
<BR><FONT face="Times New Roman">2nd hand TD</FONT> </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid;
MARGIN-RIGHT: 0px">
 <DIV></DIV>
 <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
 face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B>
 owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of
 </B>alex dinnin<BR><B>Sent:</B> May 25, 2004 12:40 PM<BR><B>To:</B>
 XSI@(protected)<BR><B>Subject:</B> Re: expressions
 question<BR><BR></FONT></DIV>
 <DIV>Am I correct in saying then, that if you have frozen the object !!! you
 can not use the radius ???</DIV>
 <DIV>&nbsp;</DIV>
 <DIV>thanks for the help on this everyone....<BR><BR><B><I>Peter Twardo
 &lt;peliosis_v2@(protected)&gt;</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>&nbsp;</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>&nbsp;</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></FONT></BLOCKQUOTE></BODY></HTML>