QuartzComposerView allows for the rendering of Quartz Composer Compositions within SC on macOS. Quartz Composer is a visual programming environment for processing and rendering graphical data, which is distributed free of charge as part of Apple's XCode Development Tools. QC is highly optimised to work with the macOS graphics system, and in general should be more efficient than Pen. For more information on QC see: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/QuartzComposerUserGuide/qc_intro/qc_intro.html and http://en.wikipedia.org/wiki/Quartz_Composer
You can access input and output ports using the methods setInputValue, getInputValue and getOutputValue, or (do to a slight of hand in the implementation, using the port keys as getters and setters directly. The following two lines of code are thus equivalent:
Get or set the path of the currently composition as a String.
Start rendering the loaded composition.
Stop rendering the loaded composition.
Set the value of the input port specified by key.
key | |
value |
The type of value must correspond to the type of the port, but Floats, Integers, and Booleans are converted if needed. (true = 1, false = 0) |
Get the current value of an input port. The type of object returned will correspond to the port's type.
key |
Get the current value of an output port. The type of object returned will correspond to the port's type.
key |
Set the maximum frames per second at which the composition will render.
rate |
A Float or Integer specifying the desired max frame rate. A value of 0 indicates no limit. |
Open the currently loaded composition in Quartz Composer. You will need to reload the composition into the view before any saved changes take effect.