Lock left edge. Set anchor. Scale x with left edge anchored. Possible?

I'm brand new to Motion but familiar with motion keyframe animation. I have three simple goals:


1) First I want to place an SVG object (a simple rectangle) on the canvas—but Motion is resistant to adding the SVG to the project. So I've resorted to using a Motion rectangle primitive, but would like to know if SVGs are supported.


2) Next I want to anchor the left side and x scale the object horizontally, to create the illustion that only the right edge moves.


I’m lost. I figured I’d need to set the anchor point (the origin point?) to the lower left edge of the rectangle, or any place on the Left edge. Then simply scale. Currently I have the anchor point set to the rectangle's lower left, but caling has two affects: it changes the width of the object, but it also moves it horizontally.


What am I missing? 





Posted on Mar 25, 2023 08:22 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 27, 2023 03:20 AM

Hi John,


What you describe is happening in Motion, would be the result of setting an anchor point to the edge and then animating the width parameter. I


The result you expected should be the exactly that if we get if we set the anchor point to the edge and then animate the scale parameter.



For example here is a shape that is 2000 width, the x anchor is to set -1000, putting it at the edge, and the x scale parameter is keyframed from 0 to 100. This is the result we should get.



As Fox has detailed, if you do need to be working with width, then the align to behavior is ideal. It may sound like overkill, but the align to is a versatile solution to many things. Otherwise, we can use a link between the anchor point and the width with the link settings pining the anchor point to the edge preventing any displacement. It is often a decision between width and scale with animation if it is for a template for Final Cut, because one parameter needs to animate and the other needs to be free for publishing - in some cases not all.


Now on the topic of getting svg assets into Motion. If you work in AI or in Affinity, you do have a couple of options that can import full svg compositions into motion, with all the layers in order and with the shape all editable.


For AI, there are various scripts you can run that will export a file that you can then add to your Motion shapes library via finder. It has it's limits and depending on the AI composition, it may take some specific organisation steps to make a good export. I've been using a script called motionize for many years and many of the graphics designers I collaborate with have become familiar with it too.


For Affinity - there is Pixelmator Pro. Pixelmator pro can actually export a Motion project. This is a different process than using a script to export shape files, but it has been very successful with Affinity users since they launched the feature. I use this too in workflows when the designers don't work in Adobe. Generally, you export your Affinity project as an svg - which Pixelmator Pro can then open and export as a Motion project.


I personally prefer the script process with AI.



Similar questions

9 replies
Question marked as Top-ranking reply

Mar 27, 2023 03:20 AM in response to John Blasquez

Hi John,


What you describe is happening in Motion, would be the result of setting an anchor point to the edge and then animating the width parameter. I


The result you expected should be the exactly that if we get if we set the anchor point to the edge and then animate the scale parameter.



For example here is a shape that is 2000 width, the x anchor is to set -1000, putting it at the edge, and the x scale parameter is keyframed from 0 to 100. This is the result we should get.



As Fox has detailed, if you do need to be working with width, then the align to behavior is ideal. It may sound like overkill, but the align to is a versatile solution to many things. Otherwise, we can use a link between the anchor point and the width with the link settings pining the anchor point to the edge preventing any displacement. It is often a decision between width and scale with animation if it is for a template for Final Cut, because one parameter needs to animate and the other needs to be free for publishing - in some cases not all.


Now on the topic of getting svg assets into Motion. If you work in AI or in Affinity, you do have a couple of options that can import full svg compositions into motion, with all the layers in order and with the shape all editable.


For AI, there are various scripts you can run that will export a file that you can then add to your Motion shapes library via finder. It has it's limits and depending on the AI composition, it may take some specific organisation steps to make a good export. I've been using a script called motionize for many years and many of the graphics designers I collaborate with have become familiar with it too.


For Affinity - there is Pixelmator Pro. Pixelmator pro can actually export a Motion project. This is a different process than using a script to export shape files, but it has been very successful with Affinity users since they launched the feature. I use this too in workflows when the designers don't work in Adobe. Generally, you export your Affinity project as an svg - which Pixelmator Pro can then open and export as a Motion project.


I personally prefer the script process with AI.



Mar 25, 2023 09:32 PM in response to John Blasquez

You're not really "missing" anything. Motion is ... weird and wonderful ... but there's a lot in it that just isn't immediately obvious. A lot of people tend to be distracted by "what *should* make sense".


