Render Setup Relation | This Node provides information about the relation between a screen, composition, canvas, output or machine inside a Render Setup |
The purpose of this Node is mainly to get access to position, size, rotation and aspect parameters of the relevant elements inside a Render Setup or Previs Scene, to be able to make use of them inside the scene logic. This information can be used to re-position and/or re-layout graphics for different aspect ratios or find the position of an element.
All position values relate to the left top corner of the Target element and always reference the center position of the Source element.
If you are using the Render Setup Relation Node together with a Previs Scene and you have Moving Screens in there, enable the corresponding property Is Moving on the Node to make sure the outputs are updating every frame.
Updating the ouput properties every frame is not for free and can cause performance impacts.
The Node provides different Modes that define a combination of a given Source and Target from which you want to get the relation.
Mode (Source to Target | Mode Description |
---|---|
SourceComposition TargetCanvas | get information of a Composition and its relative position, size and rotation inside a Canvas |
SourceComposition TargetScreen | get information of a Composition and its relative position, size and rotation to a Screen |
SourceComposition TargetOutput | get information of an Composition and its relative position, size and rotation inside an Output |
SourceCanvas TargetScreen | get information of a Canvas and its relative position, size and rotation inside a Screen |
SourceCanvas TargetOutput | get information of an Canvas and its relative position, size and rotation inside a Output |
SourceScreen TargetOutput | get information of an Screen and its relative position, size and rotation inside a Output |
Mode (Target to Source | Mode Description |
TargetComposition SourceCanvas | get information of a Canvas and its relative position, size and rotation to a Composition |
TargetComposition SourceScreen | get information of a Screen and its relative position, size and rotation inside a Composition |
TargetComposition SourceOutput | get information of a Output and its relative position, size and rotation inside a Composition |
TargetComposition SourceMachine | get information of a Machine and its relative position, size and rotation inside a Composition |
TargetCanvas SourceOutput | get information of a Output and its relative position, size and rotation inside a Canvas |
TargetCanvas SourceScreen | get information of a Screen and its relative position, size and rotation inside a Canvas |
TargetCanvas SourceMachine | get information of a Machine and its relative position, size and rotation inside a Canvas |
TargetScreen SourceOutput | get information of a Output and its relative position, size and rotation inside a Screen |
TargetScreen SourceMachine | get information of a Machine and its relative position, size and rotation inside a Screen |
With Clear Rotation enabled you will get the size and position values of the bounding box around your Source element
Property | Description |
---|---|
TargetWidth | The Width of the Target element in pixel |
TargetHeight | The Height of the Target element in pixel |
!Source | Target element type. |
!Target | Soure element type. |
MultipleSolutions | Indicates that more than one valid solutions are found. The first one found is outputted currently. Imagine you have multiple instances of a Composition inside your Render Setup and want to get Screen information in Relation to the Composition. |
!Valid | Defines if there is a valid set of parameters found. Machines for example depend on the Machine ID and therefor are not valid all the time. |
!Width | The Width of the Source element in Relation to the Target element. In more complex setups the size can differ based on the Target Selection. |
!Height | The Height of the Source element in Relation to the Target element. In more complex setups the size can differ based on the Target Selection. |
!Rotation | The Rotation of the Source element. |
!CenterX | The Position along the X axis, from the top left of the Target element to the center of the Source element. Since the element can be rotated defining the position to the center point makes life a lot easier. |
!CenterY | The Position along the Y axis, from the top left of the Target element to the center of the Source element. Since the element can be rotated defining the position to the center point makes life a lot easier. |
!Aspect | The Aspect Ratio of the Source element |
A typical task that can be fulfilled with this Node is to find the position of a Screen inside a certain Composition to automatically render elements of a Scene to that screen.
So let's try to find out the exact position of Screen_4 inside Composition_1. Keep in mind, that all values provided by the Render Setup Relation Node are relative and that the origin is always TopLeft