2
$\begingroup$

This is the setup.

  • Blue Slider.
  • Green cube with array modifier.
  • Red cube.

The Blue slider drives the Green cube's array property count when moved up/down and works perfect. enter image description here

The red box is set to move its location to the green box's location.x+dimension[0]. If I resize the green box or move it, the red cube is following the green box's end correctly (location.x+dimension[0]).

enter image description here However, If I change the Green box's count property in the Array modifier (with or without Blue slider driver), the red box's location isn't updated at all.

To update it I have to set the cursor in the drivers Expression box and press Enter. It seems like the driver isn't triggered when the array count property changes the cube's dimension.

Any way to fix this?

$\endgroup$
  • $\begingroup$ I know this use to work, an example in this video. I can not get it to work ether, which makes me think it might be a bug. $\endgroup$ – David Oct 31 '14 at 20:27
2
$\begingroup$

Give the red cube a dependency on the blue slider. Do this by adding a new variable as the slider location.z, you don't need to use this variable in your expression calculation but having it there adds a dependency that updates the location as you want.

enter image description here

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ Yes, that did the trick. $\endgroup$ – Max Kielland Nov 2 '14 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.