yes, definitely have had weird look dev stuff come up that this would
have helped, had to go elsewhere for an answer (maya)

so, +1 vote

On Fri, Apr 29, 2011 at 10:35 AM, Dan Walker <[email protected]> wrote:
> Fortunately, the Foundry has recorded this as a feature request.  Plan to
> see it in the next version release.  Right Foundry?! ;-)
>
> Thanks much Lewis!
>
> -Dan
>
>
>
> On Fri, Apr 29, 2011 at 9:11 AM, Lewis Saunders <[email protected]>
> wrote:
>>
>> Dan Walker wrote:
>> > Anyone know of a way to create a color ramp on a paint stroke?
>>
>> You can kinda do it by abusing the pressure attribute on each point:
>>
>> for stroke in nuke.selectedNodes()[0]['curves'].rootLayer:
>>    for pointidx in range(0, len(stroke)):
>>        point = stroke[pointidx]
>>        (x, y, p) = point.getPosition(0)
>>        point.setPosition((x, y, float(pointidx)/len(stroke)))
>>
>> Turning build-up off and hardness up helps, and/or you could use STMap
>> afterward to lookup into a gradient of your choice. Unpremult gets
>> most of the outline of the stroke back.
>>
>> Can't quite work out how to extend this to animated strokes because
>> setPositionKey() baffles me :-]  So you'd have to do this before
>> animation...
>>
>> Might not look quite right if the points aren't evenly spaced either.
>>
>> --
>> Lewis Saunders
>> python python python comp python
>> London
>> _______________________________________________
>> Nuke-users mailing list
>> [email protected]
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> _______________________________________________
> Nuke-users mailing list
> [email protected]
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
_______________________________________________
Nuke-users mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to