Jump to content

Comparing position of multiple objects in VOPS


Recommended Posts

If I'm trying to do some positioning of an object based on the position of two other objects, and I'm trying to do that in VOPS, is the best way to have my main object in Input 0 of a VOPSOP and then the two reference objects plugged into inputs 1 and 2, with importAttrib VOPs bringing in P data?

 

It seems like a limiting approach and wondering if there is a better way...

 

Thanks

Link to comment
Share on other sites

Depends on what you need to know about the reference objects, and whether they are OBJ nodes or SOP nodes.

You might well get away by just reading the transform values into parameters with expressions, with ch() in case of OBJ references, and centroid() in case of SOP references.

 

Generally a VOPSOP might not be the right tool for transforming whole objects, as is.

ee_objvopsop.hip

Link to comment
Share on other sites

Ah that is a great strategy!

What I'm trying to do is re-create something I learned for CInema4d, where using some simple vector math I'm able to create a tool to move a series of copies of objects between two guide objects...It is more of an exercise than a real life project, as Houdini has different tools, but I thought it would be a good way to break in a deeper understanding of vector play in VOPS.

 

Thanks!
 

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...