Search - User list
Full Version: Read PScale inside a Sop network ?
Root » Houdini Indie and Apprentice » Read PScale inside a Sop network ?
redace
Hello All,

I have the following question. I am trying to read the PSCALE value of each point inside a SOP network. This should not be fairly simple but for some reason I can not find the answer.

I am moving each point with a nonDeterministicRandom -> multiplying it with a formula to increase the distance and now I want to substract the value of that point's scale from the result of the formula. So the total amount the random value is multiplied is reduced.

I hope I am clear enough.
Thanks for your help.
Greets Red
symek
It depends on in which way you want to use this data. Any parameter in SOPs can evaluate expressions so most probably you could use point() expression to read pscale in SOP's parameters. Check out in Texport (Alt+T):
“exhelp point”

Another, perhaps most convenient (the fastest for sure) way of manipulating point's attributes is to use Vop SOP. Append it to your network, jump inside, add a fresh Parameter VOP, type of float, name “pscale”, and here you go. Do with it what ever you want. You can add or modify any point attribute you need (fully multi-threaded).

Note, this can be done in CHOPs, Python SOP, or with a Point SOP and its local variables also.

HTH,
cheers,
sy.
redace
Hey Sy,

thx for the reply. I'll try both ways just for the experience.

thanks
greets red
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB