How do I change the size of the red "re-sizing box"?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Hopper200456
Posts: 129
Joined: Tue Feb 05, 2013 11:35 pm
Location: Not sure; but is smells good here
Contact:

How do I change the size of the red "re-sizing box"?

Post by Hopper200456 »

Hey guys.
"Wow, asking for help twice in one day??"
Yeah... Well... Shut up.

Anyway lets get down to business.
So (I don't know what it's called so I'm just going to call it the re-size box) red "re-size box" isn't fitting to my image. My image is in a switch layer with 4 other images and all 4 of the images are the same size. But I still can't get it to be smaller... I'm horrible at explaining things, here's a picture:
Image
So, as you can see, on the left is how big I want it to be. (It's how big it is on the image layer) But on the right, (viewing from the switch layer)
it's so much bigger! (too big!) And yes, before you ask, all of the images in the switch layer are the same size of the left image.
And yes, this doesn't really matter as I can just ignore it because it still works the same way, it's still annoying.

Any help?
Image
"Greatness from small beginnings."
sbtamu
Posts: 1915
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Re: How do I change the size of the red "re-sizing box"?

Post by sbtamu »

Never scale images before putting them into a group/switch/bone layer. Only scale them after and then use the top layer to scale them all uniformly. OK after all that, the size of that "red box" makes no difference in how they will scale. Just drag a corner for scaling the whole layer or one of the tabs on the sides for squishing.
Sorry for bad animation

http://www.youtube.com/user/sbtamu
User avatar
Hopper200456
Posts: 129
Joined: Tue Feb 05, 2013 11:35 pm
Location: Not sure; but is smells good here
Contact:

Re: How do I change the size of the red "re-sizing box"?

Post by Hopper200456 »

sbtamu wrote:Never scale images before putting them into a group/switch/bone layer. Only scale them after and then use the top layer to scale them all uniformly. OK after all that, the size of that "red box" makes no difference in how they will scale. Just drag a corner for scaling the whole layer or one of the tabs on the sides for squishing.
I didn't resize the images, they're just really small. So I guess I have to resize them to fit the square? Bleh that sounds painful to get all the images spot on.

Also, I know that it doesn't matter. ("And yes, this doesn't really matter as I can just ignore it because it still works the same way, it's still annoying.")
Image
"Greatness from small beginnings."
User avatar
slowtiger
Posts: 6255
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: How do I change the size of the red "re-sizing box"?

Post by slowtiger »

Just a guess: are all of the images inside the switch layer of the same size and position? If not, this box could be the combined area of all of them.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15
Moho 14.1 Mac Mini M2 Pro OS 13.7.6
wizaerd
Posts: 415
Joined: Fri Aug 25, 2006 7:08 pm
Location: Gilbert, AZ

Re: How do I change the size of the red "re-sizing box"?

Post by wizaerd »

It's a bit ironic that over this past weekend, I too had asked about this, but specifically after resetting a layers origin point. It is bothersome, but doesn't change any of the functionality.

viewtopic.php?f=5&t=24262
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Re: How do I change the size of the red "re-sizing box"?

Post by heyvern »

The bounding box size of a group layer (like a switch layer) is not related to the contents of that (at least I have never seen this when using ASP).

A group layer bounding box is based on the height of the project dimensions. The bounding box starting size with no scaling or layers inside is "1 x 1". For a group layer or empty layer, this 1 x 1 is based on the total height of the document or project dimensions and is a square bounding box. The height is calculated from the project dimensions and the width matches.

So for example, I have a test file that is 872 x 486 in the project settings Dimensions. The bounding box of a group layer or an empty vector layer is going to be 50% the height of 872 and it will be square. On a vector layer anything added or drawn on the layer will immediately change the layer bounding box dimensions to include the shapes drawn (and also layer origin).

Putting layers INSIDE a group will NOT change the bounding box but changing the origin "may" have an effect depending on how far it is moved. Bounding box of a group layer is based on the project dimensions and the layer origin and not the contents.

Here's where it gets a bit confusing.
When you change the origin point of a group layer and it is within that 1 x 1 bounding box the bounding box doesn't change. If you move the origin OUTSIDE of that original 1 x 1 centered bounding box area the bounding box will increase width or height by the distance of the origin away from the 1 x 1 bounding area PLUS an additional amount more (not sure what that value is). It's hard to explain but just try it. Create an empty group folder, move the origin and you will see that the bounding box dimensions change in an "odd way".

If you do the same with an empty vector layer, the bounding box does not change size, it moves with the origin points.

So what is happening in you original post and image is that you moved the origin of the parent switch layer to center on the image inside that layer. This causes the bounding box of the parent switch layer to "get larger" instead of "moving" like you would think.

You wanted to move the origin so scaling the parent switch would scale on the correct origin of the layers inside.

--------------------------

So how does all of this relate to the original problem?
The issue is scaling the switch layer when the contents are so much smaller than the bounding box of the switch layer. You can't change the size of the bounding box without scaling it or moving the origin. That's a given.

So the trick would be to start with LARGER images inside the switch layer. The key here would be to make sure your image layers are "lined up" the same and possibly be much larger to start with.

This doesn't mean you have to edit them in an image program, just scale the layers in the switch to some larger value (the same for ALL of the switch layers). Adjust the origin points for each IMAGE layer (not the parent) so they all line up with the parent. Then, you can scale them down again when you scale the parent switch layer.

Phew! I will be the first to admit that the bounding box shape of group layers is.... er... uh... a bit odd or eccentric :). However it can help to start out with image layers all set to same origin and scale before importing into a switch or group. This would make it easier to scale that group layer.


(on a side note to Wizaerd, I have not seen this reset origin problem and I just can't replicate it. I did try)
User avatar
Hopper200456
Posts: 129
Joined: Tue Feb 05, 2013 11:35 pm
Location: Not sure; but is smells good here
Contact:

Re: How do I change the size of the red "re-sizing box"?

Post by Hopper200456 »

slowtiger wrote:Just a guess: are all of the images inside the switch layer of the same size and position? If not, this box could be the combined area of all of them.
You guessed correctly.
heyvern wrote:So how does all of this relate to the original problem?
The issue is scaling the switch layer when the contents are so much smaller than the bounding box of the switch layer. You can't change the size of the bounding box without scaling it or moving the origin. That's a given.

So the trick would be to start with LARGER images inside the switch layer. The key here would be to make sure your image layers are "lined up" the same and possibly be much larger to start with.

This doesn't mean you have to edit them in an image program, just scale the layers in the switch to some larger value (the same for ALL of the switch layers). Adjust the origin points for each IMAGE layer (not the parent) so they all line up with the parent. Then, you can scale them down again when you scale the parent switch layer.

Phew! I will be the first to admit that the bounding box shape of group layers is.... er... uh... a bit odd or eccentric . However it can help to start out with image layers all set to same origin and scale before importing into a switch or group. This would make it easier to scale that group layer.
Ah, I figured I could do that, but I think I'll just leave it since I've already used the switch layer and it'd mess anything up if I where to touch it. But thanks! Now I know what to do in the future.
Image
"Greatness from small beginnings."
Post Reply