Pre-render create directory

A1 A2 28.10.2016 17:06 

Custom parameter (shader_node) with path to node with filename parameter (if You use it in shader etc.):

`opfullpath("/obj/geo_heating/shopnet/material_bake/heating_pc_v001")`

Pre-render script to create non-existent directory:

<br />
import os<br />
path = hou.pwd().parm(&#8216;shader_node&#8217;).evalAsString()<br />
dirName = os.path.dirname(hou.node(path).parm(&#8216;filename&#8217;).evalAsString())<br />
if not os.path.exists(dirName):<br />
    os.makedirs(dirName)<br />