magneto Posted February 20, 2013 Share Posted February 20, 2013 Hi, If you have an input group of some type, can you convert this into another group type like Edges, without knowing the type of the input group? Because Group SOP requires you to specify the type of both groups to convert from/to. Thanks Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 20, 2013 Share Posted February 20, 2013 (edited) you could create 2 switch nodes and create a group node for each conversion type and just switch to the correct conversion, by checking the input group type with an expression. pointgroupmask("/obj/model", "group*") primgroupmask("/obj/model", "group*") and use: http://www.sidefx.co.../houdini9.5/expressions/strcmp or strmatch("string1,"string2") to check the group name against the desired group name. so smth like this for the 2 switch nodes: strmatch("WantedGroupName",pointgroupmask("../Node","WantedGroupName")) strmatch("WantedGroupName",primgroupmask("../Node","WantedGroupName")) Edited February 21, 2013 by acey195 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted February 21, 2013 Author Share Posted February 21, 2013 Thanks acey, it works now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.