概括
然后,您可以在指向您的素材的简单脚本中使用它,运行该函数,然后保存脚本。
# 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”来启动它,例如“Nuke13.2 -t -i”或“Nuke12.3 -ti”
- 如果您在外部 Python 会话中使用Nuke作为 Python 模块,那么您需要在“import nuke ”命令之前设置 os.environ[ "NUKE_INTERACTIVE" ] = "1"
我们很遗憾听到
请告诉我们
更多信息