how to promote the selection by group in Digital Asset?

   2992   5   1
User Avatar
Member
147 posts
Joined: Aug. 2014
Offline
Hi there,

I'm working on digital asset and I want promote the selection operation from groups when I press the enter key.

I share the example files also (I did the example with a simple subnet I think should be work in the same way).

How can I do it?

Thanks for you help and have a great weekend

Matteo

Image Not Found

Image Not Found

Attachments:
promote selection_2.png (166.8 KB)

User Avatar
Member
147 posts
Joined: Aug. 2014
Offline
file

Image Not Found

Attachments:
promote_selection_test.hiplc (140.7 KB)

User Avatar
Member
8772 posts
Joined: July 2007
Offline
your action button script needs 'grouptype' and 'ordered' parms to be promoted from group to your HDA since it is using them to know what type of selection you want

if however you just want unordered point group as your current group sop suggests just change the action button script to this and you dont have to promote those parms:
import soputils
kwargs['geometrytype'] = hou.geometryType.Points
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)

Attachments:
promote_selection_test_fix.hiplc (153.3 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
147 posts
Joined: Aug. 2014
Offline
tamte
your action button script needs 'grouptype' and 'ordered' parms to be promoted from group to your HDA since it is using them to know what type of selection you want

if however you just want unordered point group as your current group sop suggests just change the action button script to this and you dont have to promote those parms:
import soputils
kwargs['geometrytype'] = hou.geometryType.Points
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)


thank you now I try to apply to another complex hda.

Matteo
User Avatar
Member
147 posts
Joined: Aug. 2014
Offline
mh... i try to applied the same scripts to the group, but moved to OBJ level, I should change the soputils to another contex?

Attachments:
button obj.png (81.8 KB)

User Avatar
Member
147 posts
Joined: Aug. 2014
Offline
I did a variable for path and works

Thanks Tomas for your help

 
import soputils
path = kwargs['node'].path()+'/goal'
kwargs['node'] = hou.node(path)
kwargs['geometrytype'] = hou.geometryType.Points
kwargs['inputindex'] = 0
soputils.selectGroupParm(kwargs)


Attachments:
goal_path python.png (615.0 KB)

  • Quick Links