1
$\begingroup$

enter image description here

What should I do to control the right side with empty02 and the left with empty01?

$\endgroup$
3
  • 1
    $\begingroup$ Please add more details on which kind of control you wish to have on those "sides". $\endgroup$
    – m.ardito
    Commented Aug 11, 2017 at 17:03
  • $\begingroup$ Did you try the new way? Does it work for you? $\endgroup$
    – yann
    Commented Aug 20, 2017 at 9:24
  • $\begingroup$ I'm trying to control the transparency of the object without having to edit it like you did. Using these values the cube becomes transparent when the emptys are close to the center of it. But the animation is not correct with the two empty going one against the other. I updated the image. $\endgroup$ Commented Aug 20, 2017 at 13:36

2 Answers 2

0
$\begingroup$

This is a better approach, so I'll post it as a new answer. I recorded every step this time.

  1. Create a plane, Tab into Edit-Mode and make two loop cuts (Ctrlr) as shown in the image.
  2. Go to vertex paint and with a strength of 1 paint half of your plane pure black (0,0,0).
  3. In Edit-Mode, select one of the cuts and type space + Hook to new Object. Repeat this for the other loop-cut.
  4. Each of the cuts can now be controlled by an empty
  5. Change the size and appearence of the empty if you wish
  6. Lock all transforms and leave only the axis your gradient should follow
  7. Select both empties, then select your plane. Ctrlp and parent to Object
  8. You can now rotate, translate, scale your plane, the empties are following. The empties only translate on their local x-axis.
  9. Create your shader. I would recommend to put a color-ramp between the vertex-color input to control the easing between the two loop cuts. Vertex-colors seem to blend always linear, so on the top right corner of the color-ramp play with other easing types and choose the one you like most (I often use ease).

enter image description here

The result enter image description here

$\endgroup$
0
$\begingroup$

One way would be to use drivers. This quick setup uses the global-x value of the empties and transferes it to the position of the colorramp sliders.

This is not the most elegant way to do this, because of the usage of global transformation values.

enter image description here

$\endgroup$
1
  • $\begingroup$ How i can do it? Please explain to me. $\endgroup$ Commented Aug 16, 2017 at 12:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .