Translate geometry moving a point position to origin using Point Wrangle

   3711   2   1
User Avatar
Member
4 posts
Joined: June 2014
Offline
How can I translate a geometry, using a specific point position to world origin.
In my case I have a vine leaf(attached hip file), I want to set point 0 position to be world origin.

I was able to do this using Attribute VOP, I would like to know how to write VEX to do the same thing using Point Wrangle.

I appreciate your advise.

Attachments:
vine_003_forum.hiplc (133.5 KB)
pw.PNG (321.2 KB)

User Avatar
Member
406 posts
Joined: April 2017
Offline
You can right-click any VOP and view the VEX code generated by it. It'll be a little verbose, but the commands you want are in there.

Anyways, the shorthand:
@P -= point(0, "P", 0);
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
4 posts
Joined: June 2014
Offline
Thank you so much toadstorm! That did it perfectly. Also thank you for the advise to see the VEX code!
  • Quick Links