Jump to content

custom handles


sirogi

Recommended Posts

Hi there!

I was just modelling using the Copy SOP, nothing fancy just a circular array, and found myself going back to the parameters tab, and moving the pivot in xyz, with the number ladder!...old houdini-style!! grr....

I remember seeing in a demo last siggraph (or was it last night in my dreams....) that you can bind a handle to any parameter in a SOP, I just wanted to slap a translate handle on the pivot if possible...any ideas?

cheers...

Link to comment
Share on other sites

  • 14 years later...
  • 2 months later...

Hey

You can add handles and link them to parameters using hscript. 
What I did was use Python and from there call hscript to create handles, Unfortunately at this point in time i don't have any example code or files.

Have a look at http://www.sidefx.com/docs/houdini/commands/pomadd

But i do remember having difficulties deleting the handles afterwards, and having memory leaks.

It's not much but hope it helps.

Link to comment
Share on other sites

  • 3 weeks later...

Hallo Konstantin

I finally had time to go trough my old work and find an example file.
It takes a curve or line and creates transform handles for each point. The handles are then linked to parameters. From the parameters they could be linked back to attribute data.

I't might be possible to directly attach handles to attribute data but i'm not sure about that.

Hope this helps you on your way.

custom handles.hipnc

  • Like 3
Link to comment
Share on other sites

  • 1 year later...

Hi @Maurits,

Are you able to explain me a bit what the code does ? I have a decent background in programming, but with the lack of comments, I don't really know what variables like cpn, cpo, cn and co does. I would like to learn how to create custom handles like you did. So, I'm trying to understand what you did. It would be very appreciated.

Thank you !

Link to comment
Share on other sites

  • 5 weeks later...

Hi  anthonyblanchettepotvin

Sorry for the really late response.
From what i can getter from the code and looking at the nodes. 

cpn == Parm name of the parm containg the base positions of the custom parms.
cpo == the Parm expresion for cpn
cn
== Parm name of the parm containing the offset position relative to the value contained in cpn
co
== The parm expresion for cn

These variables in the first python node mainly help setup the location and exprespion scripts used to control the location of each extra handle.
Hope it might still be of some use.

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