如何在Nuke中读取DTEX文件格式?

时间:2017-11-20 09:04:08

标签: xml nuke renderman

我想在Mac上为The Foundry Nuke添加Pixar RenderManProServer 21.5库的组件。这些组件对于以DTEX格式阅读(对于深度合成)至关重要。 Foundry的用户指南告诉我,我需要创建一个XML environment.plist 文件并将其放在 .MacOSX 目录中。

You can see it here.

但它不起作用。

<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
    <dict>
        <key>DYLD_LIBRARY_PATH</key> 
        <string>/Applications/Pixar/RenderManProServer-21.5/lib</string> 
        <key>RMANTREE</key>
        <string>/Applications/Pixar/RenderManProServer-21.5</string> 
    </dict>
</plist>

还有其他方法可以在Mac上为Nuke安装RenderMan库的组件吗?

1 个答案:

答案 0 :(得分:1)

macOS不再支持

~/.MacOSX/environment.plist(自10.8起)。因此,您需要使用~/.bash_profile编辑器将一些行放入隐藏文件pico中。

Terminal执行sudo命令:

sudo pico .bash_profile

# you need an administrator password for sudo command

然后将这些行放在.bash_profile文件中:

echo RenderManProServer environment variables are set...
export NUKE_TEMP_DIR=/var/tmp/nuke-u501/
export NUKE_PATH=/Users/swift/.nuke
export RMANTREE=/Applications/Pixar/RenderManProServer-21.5/
export RMSTREE=/Applications/Pixar/RenderManProServer-21.5/
export DYLD_LIBRARY_PATH=/Applications/Pixar/RenderManProServer-21.5/lib/
export RMANFB=it
export PATH=$PATH:$RMANTREE/bin:$RMSTREE/bin/it.app/Contents/MacOS:$RMSTREE/bin/slim.app/Contents/MacOS

不要忘记按 ctrl + o 保存此文件,然后按 ctrl + x退出pico编辑器