Willex Posted March 15, 2020 Share Posted March 15, 2020 Hi,guys! Is there a way to exchange two points' @ptnum? I want to exchange pt0 and pt1's @ptnum.And don't affect the prim Normal direction. setpointattrib(0,"ptnum",0,1,"set"); setpointattrib(0,"ptnum",1,0,"set"); They don't work. Thanks. Quote Link to comment Share on other sites More sharing options...
anim Posted March 15, 2020 Share Posted March 15, 2020 you can't directly change ptnum, but you can store it to an attribute, change that attribute and then use Sort SOP to sort by that attribute Quote Link to comment Share on other sites More sharing options...
animatrix Posted March 15, 2020 Share Posted March 15, 2020 You need to use the Sort SOP and use your ptnum attribute but make sure every point has a valid unique number before swapping some. In after anim Quote Link to comment Share on other sites More sharing options...
Willex Posted March 15, 2020 Author Share Posted March 15, 2020 (edited) 44 minutes ago, anim said: you can't directly change ptnum, but you can store it to an attribute, change that attribute and then use Sort SOP to sort by that attribute Good idea!Thank U very much!It works. Edited March 15, 2020 by Willex Quote Link to comment Share on other sites More sharing options...
Willex Posted March 15, 2020 Author Share Posted March 15, 2020 (edited) 44 minutes ago, animatrix said: You need to use the Sort SOP and use your ptnum attribute but make sure every point has a valid unique number before swapping some. In after anim Thank U very much. It works. Edited March 15, 2020 by Willex 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.