Eyeon:Script/Reference/Applications/Fuse/Classes/ImageChannel
From VFXPedia
Parent Class: none
ImageChannel.
Contents |
Methods:
ImageChannel | Construct a new ImageChannel object |
SetStyleFill | |
CopyToAlpha | |
ShapeFill | |
SimpleShapeFill | |
PutToImage |
Members:
Other:
Attributes |
Tips for ImageChannel (edit)
ImageChannel is a monochrome buffer that you can draw shapes on. It is connected to an actual Image object, you just need to call PutToImage(mode, channelstyle) to "bake" the buffer onto it. While doing so, you have the option to overwrite the image (mode = "CM_Copy") or merge the buffer to what's already there ("CM_Merge"). To put the ImageChannel onto the image, Fusion also needs to know what color you'd like to paint in. This is done with a ChannelStyle object which stores attributes like color and opacity but also fill gradient or softness.
This allows you to reuse an ImageChannel (a "drawing") multiple times. By changing the ChannelStyle each time you call PutToImage() you can create a semi-transparent red and a blurry green version, for example.
The color, gradient and softness options at the bottom of the shading tab of the Text+ tool basically expose the things you can do with a ChannelStyle. The ShapeTest Fuse demonstrates the usage of the ImageChannel object.
A Shape object is one or several vector-based polygons or a collection of lines and beziers. It can be transformed without quality loss since it only gets rendered by calling ImageChannel's FillShape() method. The Shape class provides methods to expand or shrink the shape or to create an outline of the polygon you have drawn. In fact, since shapes are always rendered by filling them, you need to create an outline version of the shape with a defined thickness and line style (e.g. dotted or dashed) and then fill this shape to get your outline. These features can be found in most mask tools as well as the Text+ tool.
There are a few examples that demonstrate the usage of the Shape objects: ShapeTest Fuse, Lines Fuse and the Flare Fuses.