Jump to content

Resample_bias?


3__

Recommended Posts

another quick question:

Is it possible to resample a curve with a bias?

I'd like to do something like this:

Draw a curve, resample with ## maximum segments,

append a point sop and make Cd: sin($PT / ($NPT / 180)), 0, 0

Then resample the curve again using $CR as a bias,

with more points being added where $CR is highest.

scatter seems to be the most likely solution but it

doesn't seem to like $CR as an attribute.

-cpb

Link to comment
Share on other sites

Tried POPs? Pass the curve in to a Source POP. In the Birth folder use Impulse activation set to $FF==1 and set your Impulse Birth Rate.

For the Birth Probability try something like:

$CR*0.3 $CR*1

To skew the waiting, adust the multipliers.

To help rebuild the curve, I created ptnum and stuffed in $PT then used this to sort then add to rebuild curve.

Hacky but not too bad.

I wonder why the Distribution Attribute in the Source folder of the Source POP doesn't quite work for Edges (attribute) on curves. Perhaps it needs a surface.

Link to comment
Share on other sites

  • 2 weeks later...

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