pscaleattribute by assigning a calculated value of @ptnum / @numptand can't understand why it won't work. I have tried several approaches, some of which work and some of which do not. I don't know why they don't all work.What Works
Setup:
Line SOP set to
pointstype.The Points feed into an
attribute createSOP, where I add an attribute named xand assign the value as @ptnum / @numpt.Then, I create an
Attribute WrangleSOP and add the following VEX:@pscale = @x
Works fine --
pscaleis set as expected.What Doesn't Work
If I use the same points and only the Attribute Wrangle SOP, and enter the following VEX:
@pscale = @ptnum / @numpt;
The
pscalevalue is assigned 0.0 every time, for every point.What strikes me as even stranger is that I can do something like:
@c = @ptnum; @d = @numpt;
And see that the
cand dattributes get added with non-zero values.The attached file has both setups preceding a copy to points node.

