14.49 Set attribute

This action event can be used to change all kinds of object attributes. You have to select the object and the attribute you want to change using the widgets in the dialog. You also have to provide the desired new value for the object attribute. This value can also be passed as a variable name instead of a numeric constant. It is even possible to enter complete expressions like "x+1" or function calls for maximum flexibility here.

Many of the attributes that this action event supports can already be set by other action events like Scale object or Rotate object but the advantage of the "Set attribute" action event is that the value can also be a variable or an expression which makes it more flexible because not all action events support this, e.g. Change object color doesn't support specifying the color from a variable source.

Note that to allow Designer to distinguish between variable and string sources, you need to enclose strings in quotes when using this action event, e.g. when setting the text of an object to a new value, you must enclose this value in quotes.

Here is an overview of the different attributes supported by this function and the acceptable ranges:

Visibility
Either True (1) or False (0).

X/Y position
The object position in pixels.

Scale x/y
Scaling factor as a fractional value. A value of 1.0 means no scaling, a value bigger than 1.0 means upscaling, a value less than 1.0 means downscaling.

Rotation angle
Rotation angle in degrees.

Transparency level
Transparency level ranging from 0 (no transparency) to 100 (full transparency).

Shadow
Either True (1) or False (0).

Shadow direction
One of Hollywood's #SHDWXXX constants. Consult your Hollywood manual.

Shadow size
Shadow size in pixels.

Shadow radius
Shadow radius in pixels.

Shadow color
Shadow color as an RGB color.

Border
Either True (1) or False (0).

Border size
Border size in pixels

Border color
Border color as an RGB color.

Tint level
Tint level ranging from 0 (no tinting) to 100 (full tinting).

Tint color
Tint color as an RGB color.

Color
Object color in RGB format.

Text
The text to be shown text objects as a string.

Font
Font to be used by text objects as a string.

Font size
Font size to be used by text objects.

Font engine
Font engine to be used by text objects. This is one of Hollywood's #FONTENGINE_XXX constants. Consult your Hollywood manual.

Frame
The frame to be shown by anim objects. Frames are counted from 1 for the first frame.

To get attributes, use the Get attribute action event.


Show TOC