iamjaideep80 Posted October 10, 2006 Share Posted October 10, 2006 Hi Everybody..... Just wanted to know, how to a get a list of primitives that are directly connected to a perticular primitive. I think the GEO_Closure class will help, but not sure. Also I want to get a list of all primitives that are directly or indirectly connected to a perticular primitive. Is there any function to directly get that, or I have to loop thru all of them to get the information. Waiting for ur answers. -----iamjaideep80 Jaideep Khadilkar (Sciclone Motion Graphics) Quote Link to comment Share on other sites More sharing options...
SpencerL Posted October 10, 2006 Share Posted October 10, 2006 To find the number of connected prims you could first use a connectivity SOP and partition SOP to create groups based on a prims connectivity. Then you can use the primlist( ) expression, which lists all the prims in a group as a string, but since you want the number of prims you would have to put the primlist expression inside an argc( ) expression so it would look something like this... argc(primlist("../partition1", "group_1")) Quote Link to comment Share on other sites More sharing options...
iamjaideep80 Posted October 11, 2006 Author Share Posted October 11, 2006 Hi SpencerL... Thanks for ur help. I knew abt connectivity Sop. But just forgot abt it, and I went ahed and made my own connectivity Sop. Anyway,, got to know abt Geo_Closure and all. -----iamjaideep80 Jaideep Khadilkar (Sciclone Motion Graphics) Quote Link to comment Share on other sites More sharing options...
SpencerL Posted October 11, 2006 Share Posted October 11, 2006 Anyway,, got to know abt Geo_Closure and all. What do you mean by Geo_Closure? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted October 11, 2006 Share Posted October 11, 2006 What do you mean by Geo_Closure? It's an hdk file full of useful methods for handling groups and finding connected things. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted October 11, 2006 Share Posted October 11, 2006 It's an hdk file full of useful methods for handling groups and finding connected things. Ah...I see, shows how much I know about HDK... 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.