renderfan Posted February 17, 2012 Share Posted February 17, 2012 I have geometry from other programm that i use in houdini. The problem is wrong numbering of primitives because i must use Foreach-SOP on primitives in order. Is there some way i can reorder the primitives. I have tried Sort-SOP but can not get right order. Thank you in advance! Quote Link to comment Share on other sites More sharing options...
kare Posted February 17, 2012 Share Posted February 17, 2012 I have geometry from other programm that i use in houdini. The problem is wrong numbering of primitives because i must use Foreach-SOP on primitives in order. Is there some way i can reorder the primitives. I have tried Sort-SOP but can not get right order. Thank you in advance! Try with sort SOP. in sort SOP you can see primitive tab. change primitive sort parameter. Quote Link to comment Share on other sites More sharing options...
anim Posted February 17, 2012 Share Posted February 17, 2012 here is simple example how to sort those primitives by helper curve reorder_primitives.hip Quote Link to comment Share on other sites More sharing options...
renderfan Posted February 18, 2012 Author Share Posted February 18, 2012 Dear Anim, Thank you for your file. This helps me very much but the problem is I have not one but hundred of parts. I must do it in Foreach-SOP and I can not draw curve for every geometry. Is there perhaps other way to do this? Thank you very much!!! Quote Link to comment Share on other sites More sharing options...
Macha Posted February 18, 2012 Share Posted February 18, 2012 (edited) All they all strips like that and do they have uv? If so, you can maybe sort them along u or v. It depends a lot on the shapes they have... Edited February 18, 2012 by Macha Quote Link to comment Share on other sites More sharing options...
edward Posted February 18, 2012 Share Posted February 18, 2012 Perhaps, there could be a clever way to use the Match Topology SOP. Quote Link to comment Share on other sites More sharing options...
petz Posted February 18, 2012 Share Posted February 18, 2012 attached is a file that should do what you want. hth. petz resort_prims.hipnc Quote Link to comment Share on other sites More sharing options...
renderfan Posted February 18, 2012 Author Share Posted February 18, 2012 Hello Petz, thank you very much for your file!! It does exactly what i want. I study the file and try to understand how you did. Thank you very much!!! 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.