Can i make empty to trigger driver

0001-0060.mkv (35.5 KB)
example
hello,there is driver controled by scale boone so i want freely control empty when it pass the bone it trigeres the driver to scale the object, forward and backward of the bone
if there is a guide in youtube i will be happy cuz i didnt found
and sorry i dont know how to show bones and emptys in render :confused:

Hi there, sorry but it’s hard to understand exactly what you want…
You want to replace the driver to be controlled by an empty rather than a bone ?
Basically it should be the same thing so probably not that …

Sorry …

you can easily show bones + empties by rendering via Menu “View” → Viewport render animation

Hi there,

I see what you want to do, I think. You’ll want to use a distance type of driver for this.

Also, following @Blender_Fun1 advice and doing a Viewport render animation and setting the encoding to be MPEG-4 instead of Matroska, will allow your video to be embedded and playable from a browser - like this:

Allowing others to view your video without downloading it.

Here’s the example file:
distance_driver_example.blend (541.8 KB)

Hope this helps,
Randy

can we make when empty passing the bone the cube will not scale back to normal?

Yes, you would do that in the Drivers Editor window.

Have you worked in any of the Graph Editors in blender?

If not, I’ll explain it to you.

Randy

i tried to play with the graph but no success but also i was edit my last reply with video as u said but it didnt uploud
0001-0100.flv (800.4 KB)

Ok, here’s a bit of a crash course in how the graph editor/drivers editor works in blender.

Values on the x-axis (left to right) are your input value. Values on the y-axis (up and down) are your output value. The above example is just for reference.

Now, when you open the example file I posted, the graph editor will be open. Take a look at the curve in the graph editor.

Notice the red line? That red line tells us that when the input value is 0, the output value is 0. That is the control point that is highlighted. Take a look at the other control point, it’s at 1,1. That means when the input value is 1, the output value is 1. So when the input value (the distance between the empty and the bone) is 0 the output value will be 0 (the value of the shape key). When the distance between the bone and the empty is 1, the value of the shape key is 1.

To give you what you want, you need the red line to be running the opposite way - from the top left to the bottom right. Like so:

Now, if the input value (distance from empty to bone) is 0, the output (shape key value) will be 1 and if the input is 1, the output will be 0. This should be what you are looking for.

To control exactly where the control points of the curve are, select a curve point in the drivers editor, and switch to the f-curve tab, like in the last image. Here the Key Frame value is the input. The Value is the output value = shape key value.

As to the file you posted, I didn’t look at. I think it’s encoded to be a Flash Video file (.flv), you need to be creating .mp4 files for them to be playable from a browser. See my post here that has a screenshot of my output setting to create a file that can be playable in a browser without downloading.

Hope this helps and feel free to ask questions,
Randy