Re: Accessing PPG fcurve widget

Date : Mon, 21 May 2007 23:37:49 -0400
To : XSI(at)Softimage.COM
From : Christian Rittener <christian_list(at)b-cosmos.com>
Subject : Re: Accessing PPG fcurve widget
Merci Guillaume, I finally got it working (not using a custom operator, though).

Christian Rittener


Guillaume Laforge wrote:
Hi Christian,

 From your custom prop input port you can find the fcurve with ".Curve".

Here is a sample of code using it :

function myFcurveDrivenOp_Update( ctxt )
{
   var oPset = ctxt.GetInputValue(0);
   var oFCurve = oPset.Curve.Value ;
   var pInput = ctxt.GetParameterValue("input") ;

   var oResult = oFCurve.Eval(pInput) ;
       output = ctxt.OutputTarget;
   output.parameters("output").Value  = oResult;
}


Have a nice day.

Guillaume

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.