Adding custom nodes to the mask shape list – Apple Shake 4 User Manual
Page 529
Chapter 19
Using Masks
529
To attach an image in the node tree to a side input mask:
m
Drag a noodle from an image’s output knot, and attach it to a node’s side input mask.
To create a side input mask:
1
Load the parameters of the node you want to mask into the Parameters tab.
2
Do one of the following:
•
Click Create to create a new instance of the type of node listed in the pop-up menu
to the right.
•
Choose a different type of node from the Create pop-up menu to the right.
A new image node is created, automatically connected to the side input mask.
Connected side input mask
Adding Custom Nodes to the Mask Shape List
To add your own nodes to the Mask shape list, add a line similar to the following in a
ui.h file:
nuiAddMaskCommand(“QuickShape”,“QuickShape();”);
nuiAddMaskCommand(“QuickPaint”,“QuickPaint(0);”);
For more information on ui.h files, see Chapter 14, “
Drag noodle to side input..