Gradients are intended for use with shader PPGs. I'm tempted to say there was work done in the 2012 release to make them available for custom property/operator PPGs, but I cannot say for sure. I do know there is a bug with some of the scripting languages for defining a gradient as siControlGradient (or whatever the enum is) doesn't work. You have to use the string 'gradient' instead. Same issue applies to texture projection widget for choosing which texture projection to use.
Like with any other PPG Layout control, the parameter(s) the control is expected to drive must exist before it'll appear on the PPG layout. The gradient control expects at least 3 different scalars before it'll draw. One for position (_pos), another for the interpolant (_mid), and one for the value driven by the other two. The gradient can accept up to 8 scalars for each. Matt From: [email protected] [mailto:[email protected]] On Behalf Of Mathias N Sent: Tuesday, January 21, 2014 2:14 PM To: softimage Subject: Gradient in PPG Evening Would any of you happen to know how to add a gradient (siControlGradient) item to a PPG layout? With any of the standard data types it is pretty straight forward: parameter, label, UI type. A color item is given its own method, where instead of pointing to a single parameter you point to float parameter representing red and it handles the rest. But how exactly does this function with gradients? By definition it cannot be linked to only a single parameter, but there is no special method for it like with color. The docs would suggest that it is possible, but provides no information as to how. Blindly flinging arguments at it has gotten me nowhere. http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_om/siPPGControlType.html Cheers

