[python {nuke.script_directory()}]/snapShots/[string trim [file tail [value root.name]] .nk]
This will give the current script path to my write node. I want add my selected nodes name end of the above's result. How to achieve this.
|
|
[python {nuke.script_directory()}]/snapShots/[string trim [file tail [value root.name]] .nk]
This will give the current script path to my write node. I want add my selected nodes name end of the above's result. How to achieve this.
Here is the code. some one make it work.
a = nuke.selectedNode()
name = a.name()
print name
def snapShot ():
w = nuke.createNode("Write")
w.setName("tempWrite")
w['file'].setValue("[python {nuke.script_directory()}]/snapShots/[string trim [file tail [value root.name]] .nk]+[name]_%04d.jpg")
w['_jpeg_quality'].setValue(1)
w['_jpeg_sub_sampling'].setValue(2)
snapShot()
| « Previous Thread | Next Thread » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |