6/3/15

NUKE _ rotate normal

set cut_paste_input [stack 0]
version 8.0 v5
push $cut_paste_input
Expression {
 temp_name0 expA
 temp_expr0 r*v1+g*v2
 temp_name1 expB
 temp_expr1 (1-r)*v1+g*v2
 temp_name2 expC
 temp_expr2 (1-r)*v1+(1-g)*v2
 temp_name3 expD
 temp_expr3 r*v1+(1-g)*v2
 channel0 rgba
 expr0 "\[\nif \{\[value val]<=1\} \{return expA\} else \{\nif \{\[value val]<=2\} \{return expB\} else \{\nif \{\[value val]<=3\} \{return expC\} else \{\nif \{\[value val]<=4\} \{return expD\}\n\}\}\}\n]"
 name Exp_rot_Normal
 tile_color 0x73168eff
 gl_color 0xffffffff
 label "_\n"
 note_font "Verdana Bold"
 note_font_color 0x1a131cff
 selected true
 xpos 142
 ypos -215
 addUserKnob {20 control}
 addUserKnob {7 val l valeur R 0 4}
 addUserKnob {7 v1}
 v1 {{"\[\nif \{\[value val]<=1\} \{return 1-val\} else \{\nif \{\[value val]<=2\} \{return val-1\} else \{\nif \{\[value val]<=3\} \{return 3-val\} else \{\nif \{\[value val]<=4\} \{return val-3\}\n\}\}\}\n]"}}
 addUserKnob {7 v2}
 v2 {{"\[\nif \{\[value val]<=1\} \{return val\} else \{\nif \{\[value val]<=2\} \{return 2-val\} else \{\nif \{\[value val]<=3\} \{return val-2\} else \{\nif \{\[value val]<=4\} \{return 4-val\}\n\}\}\}\n]"}}
}

No comments:

Post a Comment