Last active
January 3, 2023 12:45
-
-
Save Arslan-TR/c2e1fea15dea531149e251c69a1918ea to your computer and use it in GitHub Desktop.
NUKEx, Auto Write Node Path optimization -_- Arslan_TR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#automatic Write Node path Optimized with Pulldown menues and other features that you can use as referance for your need | |
#put script in to a phytonButton | |
#basic NUKE v12 & phyton knowledge required!by Arslan-TR (MNS O.) | |
#n is = this is your WriteNode | |
n = nuke.thisNode() | |
#n = nuke.selectedNode() | |
n['file'].setValue('[lrange [file rootname [value root.name]] 0 end-1] [value Sticky_Settings.pulldown][value Sticky_Settings.string_episode]/[lrange [split [file rootname [filename [topnode]]] "_"] 4 end-2][lrange [split [basename [file rootname [value [topnode].file]]] "_"] 1 end-1][value Sticky_Settings.string_episode].mov') | |
#refresh. disable and enable nodes that u want to refresh | |
n['disable_15_render'].setValue(1) | |
n['disable_15_render'].setValue(0) | |
n['disable_path_node'].setValue(1) | |
n['disable_path_node'].setValue(0) | |
#this is still not completed I was tryng to make automatic ReadNode but not operational yet. | |
bs = nuke.root().knob("first_frame").value() | |
n['text'].setValue('nuke.root().knob("first_frame").value()') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment