attribute wrangle // autobind by name - float/vector

   435   1   1
User Avatar
Member
206 posts
Joined: Jan. 2016
Offline
Please, I am creating an HDA:

- user can set the name of an Attribute
- HDA calculates a float multiplier and multiplies the value of that Attribute
- the attribute could be float @Alpha or @pscale, @radius, @width...
- the attribute could be vector @Cd

It seems, that attribsize() does not see the autobound attribute.

Please, what would be the preferred (or fastest to cook) way to create such binding?
User Avatar
Member
206 posts
Joined: Jan. 2016
Offline
The VEX function setpointattrib() does not set the autobound attribute.


It seems, that I have to create two wrangles? One wrangle for floats and second wrangle for vectors? And Switch SOP between them with a pointattribsize() expression function?
  • Quick Links