Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1399

Help: Rainmeter Skins • Re: TransformationMatrix from Bottom Left instead of Top Left

$
0
0
I have a Rotator in a skin I'm trying to make, the only way to make such a thing scale with size is by using TransformationMatrix. Problem is when resizing it creates deadspace under the skin because it rescales from the top left of the skin. If it rescaled from the Bottom Left, that should eliminate this dead space under the skin. Does anyone know how to force TransformationMatrix to go off of the bottom left instead of the top left?
For first note that the [Variables] section name is mistakenly set to [Variable]. Add an s.
Secondly if you resize the meter, you anyway get a deadspace. Would you like to get it above the meter?
If so, you have to apply a proper ty value on the TransformationMatrix option. You've set both tx and ty values to 0 (the last two values of the TransformationMatrix option), but this are the:
values by which the x and y (horizontal and vertical respectively) coordinates will be moved.
So, to remove the deadspace under the meter (not the skin), try replacing the last value on the TransformationMatrix, by the following one: (#RotorAssembly#-#Scaler#*#RotorAssembly#) (or its more compact form: (#RotorAssembly#*(1-#Scaler#))). By this the option looks this way: TransformationMatrix=#Scaler#;0;0;#Scaler#;0;(#RotorAssembly#-#Scaler#*#RotorAssembly#) (or TransformationMatrix=#Scaler#;0;0;#Scaler#;0;(#RotorAssembly#*(1-#Scaler#))).
Note that if needed, the resize can be done "centered", so in a way to get unmoved the center of the image. If needed and you don't know how to do, please let me know.
And one more: everything related to TransfotrmationMatrix is described into the TransformationMatrx Guide. This is an excelent description, but it's little bit long, so if you want, try studying it little by little.

Statistics: Posted by balala — 6 minutes ago



Viewing all articles
Browse latest Browse all 1399

Trending Articles