Ryan O'Phelan wrote:
> I'm looking for a way to drive a hue rotation (as an example) with, say a
> depth map. The larger the value, the more the hue rotation.

You could do this with an expression node sampling the control image
but I reckon there are easier ways.  For transforms you can use
that ITransform gizmo and for most colour corrections you can use
mixes in the appropriate colour space. For anything else it's possible
to use lots of ZSlice nodes to do arbitrary operations based on a
control image... but I've been there and it mostly results in
headaches, 100Mb scripts and huge caffeine consumption :-/

Hue shifting you can kinda do with HSVTool but the method below is
smoother when it wraps around the end of the rainbow.

-- 
Lewis Saunders
deeply misses for loops in shake macros
London




Radial {
 area {512 389 1914 1464}
 name Radial1
 xpos -40
 ypos -13
}
CheckerBoard2 {
 inputs 0
 color0 {0.7 0 0 1}
 color1 {0 0.7 0 1}
 color2 {0 0 0.7 1}
 centerlinewidth 20
 name CheckerBoard1
 xpos -200
 ypos -144
}
Colorspace {
 colorspace_out HSV
 name Colorspace1
 xpos -200
 ypos -13
}
Merge2 {
 inputs 2
 operation plus
 Achannels {rgba.red -rgba.green -rgba.blue -rgba.alpha}
 Bchannels {rgba.red -rgba.green -rgba.blue -rgba.alpha}
 output {rgba.red -rgba.green -rgba.blue -rgba.alpha}
 mix 0.362
 name Plus
 xpos -200
 ypos 23
}
Colorspace {
 colorspace_in HSV
 name Colorspace2
 xpos -200
 ypos 59
}
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to