wufan927 Posted November 10, 2021 Share Posted November 10, 2021 i tried to use rand(@ptnum) and rand(@primnum) in tx of transform sop, but it simply doesn't work the way i expected, is there a expression to translate point's position based on point number in transform sop?? Quote Link to comment Share on other sites More sharing options...
Atom Posted November 10, 2021 Share Posted November 10, 2021 (edited) Use a point wrangle instead. // rand(seed) produces an output between 0-1. float min_X = -10; float max_X = 10; // remap random value to new range. float new_x = fit01(rand(@ptnum),min_X,max_X); @P.x = new_x; Also... // increase in x by point number. float inc = 0.5; @P.x = @ptnum * inc; Edited November 10, 2021 by Atom 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.