2
$\begingroup$

hej guys, I am struggling with an animation of the hatch. How to make that the object 'horn' sliding down along the local axis while following the rotation of the another object? horn has a rotation constraint to the rotating part.. I did with empties, drivers, bones, but noting worked, I wish to work it automatically so not just from 1 key frame to anotherenter image description here

$\endgroup$
4
  • $\begingroup$ Can you share your Blender project file? Instructions for sharing. $\endgroup$ Commented Jul 26 at 16:55
  • $\begingroup$ @Jakemoyo Here’s the .blend file: gofile.io/d/Z9zvI0 $\endgroup$ Commented Jul 26 at 17:30
  • $\begingroup$ @Jakemoyo I have already done that bones slides along the local axis using the drivers, but for now can't get how to parent correctly the 'pin' to bone.. so they all keep the same direction and flow $\endgroup$ Commented Jul 26 at 17:31
  • $\begingroup$ Hi. Please don't post essential information like links, file downloads or additional details in the comments section where it can be easily missed. Instead edit them into your original post with the Edit button above. Comments are transitory by nature, are hard to index or search for, and may be erased at any moment. $\endgroup$ Commented Jul 26 at 19:20

1 Answer 1

7
$\begingroup$

I assume you try to achieve this kind of "piston" effect.

enter image description here

The steps I used to create this:

First I parented an Empty to the rotating part, let's call it "Plate":

enter image description here

Then, I added a Copy Location Constrain to my "piston" Object and set the Target to the empty that was parented to the plate:

enter image description here

Then I added a new Empty and I added Damped Track constrain to my Piston, and used the new empty as target.

enter image description here

Damped Track rotates an object in all axis. So, I added a Limit Rotation constrain to limit rotation only to Y axis. (In this sector my knowledge in blender is limited, so I don't know if Damped Track is best option. I tried to use Locked Track, but didn't get it to work)

enter image description here

Next, I added Damped Track and Limit Rotation constrain to my Target Empty. The target of the Damped Track is the Piston position empty in the plate. (Actually, I could have used the Piston object too). This way, the Target always points to where the piston is on the Plate.

enter image description here

As a final step, I just added a small cylinder with a hole parented to the target empty, so that the piston nicely slides through the hole:

enter image description here

ps. Your model has very nice and clean topology :)

$\endgroup$
2
  • $\begingroup$ Thanks, I learned from this answer. I think you could have a single "locked track" on the top empty, and the cylinder has just "copy location (bottom)" and "copy rotation (top)". $\endgroup$ Commented Jul 26 at 22:11
  • $\begingroup$ Jesus.. man, seems it's what I was looking for.. life-saver. I will have a look at the blend file as well but first will try to repeat what you wrote. Appreciate!! and another thanks for your feedback on topology! $\endgroup$ Commented Jul 26 at 22:21

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.