Jump to content

Delete SOP not reading expression


Recommended Posts

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.

Casspture.PNG.10ef7db68bf84aec3e78a431edf5323a.PNG

 
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"))`
s.thumb.PNG.613a78dc685e4944fe0f7874ae6a6acf.PNG
 
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 by Sepu
Link to comment
Share on other sites

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 by tamagochy
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...