shrifazmy Posted March 14, 2017 Share Posted March 14, 2017 Hi Am trying to get the distance between tow objects and use it as variable for a third object width so i was thinking to promote every object (( the targets )) position as an attribute and use the vop to get the distance and export it as an attribute and then feed it in expression at the third object width But unfortunately it didn't work am not sure if my method is fine or there is a better method I attached my hip file thanks in advance Distance.hip Quote Link to comment Share on other sites More sharing options...
Atom Posted March 14, 2017 Share Posted March 14, 2017 You can achieve the same result with fewer nodes. You really only need one line of code to get the distance between two points. 1 Quote Link to comment Share on other sites More sharing options...
boby Posted March 14, 2017 Share Posted March 14, 2017 Hey! Atom's Solution is quicker but as you are using polygon, i'm assuming you want the average position of your HR model to be taken into account in the distance calculation. Here is your scene modified to get it work (using vops too). Distance.hipnc 2 Quote Link to comment Share on other sites More sharing options...
shrifazmy Posted March 15, 2017 Author Share Posted March 15, 2017 Thanks Atom & Boby that was relay helpful Yes Boby that what I was Looking for thank You 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.