Jump to content
Sign in to follow this  
Hello world

pscale

Recommended Posts

Give a pscale attribute to a point and copy stamp something: it will scale accordingly.

Render a point (as point) and pscale will determine its size.

Share this post


Link to post
Share on other sites

As an example. In your network create a vopsop below a popnet. Inside the vopsop connect the point ID attribute output of the globals into a random vex node. Next connect the output of the random to a ramp parameter vex node. Change the ramp type to Spline Ramp (float). Next connect the parameter output of the ramp vex node to a fit range vex node input value. Set the destination min parm of the fit range node to 0 and the destination max parm to 1. Finally connect the shifted value output into and add attribute vex node. Place pscale in the attribute and local variable name parms. Finally at sop level connect the output of your vopsop into the template to copy to side of a copy node and some other geo in the primitves to copy to input of the copy node. Adjust the spline ramp on your vopsop to see the results of pscale.

Share this post


Link to post
Share on other sites

Fun little trivia about pscale.

Did anybody else noticed it before. ??

There is only 1 in 46656 (2.143347050754458e-05) chance of getting Peter Claes (pclaes) out of pscale.

trueRand("pscale") = "pclaes"

Cheers,

Edited by vectorblur

Share this post


Link to post
Share on other sites

As an example. In your network create a vopsop below a popnet. Inside the vopsop connect the point ID attribute output of the globals into a random vex node. Next connect the output of the random to a ramp parameter vex node. Change the ramp type to Spline Ramp (float). Next connect the parameter output of the ramp vex node to a fit range vex node input value. Set the destination min parm of the fit range node to 0 and the destination max parm to 1. Finally connect the shifted value output into and add attribute vex node. Place pscale in the attribute and local variable name parms. Finally at sop level connect the output of your vopsop into the template to copy to side of a copy node and some other geo in the primitves to copy to input of the copy node. Adjust the spline ramp on your vopsop to see the results of pscale.

hi

cheers mate! nice example.so it scales randomly according to the point number?

@Macha.

Fantastic! understood.so that scales the geometry which are connected to a point?

Edited by Hello world

Share this post


Link to post
Share on other sites

There is only 1 in 46656 (2.143347050754458e-05) chance of getting Peter Claes (pclaes) out of pscale.

trueRand("pscale") = "pclaes"

I think you have a little too much time on your hands... :)

  • Like 2

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  

×