You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Number generator rotation on Z-axis in Motion

For practice, I have a generic Generator project set up containing two elements: a square and a number generator.


  • For the Number Generator, I set the end to 90. This works. The counter counts to 90 over the duration of the project.
  • I added a link to the square, and put the number generator as the source.
  • For the Source Parameter, I selected Object.Numbers.Value.
  • For the Apply To, I put Properties.Transform.Rotation.Z.
  • Apply Mode: Add to source (although I tried with every option).
  • Mix Over Time: Custom Mix
  • Scale: 1
  • Apply Link When: Any Source Value (although I've tried all options here).
  • Source Frame Mode: Continuous


The link doesn't appear to recognize the number input. What am I doing wrong?


I want the object to spin a specified number of degrees over the specified duration based on a published input.



[Re-Titled by Moderator]

MacBook Pro 13″, macOS 14.6

Posted on Jan 20, 2025 11:55 PM

Reply
2 replies

Jan 21, 2025 10:21 AM in response to Joey Delli Gatti

The Numbers generator has two distinct modes: Animate and Animate OFF.


When Animate is checked, Numbers is just a dumb counter (from Start to End). The number that is displayed cannot be accessed by another Numbers generator — Start and End are completely disassociated from Value — the number that is displayed is NOT the Value.


When you turn Animate OFF, then you have access to the Numbers generator Value.


You will learn quickly that the Numbers Value will be different things for different (other) objects.


You're talking about rotating a square by 90 degrees. To turn a Shape 90 degrees with a Numbers Generator, you need to animate (keyframe/behavior) the Numbers Value from 0 to 25... WHAT? 25 is 90 degrees for rotations because it is 25% of 360º.


So be prepared, what you expect is not always what is going on "behind the scenes".


What I mean by this is that Motion's user interface displays parameter values in a way we can relate to, but underneath, at the "programming level", these values can be saved/represented in different ways. (I don't have a list... don't ask! I just try to recognize what's going on and adapting...)


When controlling other parameters with a Number Value, don't be surprised if it seems Numbers is "off" by a factor of 10 (or 100). Motion is using this "factor difference" to maintain more decimal places for accuracy. Adjustments to the Link Behavior Scale parameter may be necessary from time to time. Expect it. (Embrace it!)


Numbers (generator) can be used to discover SO MUCH about Motion. Another example would be the Oscillate behavior > Phase parameter. In the UI, it is 0, 1, 2, 3, 4, etc... but what it really is - is Radians, so if you animate an Oscillate with No Speed and simply the Phase parameter, if you go from 0 to 3.141592653589793, you will oscillate exactly ONE cycle.


You will also find that if you type in PI to 15 decimal places, you will get that accuracy (this is for any Motion number parameter value), however, the UI will only display 4 decimal places. If you select the value and type enter - basically re-entering it - you will have to manually re-enter the entire value again because Motion WILL truncate the value to the 4 decimal places displayed.


Have fun exploring! :D

Number generator rotation on Z-axis in Motion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.