How to bind the channel of rotation of the object to the position channel of another object?

It is imperative for me to use the rotation channel along the x axis to smoothly change the position of the Empty object along the z axis. I tried to do this by usigs Object Constraint Transformation but failed in its settings. Empty does not acting as required.

Can someone help with an example? Thank you in advance!

are all your coordinate spaces set up correctly

Hey, Welcome to BA, Also make sure your ‘Source to Destination Mapping’ is correct - should be X to Z (change the Z to X (bottom one)) in your case.

The x axis rotation of what? The same empty you want to move?
The x axis as measured how? In the object’s local axes? In the world’s axes?

Again, in its local z axis? In the world’s z axis?

If you rotate an object in local x, the direction that its local z axis points is going to change. Just making sure you’re thinking about that?

Sorry for the delay in answering!

I made a short video to show that I need to ensure that when turning the object Zag_1_Rotation_Frame, the Empty object moves down a bit. This is to simulate a fake tube stretching down. To this Empty object using the Hook modifier, I attached the midpoints of the spline tubes. After a little thought, I realized that it was necessary to make a connection not with Zag_1_Rotation_Frame x axis rotatio, but with the object Empty.002 position (maybe with z axis loc), because it exactly most accurately displayed the movement of the tail of hydraulic cylinder. I have already tried the Transform modifier and the control through the drivers, but still nothing works for me. I definitely don’t understand something, or am doing something wrong, since I have only been working in Blender for a couple of months. And, obviously, for the time being I just don’t realize much.

I uploaded a sample of the scene, removing everything unnecessary on the Google disk. Maybe someone will help me and try to animate this thing as I intended? I will be grateful.

I looked at your video and at your file, but it’s not clear to me what the problem is. Other than some unspecified limits, it looks to me like your piston is behaving as it should. Maybe I’m not looking where I should be looking?

Which empty is it that you want to move down with the X axis rotation of Zag_1_Rotation_Frame?

Note that Empty.002 does not look like it ever acquires local position, although it acquires world position via its parenting. (It’s local transformation is relative to its parent.) Using a transformation constraint (or driver) targeting its local position won’t ever change anything if it’s only ever being manipulated via its parent (and their parents, and all the constraints of all the parents.)

This object called ‘Empty. 001’. Midpoints of tube curves is attach to it with Hook modifier.

Ok, then here it is with a transformation constraint:

Pretty much all the details of the transformation constraint are important-- they should be visible enough in that screenshot.

This moves empty.002 between -500 and 500 mm in world Z as Zag_1_Rotation_Frame rotates between -90 and 90 degrees in its local axis; this is extrapolated beyond -90 to 90, so at 120 degrees the empty will move 667mm in Z axis, for example.

Hello, bandages!

Thanks a lot! Your advice and participation really helped. I managed to make settings that, let’s say … satisfied me.
I made a small video for demonstration.

Thanks again, all the best!