Share

PyTypeNode Attributes

Use the following commands to set or get attributes for a Type node, Type Timeline FX or a Type Layer.

Type Node (PyTypeNode)

Command Type Description
<PyTypeNode>.pos_x integer The x position of a node in the Batch schematic.

An integer number must be passed when the attribute is set:
  • Min: -2147483647
  • Max: 2147483647
<PyTypeNode>.pos_x integer The y position of a node in the Batch schematic.

An integer number must be passed when the attribute is set:
  • Min: -2147483647
  • Max: 2147483647
<PyTypeNode>.name string Used to set or get name of the Batch node.

A string must be passed when the attribute is set.
<PyTypeNode>.note string Used to set or get the content of the note associated to the Batch node.

A string must be passed when the attribute is set.
<PyTypeNode>.note_collapsed bool Used to set or get the collapsed status of a note in the Batch schematic.

One of the following must be passed when the attribute is set:
  • True
  • False
<PyTypeNode>.selected bool Used to select or deselect a node in the Batch schematic.

One of the following must be passed when the attribute is set:
  • True
  • False
<PyTypeNode>.type string Return the type of the node.
<PyTypeNode>.bypass bool Used to set or get the bypass status of a node in the Batch schematic.

One of the following must be passed when the attribute is set:
  • True
  • False
<PyTypeNode>.schematic_colour tuple Used to set or get the schematic colour of a node in the Batch schematic.

A tuple with three values (Red, Green, and Blue) must be passed to set the colour.
<PyTypeNode>.schematic_colour_label string Used to set of get the schematic colour of a node in the Batch schematic using the lable of a colour coding preset.

A string must be passed when the attribute is set.



Common (PyTypeNode and PyTypeTimelineFX)

Command Type Description
<PyTypeNode>.selected_layers list Used to access the attributes, functions, and read-only properties of the selected layers.
<PyTypeNode>.current_layer PyTypeLayer Used to access the attributes, functions, and read-only properties of the current layer.
<PyTypeNode>.swaa string Used to get or set the amount of software anti-aliasing samples.

One of the following must be passed as the argument when the attribute is set:
  • SWAA 1x
  • SWAA 4x
  • SWAA 9x
  • SWAA 16x
  • SWAA 25x
  • SWAA 36x
  • SWAA 49x
  • SWAA 64x
<PyTypeNode>.use_hwaa bool Used to get or set the status of Use HWAA

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeNode>.motion_blur bool Used to get or set the status of Motion Blur

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeNode>.motion_blur_samples integer Used to get or set the amount of motion blur samples. An integer number between 2 and 100 must be passed as an argument when the attribute is set.
<PyTypeNode>.motion_blur_phase float Used to get or set the motion blur phase. A float number between -1.0 and 1.0 must be passed as an argument when the attribute is set.
<PyTypeNode>.motion_blur_shutter float Used to get or set the motion blur shutter. A float number between 0.10 and 50.0 must be passed as an argument when the attribute is set.
<PyTypeNode>.resolution_mode string Used to get or set the resolution mode.

One of the following must be passed as a string to set the mode:
  • Resolution List
  • Adaptive
  • Scaling Presets
<PyTypeNode>.scaling_presets_value float Used to get or set the Scaling Presets value. A float must be passed as an argument to set the value. The value represents the scaling percentage.
<PyTypeNode>.adaptive_mode string Used to get or set the Adaptive mode.

One of the following must be passed as a string to set the mode:
  • Width based on Ratio
  • Height based on Ratio



Type Layer (PyTypeLayer)

A Type layer as its own set of attributes.

Command Type Description
<PyTypeLayer>.hidden bool Used to get or set the visibility status of a Layer.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.text string Used to get or set the characters of a Layer. A string must be passed as an argument to change the characters.
<PyTypeLayer>.font tuple Used to get or set the characters font. A tuple with a maximum of three values between Font Family, Font Style, and Project Font Index is returned when getting the current font.

When the attribute is set, one of the following values can be used:
  • Font Family: A string representing the name of the Font Family
  • Font Style: A string representing the name of the Font Style
  • Font Path: A string representing the path to a font
  • Project Font Index: An integer number representing the index of the Font in the Project Fonts table.


One of the following combinations must used when the attribute is set:
  • (Font Family, Font Style)
  • (Font Family, Font Style, Project Font Index)
  • (Font Path, Font Style)
  • Font Path
  • Project Font Index
<PyTypeLayer>.font_size float Used to get or set the characters Size. A float number between 0.0 and 2000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.fill bool Used to get or set the status of the Fill Active button.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.fill_colour tuple Used to get or set the Fill Colour of the characters. A tuple with three values (Red, Green, and Blue) must be passed to set the colour.
<PyTypeLayer>.fill_opacity float Used to get or set the characters Opacity. A float number between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.italic_angle float Used to get or set the characters Italic angle. A float number between -60.0 and 60.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.kerning float Used to get or set the characters Kerning. A float number between -100000.0 and 10000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.tracking float Used to get or set the characters Tracking. A float number between -100000.0 and 10000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.underline bool Used to get or set the status of the Underline Active button.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.underline_width float Used to get or set the Underline Width. A float number between -9999.0 and 9999.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.underline_offset_y float Used to get or set the Underline Y Offset. A float number between -9999.0 and 9999.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.outline bool Used to get or set the status of the Outline Active button.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.outline_colour tuple Used to get or set the Outline Colour of the characters. A tuple with three values (Red, Green, and Blue) must be passed to set the colour.
<PyTypeLayer>.outline_width float Used to get or set the Outline Width. A float number between 1.0 and 500.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.outline_join string Used to get or set the Outline Join mode.

