Jump to content

Tools Master Class:: How did they create Variables


sanostol

Recommended Posts

Hi,

In the Toosl Master Class they show a Project Tool, that creates or modifies global variables like $HIP or $JOB. I searched for it in hom how to do this with python but had no luck. any Hints how to do this?

Another thing that would be interessting, they mention the MainMenuCommon file for adding stuff to the main menu, there is also one for the operator, but is there also one for parameters? so when You right click on a parameter You get additional options?

Martin

Anyway: Thanks again for all the masterclasses!

Link to comment
Share on other sites

The project creator currently has to use the Hscript 'setenv' command wrapped in a hou.hscript() to accomplish that since something similar isn't implemented in HOM yet.

I haven't looked at that code since I wrote it but if I recall it's something like:

hou.hscript('setenv HIP=myprojectpath/hip')

As for different other configurable menus, it's definitely something that we'd like to have and is always possible in future versions of Houdini. I know I'd definitely love them.

Link to comment
Share on other sites

Thank You :)

The project creator currently has to use the Hscript 'setenv' command wrapped in a hou.hscript() to accomplish that since something similar isn't implemented in HOM yet.

I haven't looked at that code since I wrote it but if I recall it's something like:

hou.hscript('setenv HIP=myprojectpath/hip')

As for different other configurable menus, it's definitely something that we'd like to have and is always possible in future versions of Houdini. I know I'd definitely love them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...