概括
然后,你可以将此用于一个简单的脚本中,该脚本指向你的素材,运行该函数,然后保存脚本。
# define the location of your footage
# and the frame range stereoSequence='/path/to/stereoFootage.%V.###.ext'
first=1
last=20
# Create the Ocula script
createOculaTree(stereoSequence,first,last)
# save out your script
nuke .scriptSaveAs('/path/to/save/ ocula Script.nk', True)
请注意:要通过 Python 执行 O_Solver 节点,您需要同时使用Nuke和Ocula的交互式许可证。
- 如果您正在运行Nuke终端会话,则需要在参数中使用“-i”启动它,例如“Nuke16.0 -t -i”或“Nuke16.0 -ti”。
- 如果您在外部 Python 会话中将Nuke作为 Python 模块使用,则需要在执行“import nuke ”命令之前设置“os.environ["NUKE_INTERACTIVE"] = "1"”。
我们很遗憾听到
请告诉我们
更多信息