1. 在终端中调用hython而不是python; 2. sdl2otl的选项: -v Verbose -l hdafile Create a Houdini Digital Asset (HDA) for a single shader -L otlfile Add shaders to a library of digital assets (OTL) -N label For a single .sdl file, specify the label in the menu -C icon For a single .sdl file, specify the name of the icon 3. 将sdl加入到该shader中: /opt/hfs12.5.316.22/bin/hython /opt/hfs12.5.316.22/bin/sdl2otl.py -v -L rndmanShader_v001.otl dl_constant.sdl 如果有多个sdl想同时加入otl中,将具体名字换成*.sdl 4. 如果在houdini中渲染时出现:
格式的错误,说明你的sdl所在的路径没有被3delight搜索到,需要修改环境变量$DL_SHADERS_PATH,在其中加入你的sdl文件所在的路径,或者直接修改3delight的环境变量设置文件.3delight_bash,将你的sdl文件路径加入进去。
|
|