Arthur~Chiu Posted January 5, 2015 Share Posted January 5, 2015 i only want to copy some points and insert points in a particular position. how to do this? Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 5, 2015 Share Posted January 5, 2015 There's lots of ways to do that. What are the points for? What's the effect you want? Simplest way would be an Add SOP and just type in the point positions you want. Can you provide an example scene with what you've tried before? Quote Link to comment Share on other sites More sharing options...
Arthur~Chiu Posted January 6, 2015 Author Share Posted January 6, 2015 I want iterate per curve,primitive and get per curve points,such as one curve has 4 points, the point index is like this {0 ,1 ,2, 3 } ,now i want to copy the point index 0 and 3 data(position and attribute) , after that i want insert the copied point 0 beforethe the point index 0 ,now the point index is {0(new copy point),1(The original point 0),2(The original point 1),3(The original point 2),4(The origina point 3l)} It means i want to in pointlist before and after each insert a point, I find "insertPointCopy ( GA_Offset src, GA_Index beforeWhich = GA_INVALID_INDEX )" operation but when i Insert point index 0 is always at the bottom, the "GA_Index beforeWhich" parameter should be how to set? Or have a better way? 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.