Accessing multiparm list 'Remove/Insert Before' non-parms?

   1220   2   1
User Avatar
Member
7 posts
Joined: June 2016
Offline
Best example is a simple add sop node.


In python, it's easy enough to set the 'points' parameter to add/remove points. But suppose I had 5 points, and I only wanted to delete the point at index 1 (the 2nd point down the list), I would need to click on the red X to delete it.
Is there a way to execute this same command via python?

Also, suppose I have two add sops, add_A and add_B. They're linked up so the number of points coming from add_B matches add_A. Again, how could I remove the point at index 1 for add_A and somehow have the index 1 point from add_B also removed (hence wondering if there's even a way to add expressions or link up this button)

Thanks!
Edited by aiyapk - Nov. 3, 2022 19:15:09

Attachments:
addNode.JPG (41.7 KB)

User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
hou.Parm.removeMultiParmInstance(index) should be what you are looking for
User Avatar
Member
7 posts
Joined: June 2016
Offline
ah perfect, exactly what I needed. Thanks!!
  • Quick Links