how to get at curvature?

   6828   8   2
User Avatar
Member
648 posts
Joined: 7月 2005
Offline
what is the correct spelling for $CURVATURE ?
it isn't in the help page for measure, as usual.

Attachments:
howtogetatcurvature.gif (29.5 KB)

User Avatar
Member
3 posts
Joined: 3月 2009
Offline
You could just use point(“../curvature”,$PT, “curvature”,0) instead.

or add another attribute with that expression so that you can use its local variable.

Does anybody know how to make a local variable if one doesn't exist (without creating another attribute).
User Avatar
Member
789 posts
Joined: 4月 2020
Offline
You can add a local variable by adding the attribute again and initialising it to it's local variable. For example in this case, use an attribute create sop, set the name the curvature and in the value type $CURVATURE. It will retain the values and add the mapping.

Hope that works for you.

Koen
User Avatar
Member
106 posts
Joined: 3月 2009
Offline
I can only get it to work when i set the measure op to ovveride the name to area and use $AREA in the delete op
Georg Kaltenbrunner - fx lead DDVC
User Avatar
Member
648 posts
Joined: 7月 2005
Offline
Thanks Sam, there really needs to be a concise alias for
point() when querying points of the current sop…
something lile ‘$’ perhaps!
then we can just type $CURVATURE :shock:
User Avatar
Member
1 posts
Joined: 3月 2013
Offline
If I use an Attribute Create node to create “curvature”, it replaces all the values for each point with “0”. The

point(“../object_merge1”, $PT, “curvature”, 0) > 2

expression in the Delete by Expression box in the Delete node selects no points. I think that expression would use $CURVATURE (also does not work), but as with the simpler

$CURVATURE > 2

there's no variable mapped to $CURVATURE despite the Measure node.

Wigal123's solution works.
User Avatar
Member
606 posts
Joined: 5月 2007
Offline
SamHancock
Does anybody know how to make a local variable if one doesn't exist (without creating another attribute).

Looks like one can just create a “varmap” string detail attribute and give it a value “curvature -> CURVATURE” and it works..

Attachments:
ee_varmap.hip (61.3 KB)

User Avatar
Member
443 posts
Joined: 9月 2012
Offline
Or in pointwrangle:
addvariablename(“curvature”, “CURVATURE”);
User Avatar
Member
443 posts
Joined: 9月 2012
Offline
Or in AttribCreate sop
Name: curvature
Local Variable: CURVATURE
Write Values: turn off
  • Quick Links