Jump to content

Loading Shelves Through HOM


Recommended Posts

Hey Guys.

I'd like to modify my 123.py file to load a shelf-set into the dock using HOM. I am aware of the hou.shelves.shelfSets() method, but it only returns shelf info or lets you create brand new ones. I don't want to create, I just load ashefl-set into the dock.

Thanks in advance!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Just found out about pythonrc.py. Going to test this out and see how it goes.

The pythonrc.py won't do it either.

Here's something I learned from SESI. There's an argument you can pass to Houdini called 'waitforui', followed by any python script in your path. I created one called something like shelfconfig.py, which launched my shelfdocks. This works. Only caveat is that you have to pass the .hip file in the first argument.

houdini myHipFile.hip waitforui shelfconfig.py

Who knew?! I hope someone out there is listening, because the 'waitforui' is something I never heard of!

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Thanks fxrod to have this thread, I just found out you can't trust their document to the letter.

For guys on Windows platform, you have to use absolute path for the selfconfig.py otherwise Houdini13 will shut the UI off and keep the process going in background.

And you can't load hip file after the python file as stated in official documents here.

http://www.sidefx.com/docs/houdini13.0/ref/commandline

Seriously, there should just be a callback function to let us setup UI related stuff, life would be so much easier that way.

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...