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?
 
Scripted op refresh

Scripted op refresh

2004-05-06       - By kim aldis

 Back
Reply:     1     2     3  

this is typical behaviour when you have a dependancy cycle. Normaly you
shouldn't need anything to force an update, although sometimes you do. I've
always found it enough to just add a single keyframe on a parameter. This is
the normal way of doing this.


 __ __  

From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of
Dan Hope
Sent: 06 May 2004 13:02
To: XSI@(protected)
Subject: Scripted op refresh


I've got a really annoying problem that I can't sort out....

I've set up a scripted op on the "scaling along curve" parameter of a
cylinder deformed along a curve...it goes something like this:

getcurvelength "crvlist", MyLength
Out.Value = MyLength/10

I then have a variable with an expression "Fc" set to force an update of the
script at every frame.

My problem is that it appears to evaluate the expression when exiting the
frame, meaning that the length of the cylinder is always one frame behind
the curve. How do I get them to be in sync?

Bearing in mind this is my first scripted op, please, be gentle....none of
this "personally I'd script it better" please....you know who you are ;o)

Ta

Dan

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=859325513-06052004><FONT face=Arial
color=#008080 size=2>this is typical behaviour when you have a dependancy cycle
.
Normaly you shouldn't need anything to force an update, although sometimes you
do. I've always found it enough to just add a single keyframe on a parameter.
This is the normal way of doing this.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid;
MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
 <HR tabIndex=-1>
 <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected)
 [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Dan Hope<BR><B>Sent:</B>
 06 May 2004 13:02<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> Scripted
 op refresh<BR></FONT><BR></DIV>
 <DIV></DIV>
 <DIV><FONT face=Arial size=2>I've got a really annoying problem that I can't
 sort out....</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>I've set up a scripted op on the "scaling along
 curve" parameter of a cylinder deformed along a curve...it goes something
like
 this:</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Courier size=2>getcurvelength "crvlist", MyLength</FONT></DIV>
 <DIV><FONT size=2><FONT face=Courier>Out.Value =
 MyLength/10</FONT></FONT></DIV>
 <DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>I then have a variable with an expression "Fc"
 set to force an update of the script at every frame.</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>My problem is that it appears to evaluate the
 expression when exiting the frame, meaning that the length of the cylinder is
 always one frame behind the curve. How do I get them to be in
 sync?</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>Bearing in mind this is my first scripted op,
 please, be gentle....none of this "personally I'd script it better"
 please....you know who you are ;o)</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>Ta</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial
 size=2>Dan</FONT></DIV><BR>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
__ ____ ____ ____ __<BR>This
 email has been scanned by the MessageLabs Email Security System.<BR>For more
 information please visit http://www.messagelabs.com/email
 <BR>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __<BR
></BLOCKQUOTE></BODY></HTML>