Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Resizing vector graphics are distorting dimensions

Participant ,
Jun 07, 2024 Jun 07, 2024

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?Capture.PNG

 

 

 

 

354
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 07, 2024 Jun 07, 2024

for visuals, in animate .05 = 0

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 07, 2024 Jun 07, 2024

what does that mean? That to animate it's not distinguishing between .00 and .05 it's really only going to .0 measurement? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 07, 2024 Jun 07, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2024 Jun 08, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2024 Jun 08, 2024

i've noticed it for many years., across many versions.  but i've never seen a perceptible issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2024 Jun 08, 2024

This issue is specially noticeable when working with 3D transformations.

 

It's basically impossible to transform something precisely.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2024 Jun 08, 2024

that would explain why i haven't noticed anything visually. i haven't used 3d transforms since cs6.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 08, 2024 Jun 08, 2024

Hi, thanks for this idea. Do you have an example of what that code would look like to scale the graphics?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2024 Jun 08, 2024
LATEST

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.
image.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines