Jump to content

Select node with Python


CarlosGuzman

Recommended Posts

Hi, 

I am trying to select a node with a button in a HDA, but when I do select it, the object level switches to geometry level, how can I prevent that?

I would like to select a drawcurve with an enter included, so when I press the button I will have the cursor switch to the red sphere icon to start drawing.

any ideas would be highly appreciated it.

 

Thanks,

Link to comment
Share on other sites

You can set handles and the default state of your hda inside the type properties. So I would not try and select the node inside the hda at all, but rather promote the parameters and set the default state to stroke. Also take a look at the drawCurves SOP which is nothing else than just a HDA built around the stroke SOP.

There has already been a nice explanation of this here: 

I hope this helps if you haven't found a solution by now anyway.

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