Regarding a Nuke equivalent of a Gradient Map...

This is not trivial. A gradient map takes the grey scale values of an image and 
re-maps them to the color channel. This can be done in a simple way in the 
following manner (from memory):

1 colorspace convert to HSV

2 using shuffle, replace the H channel with the L channel.

3 using shuffle, replace the S channel with a white. 

4 using shuffle, replace the L channel with a mid grey. 

5 colorspace convert back to RGB. 

This will do a straight lightness to full spectrum re-map. Arbitrary changes 
can then be made using lookups on the lightness channel after. 

This is clunky. Sure some code monkey can come up with something more elegant. 


Martin


On 5 Aug, 2012, at 10:05 PM, Ron Ganbar <ron...@gmail.com> wrote:

> Indeed. What Joe said is spot on.
> If you use that "psd layers" button in the Read node you can see all the 
> options there and learn from it.
> 
> 
> Ron Ganbar
> email: ron...@gmail.com
> tel: +44 (0)7968 007 309 [UK]
>      +972 (0)54 255 9765 [Israel]
> url: http://ronganbar.wordpress.com/
> 
> 
> 
> On 5 August 2012 16:03, Joe Laude <loudn...@gmail.com> wrote:
> There is a soft-light merge operation in the merge node, but what's probably 
> throwing you off is that, when merging Photoshop layers in Nuke, you need to 
> use the Video Colorspace checkbox next to the merge mode pulldown. Nuke's 
> merge math uses linear color values, but Photoshop's uses sRGB. The Video 
> Colorspace checkbox will change the incoming images to sRGB (or whatever your 
> 8-bit setting is in project settings), perform the merge operation and change 
> the output back to linear for you. That'll match your results in Photoshop 
> much better.
> 
> Note that this is not just for soft-light. All merge operations will behave 
> differently in Nuke from what Photoshop does because of the different 
> colorspaces, so any operation, even just an over, will better match Photoshop 
> with Video Colorspace turned on.
> 
> On Aug 3, 2012, at 2:31 AM, irwit wrote:
> 
> > Thanks for the quick reply Ron.
> >
> > I cannot seem to find "Hue curves"?
> >
> > Soft light I'm guessing does not have an equivalent in the merge options 
> > then?
> >
> > Finally, a gradient adjustment layer remaps your pixel values based on the 
> > gradient, so a blue to yellow gradient would take your image and in the 
> > darks map blue and lights map yellow.
> >
> >
> > So in photoshop, I would take my image, apply a curve or something and set 
> > the blending mode of that curve to say "multiply". This would multiply the 
> > image on itself and apply the curve to the multiplier.
> >
> > In nuke i'm guessing the easiest way to do this is to split the channel 
> > with the grade and remerge it with itself?
> > _______________________________________________
> > Nuke-users mailing list
> > Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> 
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to