If you want to snap the objects using the script but not have the point constraint remain - you can add this (changing the variables to $parent and $child):
I have a better idea! Why not select the cube (as u mentioned) and make it's LRA (local rotation axis) on! then select the cylinder and press "v" and snap it to the LRA of the cube!
If you want to snap the objects using the script but not have the point constraint remain - you can add this (changing the variables to $parent and $child):
select $parent;
select -add -hi c$child;
select -d $child;
pointConstraint -remove;
-cheers
colemeister14 1 month ago
I have a better idea! Why not select the cube (as u mentioned) and make it's LRA (local rotation axis) on! then select the cylinder and press "v" and snap it to the LRA of the cube!
frozenfire7200 1 year ago
@frozenfire7200 thanks for your reply...i needed a mel script, to use it on my ik/fk automation switch...
70MadMax 1 year ago
@frozenfire7200 hi, this is only an example about 'how to do that with a mel script'...then you can use it in other scripts, withouth user actions...
70MadMax 1 year ago