Page 1 of 1

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

Posted: Sat Jun 13, 2020 5:32 pm
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

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

Posted: Sat Jun 13, 2020 5:32 pm
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.)