Name of primitive group

   2723   2   0
User Avatar
Member
35 posts
Joined: July 2005
Offline
Hi
A have a question. I didn`t find answer on it in help. Maybe i am search not so careful.

How can i get name of primitive group which given primitive belongs to?
User Avatar
Member
4256 posts
Joined: July 2005
Offline
It depends on where you need this information. (In a script, in a expression, in VEX, etc)

If need to do this query from a script then you can do something like….

set sopPath = “/obj/model/MySOP”
set primNum = 43
foreach group (`primgrouplist(“$sopPath”)`)
if (`hasprim(“$group”,“$sopPath”,$primNum)`==1)
echo $group
endif
end
if(coffees<2,round(float),float)
User Avatar
Member
35 posts
Joined: July 2005
Offline
I need this information in a expression.
Thank you Wolfwood. You gave me an idea
I will try to make a custom expression function based on your code.
  • Quick Links