Rendering Destination Dimensions (Built-in Patch) in Tool, Utility

This patch returns the current rendering destination’s dimensions, in Quartz Composer coordinates system units or pixels and with its aspect ratio.

The Quartz Composer coordinates system is defined so that (0,0,0) is at the center, the x axis is horizontal and the y axis is vertical. The z axis is orthogonal to the x and y axes, so that it comes out towards the viewer. The width of the rendering destination is always 2 units wide and the left and right borders have coordinates -1.0 and +1.0, respectively. Since the coordinates system is homogenous, the rendering destination’s height depends on the aspect ratio: for a 4/3 aspect ratio, the height would be 1.5 while the bottom and top borders would have coordinates -0.75 and +0.75 respectively.

Input Attributes
None
Output Attributes
  • Width - The width of the rendering destination in units.
  • Height - The height of the rendering destination in units.
  • Pixels Wide - The width of the rendering destination in pixels.
  • Pixels High - The height of the rendering destination in pixels.
  • Aspect Ratio - The rendering destination aspect ratio.
  • Resolution - The rendering destination resolution in pixels per unit.
0 videos
0 comments
Bf9a01b6ccc05dea53134f59ff712fee