Jump to content
Sign in to follow this  
bretik

@pscale for vellum grain?

Recommended Posts

Does anyone know if it's possible to use @pscale for vellum grain? I mean to create it on "Grain Source" and pass it to a "Vellum Configure Grain". To a "grain size" probably?

Thanks.

BK

Share this post


Link to post
Share on other sites

When you're using vellum grain sop it makes it automatically. Without this attribute grains doesn't work.

Share this post


Link to post
Share on other sites

You can always overwrite @pscale after the vellum grain source. Add a wrangle after such as 
 

f@pscale = fit01(rand(@ptnum), .05, .1);

or whatever and it should work.

Share this post


Link to post
Share on other sites

You can make it random if you go inside vellum grain and disable uniform scale at grain sop.

Share this post


Link to post
Share on other sites

Hey everyone,

I'm very new to Vellum grains.

 I did a vellumConstraints_grain

and then randomized @pscale in a wrangle on the first output before throwing it into the Vellum Solver.

(I found that I could only randomize the scale down... when I randomize it to higher pscales, the grains would explode because of self collisions)

QUESTION:

Now I'm looking at the simulation, and it looks like I've got gaps between the grains. (probably due to the pscale shift, right?). what should I do to fix this?

 

pscalegrains.hipnc

pscaleissue.jpg

Share this post


Link to post
Share on other sites

Make constraints after randomizing pscale, not before. But you will get the gaps because constraints not rigid.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×