This should be an easy one for you HDK wizards.
I'm just an HDK noobie.
I'm writing a new command in HDK. How do I find the current node or network the command is being called from?
I tried creating a Director Node and using the “getCWD()” function but it always returns the parent network.
Any alternative suggestions?
Thanks!
HDK - Finding the current node or network
2995 1 1- rudeypunk
- Member
- 113 posts
- Joined: July 2005
- Offline
- rudeypunk
- Member
- 113 posts
- Joined: July 2005
- Offline
I got this from Jenny at Sesi. Of course it works like Crazy!
If you're writing a command, the OPgetDirector()->getCWD() will return the current path given in the hscript shell.
If your command is being called during cooking (via an expression), this may have a slightly different behaviour.
Oh, to save geometry: GU_Detail::save(filename)
If you're writing a command, the OPgetDirector()->getCWD() will return the current path given in the hscript shell.
If your command is being called during cooking (via an expression), this may have a slightly different behaviour.
Oh, to save geometry: GU_Detail::save(filename)
-
- Quick Links