Copy link to clipboard
Copied
I'm having trouble resizing graphics. I'm using vector graphics. All snapping is turned off. I am looking for precision scaling. Even when input manually, not using any transform tools or scaling, the numbers jump randomly.
When I lock width and height and update one measurement, I end up with different results for multiple objects on the stage that started with the same measurements. For instance:
I have 7 sharps (hashtag symbol), each one starts the same: 16.05w x 54h px
I size them all down, some end up: 7.45w x 25h px
Others end up: 7.4w x 25h px
I am attaching a screenshot showing them before resizing and resized on the right. I can line them all up in the same position on the stage or have them staggered like this, same results. Is there a snapping, preferences, or advanced editing setting that I can adjust?
Also, If I manually change the width to match, selecting to "unlock width and height" the number won't stay input. So I can change the ones that end up 7.4 width to 7.45 width and they just revert back. Any suggestions?
Copy link to clipboard
Copied
for visuals, in animate .05 = 0
Copy link to clipboard
Copied
what does that mean? That to animate it's not distinguishing between .00 and .05 it's really only going to .0 measurement?
Copy link to clipboard
Copied
i mean it's typical to have something sized at 123.95 trying to change that to 124 fails. i suspect it's because it's a digital computer and works on base-2, not 10.
Copy link to clipboard
Copied
Hi.
This is actually a bug introduced in Animate in recent years.
I think a workaround now would be to set the scale as close as you can in the IDE and then run some code (AS3 or JavaScript, depending on the document type you're working on) to precisely scale your graphics.
Regards,
JC
Copy link to clipboard
Copied
i've noticed it for many years., across many versions. but i've never seen a perceptible issue.
Copy link to clipboard
Copied
This issue is specially noticeable when working with 3D transformations.
It's basically impossible to transform something precisely.
Copy link to clipboard
Copied
that would explain why i haven't noticed anything visually. i haven't used 3d transforms since cs6.
Copy link to clipboard
Copied
Hi, thanks for this idea. Do you have an example of what that code would look like to scale the graphics?
Copy link to clipboard
Copied
If you are working in an AS3 document, in the frame where these sharp instances are located, open the Actions panel by pressing F9 and then write down something like:
yourSharpInstanceName.width = 16.05;
yourSharpInstanceName.height = 54;
Please note that yourSharpInstanceName is just a generic name. You can give to your instance any valid name.
Just make sure that your instances are symbols and that they are named correctly in the Properties panel.