To make sure no NUKE scripts are saved without a version number (if the user chooses to bypasseasySave), you can write a function that checks the script name and raises an error if it’s not what you want it to be. This snippet checks if there is a lower or upper case “v” in ...
# 需要导入模块: import nuke [as 别名]# 或者: from nuke importselectedNode[as 别名]defimportFromMeta():n = nuke.selectedNode() nuke.nodePaste(n.metadata()['exr/nuke/BackupScript']) 开发者ID:geoffroygivry,项目名称:CyclopsVFX-Unity,代码行数:5,代码来源:menu.py 示例8: showChannelsDisplay ▲...
Rifle Through My Clothes is the one I wrote on the second weekend after suggesting we do one more each. It tumbled out really quickly and it’s the best one I wrote for the record, one of my favourite songs I’ve ever done actually. A lot of that is Luke taking it from the jaunty...
As an extra failsafe against data loss I made a copy of an autosave right before Nuke deletes it. This makes sure that each artist gets an automatic copy his .nk script on his local drive. This script may not be the same as the .nk file that is saved on the server, but since it...
However, if that works better for you, you can write your code in Nuke's script editor and paste it over when you're done, (as you can still use Nuke while having the Manager open). Improving the Manager's script editor with basic stuff like line numbers etc, is somewhere on my to...