Hello,
I am dynamically writing creation scripts for nodes based on user preferences selected from a pyqt gui. My scripts get created here:-
~/houdiniX.Y/scripts/<context>/<node type>.py
So for example when I place down a null sop, the ~/houdini13.0/scripts/sop/null.py script gets executed. Most contexts seem to look into a logical directory for node creation scripts, sops look in /sop, pops look in /pop etc. but I have found a couple of exceptions.
For example cops do not look for /cop, they look for /cop2. The context I am having most trouble with is dops. I have tried dop, dops, dopnet, Dop, Dops, Dopnet but I just can't get a creation script to execute for a dop node. Does anyone know what the directory needs to be named for this context?
Also, does anyone know where or if this list is documented?
Finally, is anyone aware of a hom command which returns these context types for a node which correspond to where node creation scripts have to look? I am aware of things like mynode.type() or mytype.category()/nameWithCategory() etc but these are not what I need as none of them return the magic directory naming required for a dop node to look up a creation script (despite them returning something which works for other contexts).
Thanks for any help or clarification on the subject.
Context codes for scripts
3540 9 1- Dean_19
- Member
- 319 posts
- Joined:
- Offline
- tamte
- Member
- 8592 posts
- Joined: July 2007
- Online
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
- tamte
- Member
- 8592 posts
- Joined: July 2007
- Online
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
- Anonymous
- Member
- 678 posts
- Joined: July 2005
- Offline
Do you really need them? I'v been on the same track couple months ago and solution wasn't nice http://forums.odforce.net/topic/20158-why-my-initialization-script/ [forums.odforce.net]
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
- jacob clark
- Member
- 665 posts
- Joined: July 2005
- Offline
http://houdinitoolbox.com/houdini.php?asset=38 [houdinitoolbox.com]
Check out Graham's toolbox. He has a method to run an init script no matter what type of node is dropped down.
Check out Graham's toolbox. He has a method to run an init script no matter what type of node is dropped down.
- tamte
- Member
- 8592 posts
- Joined: July 2007
- Online
so apparently you can put onCreated.py file to your $HOME/houdiniX.Y/scripts/
which will be run every time any node is created
you can do filtering by type there
seems pretty powerful:
http://forums.odforce.net/topic/12280-colour-codes/?p=77600 [forums.odforce.net]
which will be run every time any node is created
you can do filtering by type there
seems pretty powerful:
http://forums.odforce.net/topic/12280-colour-codes/?p=77600 [forums.odforce.net]
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
-
- Quick Links