Use Attribute in Parameter?

   3195   1   0
User Avatar
Member
3 posts
Joined: Dec. 2019
Offline
Okay - so I'm a total novice but have no idea how to ask this question.

I'm trying to use the total point count of a curve for a parameter expression.

With an attribute wrangle, I've created an integer with i@numpoint= primvertexcount(0, @primnum);

But I have no idea how to use the ‘numpoint’ in math, parameters, etc… Any help for how to expose this attribute?
User Avatar
Member
8531 posts
Joined: July 2007
Online
if your attribute is on points you can use point() [www.sidefx.com] hscript expression function in parameters
if primitive, vertex, detail then prim() [www.sidefx.com], vertex() [www.sidefx.com], detail() [www.sidefx.com]

in case the value was string then you would use points() [www.sidefx.com], prim() [www.sidefx.com], vertexs() [www.sidefx.com], details() [www.sidefx.com] expressions
Edited by tamte - April 17, 2020 21:39:57
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links