I also have to say, that what you see in the interface is not always what is going on "under the surface"!


SVG support in Motion is NOT native... but SVGs can be used in FxPlug plugins made for Motion... (they'll cost extra.)


Shape support in Motion is Vector, typically Bézier, optionally B-Spline. Rectangles are now natively set up by Width and Height, Circles by Radii. Otherwise by Control Points. [Rectangles and Circles can be converted to Points if you desire — I'm sure you've seen the button.]


You may think you would need some way to set the Anchor Point based on other factors besides just "eyeballing" the position and as you have noticed, Lower Left and the Anchor point are not related with the Width changes.


Motion does Math*, but luckily you don't need it! [*to a certain extent - Addition, Subtraction, Multiplication, but not Divsion by variable divisors... you can set up "fixed" divisions as fractional decimals.]


Draw another rectangle (or shape or line). To your *original* rectangle, add Behaviors > Basic Motion > Align To. Drag the new shape into the Object well and Align "original rectangle" Left, To "new Rectangle" Center [any option will be fine - center is convenient.]


Adjust the Width of your original Rectangle... You can now position that Rectangle based on the Position of the newer shape.


Now, simply TURN OFF the visibility of the shape (uncheck it in the Layers List). We refer to this kind of "trick" as a "null object".



HTH

Mar 26, 2023 02:51 AM in response to John Blasquez

Regarding svg: if you happen to have Pixelmator Pro, you may be able to open the svg in Pixelmator Pro and export it. Not sure if you can keep all the vector elements in the file, though.

However, a great feature of Pixelmator Pro is its ability to export directly as a Motion Project, with all the layers fully editable. This alone is worth the price of admission in my opinion. Many things are easier to draw in Pixelmator and then use in Motion, even if you could do it all in Motion.

Mar 26, 2023 12:45 PM in response to fox_m

Thanks fox_m


I'm glad you understood my goal. Your animation proves that!


fox_m wrote the following instructions >


Draw another rectangle (or shape or line). To your *original* rectangle, add Behaviors > Basic Motion > Align To. Drag the new shape into the Object well and Align "original rectangle" Left, To "new Rectangle" Center [any option will be fine - center is convenient.]


Adjust the Width of your original Rectangle... You can now position that Rectangle based on the Position of the newer shape.


Now, simply TURN OFF the visibility of the shape (uncheck it in the Layers List). We refer to this kind of "trick" as a "null object".


Scaling is such a basic transformation, so I'm surprised that this level of complexity is needed just to scale without affecting the position of the left edge of a rectangle. 'Twas utterly simple to tween in Flash, or govern via ActionScript.


I'll try to figure out your instructions, but I'm hoping for a more direct solution.


Are there more possibilities available by importing or pasting in from Illustrator or Affinity designer. (I'm so surprised that SVG is not supported!)


Thanks!

Mar 26, 2023 01:21 PM in response to Luis Sequeira1

Hi Luis,


Thanks for your reply.


I can use rectangles or heavily stroked lines created in Motion itself. I just thought SVG would be the best way to import vectors.


Given my skills with vector graphics (Illustrator and Affinity Designer ) and my extensive self-created library of graphics and symbols, I'd like to leverage those assets into Motion. I haven't yet studied up on available approaches to that.


I'm only about 4 hours into Motion, and will certainly need to learn best practices and limitations.

Mar 26, 2023 04:22 PM in response to GFXZen

Thanks. It's definitely time to read up more, but I found Apple's documentation wanting.


Usually I can penetrate these areas without too much reference work.


I did look at some video tutorials. Unfortunately they tend to address the stuff that easy to do, like scale in x, y or z from the anchor point. Or worse, just to illustrate a single point the presenter builds an entire rig-animated robot just to show how to rotate an object around it's anchor point, like a swinging arm.



Mar 27, 2023 03:49 PM in response to rowie302

Thanks this brought us around to my initial inquiry, on how to set the anchor point to the left edge. I didn't realize there was an Anchor x property. The rest fell into place. Even without keyframes I could see that scaling x in the Inspector produced exactly the behavior I was after.


Can't tell if I'm just copping out of Align To approach, but this works and is quite simple.


So, I'm getting the result I was after. Much appreciation to all.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Lock left edge. Set anchor. Scale x with left edge anchored. Possible?

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