Jump to content

tranform sop with rand function??


wufan927

Recommended Posts

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 by Atom
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...