  | | | Scripted op refresh | Scripted op refresh 2004-05-06 - By Felix Gebhardt
Back
Other than that you have to connect the curve's primitive to the SCOP. GetCurveLength is not an Object Model function but a command. This is generally not allowed in SCOPs. Don't get confused by it working sometimes. I strongly suppose it does no good to the scene graph and is likely to crash XSI or at least acting weired.
Use this instead. Out.value = inPrim.valueGeometry.Length./ 10
Good luck, F.
kim aldis wrote: > 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 > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |