Jump to content

Updating the parameter window when selecting a node in the network edi


goshone

Recommended Posts

I am able to select a node in the network editor with python very easily.  The problem I am running into is how to cause the parameter window to update based on this selection.  

 

There seems to be different levels of selection.  When selecting through the UI (left-clicking on a node), the node turns deep yellow, and the parameter window (PW) updates.  When you shift select with the mouse, the last selected becomes deep yellow, and the previous node is outlined in a lighter yellow (this is the sort of selection that is produced by calling node.setCurrent( 1 ) or node.setSelected( 1 ).  If you click off a node in the network editor, you essentially deselect all the nodes, but the last selection remains in the PW, and the relative node has a slight white outline around it, I guess indicating the PW relationship.

 

I am trying to create a new node and have it become selected with the PW reflecting the new object.  

 

Does anyone have any tips on how to accomplish this easily without querying too much of the UI panels?

 

Thanks

Josh

Link to comment
Share on other sites

node.setCurrent( 1 )

That should work. It sets "last selection" to the node, and updates Parameters Window properly for me. It may visually appear like orange frame still on old node, however. Try moving in the network editor to redraw it. Also check if PW is not pinned.

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