Just a thought, how about using FCurves to drive the colors?

On Wed, Jan 22, 2014 at 1:03 PM, Luc-Eric Rousseau <[email protected]>wrote:

> Sorry, I checked into this further, and the Gradient control expects a
> hierarchy of parameters (color.red, color.green, etc) and not flat
> list. Creating hierarchy of parameters on a custom property has never
> been exposed to the SDK, so you can't construct one, and therefore
> could never use this widget in its current form
>
> On Tue, Jan 21, 2014 at 6:07 PM, Luc-Eric Rousseau <[email protected]>
> wrote:
> > you need to create an array of parameters with the right types and add
> > the control on the first parameter. So it's just like the color
> > widget.
> > Check the Gradient operator in the fxtree.  Open its .spdl file to see
> > how it works.
> >
> > it's something like, one integer for type, and 8 groups of rgb color
> > and a float for their position. something like that.
> >
> > isn't the SDK documentation awesome.
> >
> > On Tue, Jan 21, 2014 at 5:13 PM, Mathias N <[email protected]> wrote:
> >> 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
>

Reply via email to