You should put your OnCreated.py or OnLoaded.py in a scripts/ directory somewhere in the HOUDINI_PATH. For example, $HOME/houdiniX.Y/scripts/OnCreated.py
Graham Thompson, Technical Artist @ Rockstar Games
No. The parent has to create the node as a child, so pwd() will return it. You get the newly created node using kwargs node = kwargs node.setColor(hou.Color((1,0,0)))
Graham Thompson, Technical Artist @ Rockstar Games
graham No. The parent has to create the node as a child, so pwd() will return it. You get the newly created node using kwargs node = kwargs node.setColor(hou.Color((1,0,0)))
ahh that's it! thanks a lot! exactly what I needed I remember reading about that kwargs but I guess I need to investigate further more on that one.