1. 在終端中調(diào)用hython而不是python; 2. sdl2otl的選項(xiàng): -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 如果有多個(gè)sdl想同時(shí)加入otl中,將具體名字換成*.sdl 4. 如果在houdini中渲染時(shí)出現(xiàn):
格式的錯(cuò)誤,說(shuō)明你的sdl所在的路徑?jīng)]有被3delight搜索到,需要修改環(huán)境變量$DL_SHADERS_PATH,在其中加入你的sdl文件所在的路徑,或者直接修改3delight的環(huán)境變量設(shè)置文件.3delight_bash,將你的sdl文件路徑加入進(jìn)去。
|
|