[14 Feb 2010] (Feature Request) or How can I determine the dimension of scalled layers?

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
nexus
Posts: 150
Joined: Sun Mar 07, 2010 11:54 am

[14 Feb 2010] (Feature Request) or How can I determine the dimension of scalled layers?

Post by nexus »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 14 Feb 2010 15:01:42 +0100

GetAttribute() gives you always the width and height of the original size. How can i get the width and height of a scaled layer?

With only one layer, you can always estimate the size currently shown. But if you want to scale a group of layers with correct aspect ratio, you have to know the size of each different layer and its individual size within the layer group.

Therefore, it's important to know the size of each layer shown on the display, not the orginal size.

Is there a way to get that size? If not, this is just another feature request! :-)

Thanks, Tom
User avatar
airsoftsoftwair
Posts: 5915
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[16 Feb 2010] Re: (Feature Request) or How can I determine the dimension of scalled layers?

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 16 Feb 2010 22:54:37 +0100
GetAttribute() gives you always the width and height of the original size. How can i get the width and height of a scaled layer?
Not possible currently...
With only one layer, you can always estimate the size currently shown. But if you want to scale a group of layers with correct aspect ratio, you have to know the size of each different layer and its individual size within the layer group.

Therefore, it's important to know the size of each layer shown on the display, not the orginal size.

Is there a way to get that size? If not, this is just another feature request! :-)
Ok:

Code: Select all

- New: #ATTRRAWXPOS, #ATTRRAWYPOS, #ATTRRAWWIDTH, #ATTRRAWHEIGHT can be used to query the
  real position and dimension of a layer; note that these functions operate on a pretty
  lowlevel inside the layers system and should only be used if you know what you are doing
  (requested by Tom C.)
And by the way... the following function is already present in Hollywood 4.6:

Code: Select all

- New: SetLayerZPos() allows you to change the z position of a layer (requested by Tom C.)
Locked