3
$\begingroup$

I am just trying to set up a dynamic circular array of objects. To keep it as dynamic as possible, I want to make my helpers empty z rotation driven by a driver. The Scripted Expression looks like this: 360/count while count is the count value set in the arrays modifier on my object.

The final value calculated in the driver is correct.(45 in case I have a count of 8). The actual value set in the rotation property is different. See the Screenshot below.

enter image description here

Am I missing something?

$\endgroup$
4
$\begingroup$

While all angles entered into the transform input field are interpreted as degrees, when you set the value in a script or driver it's interpreted as radians.

radians vs degrees

Your driver sets the rotation to 45 radians which is about 2578 degrees. The expression 2*pi/count should provide you with the desired angle.

$\endgroup$
  • 3
    $\begingroup$ or radians(360 / count) $\endgroup$ – batFINGER Jun 10 '18 at 12:40

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.