Skip to content

Instantly share code, notes, and snippets.

@indoorjetpacks
Last active October 23, 2019 19:34
Show Gist options
  • Select an option

  • Save indoorjetpacks/c4fa4186c897b06f59ac096dd2d0525b to your computer and use it in GitHub Desktop.

Select an option

Save indoorjetpacks/c4fa4186c897b06f59ac096dd2d0525b to your computer and use it in GitHub Desktop.
Nuke_rotate_neg_90
#----------------------------------------------------------------------------------------------------------
#
# AUTOMATICALLY GENERATED FILE TO BE USED BY W_HOTBOX
#
# NAME: Rotate -90
#
#----------------------------------------------------------------------------------------------------------
for i in nuke.selectedNodes():
i.knob('type').setValue(1)
wExpr = '[value input.height]'
hExpr = '[value input.width]'
i.knob('box_width').setExpression(wExpr)
i.knob('box_height').setExpression(hExpr)
i.knob('resize').setValue('none')
i.knob('center').setValue(True)
i.knob('flip').setValue(True)
i.knob('flop').setValue(True)
i.knob('turn').setValue(True)
i.knob('label').setValue('Rotate -90')
set cut_paste_input [stack 0]
version 11.1 v3
push $cut_paste_input
Reformat {
type "to box"
box_width {{"\[value input.height]"}}
box_height {{"\[value input.width]"}}
resize none
flip true
flop true
turn true
name Reformat16
label "Rotate -90"
selected true
xpos -1518
ypos -4582
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment