Skip to content

Commit

Permalink
fix: update Write node preset for nuke 12
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jul 15, 2022
1 parent 7b871d7 commit cb8a32f
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions NodePresets/user_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,22 +177,18 @@ def nodePresetsStartup():
"Write",
"ScriptName.mov",
{
"mov.mov32_fps": '{"\\[value root.fps]"}',
"mov.mov64_bitrate": "20000",
"checkHashOnRead": "false",
"file_type": "mov",
"beforeRender": "file = nuke.tcl('eval list {'+nuke.thisNode()[\"file\"].value()+'}');\nabsolutePath = os.path.splitdrive(file)[0];\nproject_directory = nuke.tcl('eval list {'+nuke.root()[\"project_directory\"].value()+'}');\npathHead = '' if absolutePath else project_directory+'/';\ntarget = pathHead+os.path.dirname(file)\nif os.path.exists(target):\n pass;\nelse:\n os.makedirs(target);\n",
"mov.meta_encoder": "mov32",
"selected": "true",
"mov.mov64_codec": "ap4h",
"mov.mov64_advanced": "1",
"checkHashOnRead": "false",
"colorspace": "sRGB",
"mov.mov32_codec": "raw ",
"mov.meta_codec": "raw ",
"version": "3",
"proxy": "mov/[lindex [split [basename [value root.name]] .] 0]_proxy.mov",
"file_type": "mov",
"file": "mov/[lindex [split [basename [value root.name]] .] 0].mov",
"indicators": "2",
"mov.meta_codec": "apch",
"mov.mov64_bitrate": "20000",
"mov.mov64_codec": "apch",
"mov.mov64_fps": "{root.fps}",
"proxy": "mov/[lindex [split [basename [value root.name]] .] 0]_proxy.mov",
"version": "3",
},
)
nuke.setPreset(
Expand Down Expand Up @@ -251,19 +247,18 @@ def nodePresetsStartup():
"Write",
"InputName.mov",
{
"selected": "true",
"mov.mov64_bitrate": "20000",
"beforeRender": "file = nuke.tcl('eval list {'+nuke.thisNode()[\"file\"].value()+'}');\nabsolutePath = os.path.splitdrive(file)[0];\nproject_directory = nuke.tcl('eval list {'+nuke.root()[\"project_directory\"].value()+'}');\npathHead = '' if absolutePath else project_directory+'/';\ntarget = pathHead+os.path.dirname(file)\nif os.path.exists(target):\n pass;\nelse:\n os.makedirs(target);\n",
"checkHashOnRead": "false",
"file_type": "mov",
"mov.mov64_fps": "{root.fps}",
"colorspace": "sRGB",
"mov.mov64_codec": "apch",
"mov.meta_codec": "apch",
"version": "3",
"proxy": "mov/proxy/[lindex [split [basename [metadata input/filename]] .] 0].mov",
"file_type": "mov",
"file": "mov/[lindex [split [basename [metadata input/filename]] .] 0].mov",
"beforeRender": "file = nuke.tcl('eval list {'+nuke.thisNode()[\"file\"].value()+'}');\nabsolutePath = os.path.splitdrive(file)[0];\nproject_directory = nuke.tcl('eval list {'+nuke.root()[\"project_directory\"].value()+'}');\npathHead = '' if absolutePath else project_directory+'/';\ntarget = pathHead+os.path.dirname(file)\nif os.path.exists(target):\n pass;\nelse:\n os.makedirs(target);\n",
"indicators": "2",
"mov.meta_codec": "apch",
"mov.mov64_bitrate": "20000",
"mov.mov64_codec": "apch",
"mov.mov64_fps": "{root.fps}",
"proxy": "mov/proxy/[lindex [split [basename [metadata input/filename]] .] 0].mov",
"version": "3",
},
)
nuke.setPreset(
Expand Down

0 comments on commit cb8a32f

Please sign in to comment.