Jump to content

See Code For Shelf Tool?


Justin K

Recommended Posts

Hey,

 

Is there a way to see the actual code for any of the shelf tools?  The bones from curve is the one I am after.  I would like to write a tool that allows for the generation of multiple bones from a series of curves--as opposed to one bone chain from one curve.  As I am trying to extend functionality not reinvent the wheel I figured a great place to start would be this:  seeing how the current tool is written.  Then again, maybe this is a really ignorant question.  :huh:.  Ive been rummaging around the preferences folders looking for shelf tools in file format but am coming up short--granted I am on a mac....

 

Thanks in advance!

 

 

 

 

 

Link to comment
Share on other sites

Thanks John,

I actually did get that far.  

However the only snippet of code in there was this:

 

import objecttoolutils

objecttoolutils.customStateTool(kwargs, 'bonesfromcurve')

 

which means there is something else going on below the hood.  

Edited by Justin K
Link to comment
Share on other sites

13 hours ago, jkunz07 said:

Those modules exist in $HFS/houdini/python2.7libs/

So if your on a mac you can do 


open -t $HFS/houdini/python2.7libs/objecttoolutils.py

in the shell to check out what's going on with the customStateTool function.

Thanks for that!

 

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