Jump to content

max attribute value


Recommended Posts

Hi,

I have a quick question how can I create a custom point attribute that would have a max attribute value.

For example we have three points how could I get a custom attribute with highest Y values.

P[x]_P[y]_P[z]___CustAtt

0____1____0______5

0____3____0______5

0____5____0______5

I am creating a tool that would give me normalized point distances from a certain point. And I got stuck on normalizing values for which I need to divide calculated distances by the distance of the furthest point.

Please tell me if you know a better way how that could be done...

PS if somebody knows simpler way to measure distances between two points than using point expression and punting it in to uber long expression line - please share :)

Thanks

Edited by PhasmaCeritus
Link to comment
Share on other sites

hehehe . i was just in need for function like this.

But since i can not afford reordering points i made python sop..

the result is the same without reordering.

I didn't figure out how varmap detail attribute works in python, the attribute is not mapped.

So later on you need to access attribute with point expression, something like that:

point("../NormDistance1", $PT, "normDistance",0)

NorDistance.otl

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...