Valent Posted December 2, 2018 Share Posted December 2, 2018 Hi, Could somebody please explain, on http://www.tokeru.com/cgwiki/index.php?title=HoudiniVex I can't understand the reason behind "It's worth pointing out that if you're defining the groups yourself, you're better off using an attribute to identify the pieces, and use that to do your random whatevers." I mean, I don't understand are there any advantages in deleting(for example) some points/primitives by using additional attribute over deleting them by @ptnum/@primnum. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
FlorianEggers Posted December 2, 2018 Share Posted December 2, 2018 The reason I can think of is consistency. @ptnum of a given point might change if you delete or modify your geometry. If you define something like i@myID = @ptnum; before you do any modification of the geo, and use @myID to generate random numbers, the result will stay the same, no matter if you delete points or change the point order. 1 Quote Link to comment Share on other sites More sharing options...
Valent Posted December 3, 2018 Author Share Posted December 3, 2018 Aha! points/primitives are renumerated each time I delete some of them. It makes sense now, thanks! 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.