AndrewMelnychuk Posted February 17, 2008 Share Posted February 17, 2008 Hello, I just did FrenchOps breaking objects tutorial. I was wondering whats the expression to get the number of primitives out of a partition sop. Is it something like NPR("../partition1"), how do I access the total number of primitives created by a sop to plug into the count of the copy node Quote Link to comment Share on other sites More sharing options...
sibarrick Posted February 17, 2008 Share Posted February 17, 2008 try nprims("../partition1") you might need backticks around it depending on where you are using it. 1 Quote Link to comment Share on other sites More sharing options...
AndrewMelnychuk Posted February 18, 2008 Author Share Posted February 18, 2008 (edited) Thank you for your replay, that function is returning the number of primitives but not the number of primitive groups. Im gonna search the help file a bit more. Thanks dude. is there a way to use primgrouplist and get the total size of that list? like count.primgrouplist? or amax.primgroupmax. Im new to houdini from max btw, sry if my thinking seems fucked. Edited February 18, 2008 by AndrewMelnychuk Quote Link to comment Share on other sites More sharing options...
AndrewMelnychuk Posted February 18, 2008 Author Share Posted February 18, 2008 Thank you for your replay, that function is returning the number of primitives but not the number of primitive groups. Im gonna search the help file a bit more. Thanks dude. is there a way to use primgrouplist and get the total size of that list? like count.primgrouplist? or amax.primgroupmax. Im new to houdini from max btw, sry if my thinking seems fucked. damnit i named my thread wrong, i need total number of primitive groups Quote Link to comment Share on other sites More sharing options...
rdg Posted February 18, 2008 Share Posted February 18, 2008 damnit i named my thread wrong, i need total number of primitive groups Get the list of primitive groups with primgrouplist(). Parse this using argc(), wich will return the number of arguments passed to it - in this case the number of primitive groups. number_of_primitive_groups.hip Hope this helps. Georg Quote Link to comment Share on other sites More sharing options...
AndrewMelnychuk Posted February 18, 2008 Author Share Posted February 18, 2008 (edited) freaking awesome, that works perfectly, i was doing that rerecreate broken object trick and I wanted the number of copies to be connected up to the system so I wouldnt have to change stuff. Woot! ty both! Edited February 18, 2008 by AndrewMelnychuk 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.