How to Use an object to drive another object in vex

   4136   3   1
User Avatar
Member
30 posts
Joined: Feb. 2011
Offline
@p

@P2

How to Use @P2 to drive another @P in vex??and keep the shape of @P object


like Relationship between parent and child


thanks!!
User Avatar
Member
323 posts
Joined: Jan. 2015
Online
Hi Asche,
what do you want to do?
What do you mean by drive? deform? move?
Do you mean one point is moveing and loads of points should follow?
Maybe you have to explain abit more to get an answer…

kind regards

Olaf
User Avatar
Member
166 posts
Joined: March 2014
Offline
If you just need position, you can plug your main object into the first input, the “parent” object into the second input, then do something like:
@P += point(@OpInput2, “P”, 0);

This is an immediate offset based on point 0 of the “parent” object. I doubt this is what you want, but you'd have to explain in more detail what you are after.
User Avatar
Member
453 posts
Joined: Feb. 2013
Offline
I think he means parenting. So when you transform scale or rotate the parent object, the child object inherits those changes.
I don't think vex would do that sort of thing well. I would just use a transform sop with some expressions.
  • Quick Links