Jump to content

python noob


sunantha

Recommended Posts

Hi guys,

I'm very new to python and trying to figure out how to create a shelf tool which helps me to automatically search for the latest otl stored in one directory and grab that latest one and drop it onto /obj for me. Make any sense? I am not quite sure how to approach that? All thoughts are appreciated and welcome.

cheers,

s

Link to comment
Share on other sites

I have no doubt a Python script could do this, but my question would be why would you want to? Why make something harder and more complex than it needs to be? Houdini already has OTL version control inherently, if you're not using it then maybe reconsider how an OTL is being used in your workflow.

http://www.sidefx.com/docs/houdini11.0/assets/install#id345170

As for the custom Python version control aspect of it (which I wouldn't recommend pursuing) see these links. They have some code examples in there too.

http://www.sidefx.com/docs/houdini11.0/hom/hou/hda

http://www.sidefx.com/docs/houdini11.0/hom/hou/HDADefinition

Link to comment
Share on other sites

I have no doubt a Python script could do this, but my question would be why would you want to? Why make something harder and more complex than it needs to be? Houdini already has OTL version control inherently, if you're not using it then maybe reconsider how an OTL is being used in your workflow.

http://www.sidefx.com/docs/houdini11.0/assets/install#id345170

As for the custom Python version control aspect of it (which I wouldn't recommend pursuing) see these links. They have some code examples in there too.

http://www.sidefx.com/docs/houdini11.0/hom/hou/hda

http://www.sidefx.com/docs/houdini11.0/hom/hou/HDADefinition

You are absolutely right! BUT they don't have a workflow like that here where I am currently working and I already suggested them. Like you said the best thing is to create an asset which everyone else can match current def...and all.

Anyway, I will have a look at the links you posted.

cheers,

s

Link to comment
Share on other sites

"...they don't have a workflow like that here where I am currently working..."

this behavior is inherent within Houdini - you don't need to set it up....

Houdini looks within it's PATH for a number of directories to include - any otl within these dir will be loaded, and the Operator Type Properties settings will determine which ones Houdini will 'prefer'

when instantiating an otl, depending on the settings in the OTP, Houdini will use the latest version.

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