Skip to main content

Scale_Image_X%

Overview​

Use this rule to scale the inserted image to a specific percentage. Apply it after a placeholder loads to standardize image sizing regardless of the original image dimensions.

How It Works​

Scales both width and height by the same factor (uniform scaling). Converts gParam1 from a percentage value to a scale factor, for example 75.0 becomes 0.75.

If gParam1 is not a valid number, the scale defaults to 100%.

The reference point in gParam2 controls which anchor stays fixed during scaling. It accepts any value from comet.kReferencePoints.

Reference​

#NameTypeDefaultDescription
1Scale %Float100.0Target scale as a percentage. Example: 75.0 for 75%
2Reference PointDropdownTop LeftAnchor point that stays fixed during scaling
3(unused)
4(unused)