[Sidefx-houdini-list] prim group name
ken.ouellette at gmail.com
Thu Oct 2 11:55:28 EDT 2008
old school hscript way..
The above will return the names of all groups matching the "yourGroupName*"
The above will return *all* prim groups for the specified SOP.
If you name the groups with a "_" you can use the rindex command to find
that location and then substr out from that (position+1) to the strlen of
just be sure to loop through the list of groupNames if you have many.
set var =`primgrouplist("/obj/box_object1/group1")`�
echo `substr($var, rindex($var,"_")+1,strlen($var))`
you could do it with HOM.. but I'm not up on that as of yet.
On Thu, Oct 2, 2008 at 10:05 AM, Adrian Lee <dryrainstudios at gmail.com>wrote:
> howdo all
> is there an expression that returns the name of the group a primative is
> in? I am trying to add an atruibute to a number of groups before extruding
> so that I can group them again after
> or is ther a way of getting the groups number abit like opdigit. ie
> groupfoo_100 would return 100
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list