PhasmaCeritus Posted January 29, 2010 Share Posted January 29, 2010 (edited) 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 January 29, 2010 by PhasmaCeritus Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted January 29, 2010 Share Posted January 29, 2010 Check this Houdini Help page. Quote Link to comment Share on other sites More sharing options...
sam.h Posted January 29, 2010 Share Posted January 29, 2010 Just using a vopsop to get the distance and some sorting to get min and max distance to normalise with. min and max are detail attributes. .. normDistToPoint.hipnc Quote Link to comment Share on other sites More sharing options...
majikal Posted January 29, 2010 Share Posted January 29, 2010 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 Quote Link to comment Share on other sites More sharing options...
PhasmaCeritus Posted January 29, 2010 Author Share Posted January 29, 2010 excellent, that's really helpful thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.