Non-uniform instance scale

   3731   2   0
User Avatar
Member
12 posts
Joined: Dec. 2016
Offline
I'm trying to randomly adjust the scale of instances on a single axis. I have a VOP generating a per-point scale value with a noise. I'm adding that value to 1 and sending the result to a new ‘scale’ attribute on the Y. In the spreadsheet the resulting scale Y factor on each point is the same, even though I can see unique scale factors generated from the noise. It seems as if it's taking into account the scale factor for only one point, and applying it to all. Anyone have any input on where I'm going wrong? File is attached. Thanks!

Brian

Attachments:
instanceNonUniformScale.hip (125.5 KB)

User Avatar
Member
9380 posts
Joined: July 2007
Offline
Add Attribute just creates attribute and sets the default value, so you are essentially setting one default value that all points are initialized to

use Bind Export node to set per point scale values
or Set Attribute node

you can keep Add Attribute node in there if you wish to set the typeinfo, default value or local variable for your attribute as well
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
12 posts
Joined: Dec. 2016
Offline
Worked like a charm! Thank you for the help!

Brian
  • Quick Links