One of the following must be passed as the argument when the attribute is set:
  • Round Join
  • Square Join
  • Bevel Join
  • Miter Join
<PyTypeLayer>.outline_miter_limit float Used to get or set the Outline Miter Limit. A float number between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.case string Used to get or set the characters Case.

One of the following must be passed as the argument when the attribute is set:
  • Original
  • Uppercase
  • Lowercase
  • Title Caps
  • Small Caps
<PyTypeLayer>.superscript bool Used to get or set the status of the Superscript option.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.subscript bool Used to get or set the status of the Subscript option.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.strikeout bool Used to get or set the status of the Strikeout option.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.mask_mode string Used to get or set the Mask mode.

One of the following must be passed as the argument when the attribute is set:
  • Disabled
  • Top
  • Bottom
  • Left
  • Right
<PyTypeLayer>.mask_position float Used to get or set the Mask Position. A float number between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.background bool Used to get or set the status of the Background Active button.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.background_colour tuple Used to get or set the Background Colour. A tuple with three values (Red, Green, and Blue) must be passed to set the colour.
<PyTypeLayer>.background_opacity float Used to get or set the Background Opacity. A float number between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.background_radius float Used to get or set the Background Radius. A float number between 0.0 and 1.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.background_offset float Used to get or set the Background Offset. Float numbers for the X and Y values must be passed as arguments when the attribute is set.
<PyTypeLayer>.background_scale tuple Used to get or set the Background Scale. A tuple with two float values (X, Y) must be passed as an argument when the attribute is set.
<PyTypeLayer>.background_outline bool Used to get or set the status of the Background Outline.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.background_outline_colour tuple Used to get or set the Background Outline Colour. A tuple with three values (Red, Green, and Blue) must be passed to set the colour.
<PyTypeLayer>.background_outline_width float Used to get or set the Background Outline Width. A float number between 1.0 and 500.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.background_outline_join string Used to get or set the Background Outline Join mode.

One of the following must be passed as the argument when the attribute is set:
  • Round Join
  • Square Join
  • Bevel Join
  • Miter Join
<PyTypeLayer>.background_outline_miter_limit float Used to get or set the Background Outline Miter Limit. A float number between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shadow bool Used to get or set the status of the Shadow Active button.

One of the following must be passed as the argument when the attribute is set:
  • True
  • False
<PyTypeLayer>.shadow_colour tuple Used to get or set the Shadow Colour of the characters. A tuple with three values (Red, Green, and Blue) must be passed to set the colour.
<PyTypeLayer>.shadow_opacity float Used to get or set the Shadow Opacity. A float number between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shadow_blur tuple Used to get or set the Shadow Blur. A tuple with two float values (X, Y) between 0.0 and 100.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shadow_position tuple Used to get or set the Shadow Position. A tuple with two float values (X, Y) between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shadow_scale tuple Used to get or set the Shadow Scale. A tuple with two float values (X, Y) between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shadow_shear tuple Used to get or set the Shadow Shear. A tuple with two float values (X, Y) between -60.0 and 60.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shadow_rotation float Used to get or set the Shadow Rotation. A float number between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.position tuple Used to get or set the Layer Position. A tuple with two float values (X, Y) between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.scale tuple Used to get or set the Layer Scale. A tuple with two float values (X, Y) between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.shear tuple Used to get or set the Layer Shear. A tuple with two float values (X, Y) between -60.0 and 60.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.rotation float Used to get or set the Layer Rotation. A float number between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.centre tuple Used to get or set the Layer Centre. A tuple with two float values (X, Y) between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.axis_alignment string Used to get or set the Layer Axis Alignment.

One of the following must be passed as the argument when the attribute is set:
  • Bottom / Right
  • Bottom
  • Bottom / Left
  • Right
  • Centre
  • Left
  • Top / Right
  • Top
  • Top / Left
<PyTypeLayer>.width float Used to get the Layer Width.
<PyTypeLayer>.justification string Used to get or set the Layer Justification.

One of the following must be passed as the argument when the attribute is set:
  • Left
  • Centre
  • Right
  • Justified
<PyTypeLayer>.leading float Used to get or set the Layer Leading. A float number between -1000000.0 and 1000000.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.separation float Used to get or set the Layer Separation. A float number between -999.0 and 999.0 must be passed as an argument when the attribute is set.
<PyTypeLayer>.indent integer Used to get or set the Layer Indent. An integer number between 0 and 1000.0 must be passed as an argument when the attribute is set.

Was this information helpful?