Sepu Posted June 12, 2017 Share Posted June 12, 2017 (edited) I cant get this to work for some reason ... I have this in a wrangle i@input = floor(rand(@ptnum) * atoi(chs("../get_geo/numobj"))); which is reading the obj merge, number of objects as you can see I also enable create primtive groups ..... the atrb i@input is giving me the correct output, random numbers from 0 to 2. then I have a delete SOP which im trying to get a random delete of the objects upstream with this expression input_`floor(rand(@ptnum) * ch("../get_geo/numobj"))` I've tried this as well, but with not success input_`point(../"number_of_inputs/", 0, "input",0)` now if I use the Copy Stamp workflow it works input_`stamp("../copy1/", "input", 0)` anyone has any ideas or something that I can try that I might be missing? Edited June 12, 2017 by Sepu Quote Link to comment Share on other sites More sharing options...
tamagochy Posted June 12, 2017 Share Posted June 12, 2017 (edited) just assign attribute for each object and make random for this attribute to delete. or enable per-primitive path and use random_shash function in prim wrangle to make random on the string name. Edited June 12, 2017 by tamagochy 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.