Paint Effects
syllabus | schedule | projects | class notes | resources | students | ARTC courses
[Intro Particles]     [Emitters/Fields]     [Collisions]     [Audition]     [Per Particle]     [Compositing 1]     [Compositing 2]     [Effects]     [Particle Extras]     [Geometry as Particles]     [Paint Effects]     [Sprite Image Sequences]     [Rigid Bodies]     [Playable DVD]
Paint Effects
Paint Effects Settings:

Rendering Menu set - Paint Effect menu settings
Get Brush and select something from the glass folder

Paint a stroke in the perspective view

Paint Effects Tool Options
Draw As Mesh - when drawing in the modeling window the paint effects only show up 
as curves.  Try it on and off.

To see an approximation of the paint effect - 
    turn on Draw As Mesh 
    Display menu - Rendering - Paint Effects Mesh Display
    Display menu - Rendering - Stroke Display Quality - try different values
Paint at Depth = ON - will go out from the surface
	OFF - will go along the surface of the object
Display Quality - Bigger # looks better (slower), smaller # looks worse but it faster
Surface Offset - distance it will be from the surface
Pressure settings are for Wacom Tablets

*	When you use a brush, Maya creates a new brush by copying the 
template brush settings
*	In the template brush you alter the settings that effect the next stroke you do.  
Changes do not effect the previous strokes you have done (you need to use the Attribute Editor)
*	You can save Brushes you make (called Preset Brushes)
*	A stroke is a curve attached to a hidden curve
*	You cannot alter the shape of a curve in the Paint Canvas mode but you can 
alter it in the Paint Scene or Modeling windows.
*	As you draw the strokes, it will display as curves unless you are in the Paint Effects 
window or set the program to display Meshes

Two kinds of strokes:  Simple and Growth (Tubes)
When you paint faster, growth points are farther apart.  Painting slower makes them closer together.

To increase brush size - hold down b and drag horizontally

Selecting strokes
To select strokes in the Paint Effect window (8), you need to Ctrl Click - 
     shift Ctrl Click to get more than one - it is better to use the Outliner

Deleting Strokes (Strokes have 2 parts)
	Ctrl Delete to delete them both OR use the Outliner
	Edit - Delete all by Type - Strokes

To alter the brush settings open the Template Brush Settings (this has to be altered 
before using the brush)

Getting Brush strokes from existing strokes
1.	Select stroke
2.	Paint Effects menu (PE) - Get Settings from Selected Stroke
3.	You can modify it before you use it by going into the Template Brush settings

Applying Brush Settings to the last Stroke you made
1.	Select a Preset or a brush from your visor
2.	PE - Apply Settings to Last Stroke

Apply Brush Settings to Selected Strokes
1.	Select a stroke in the 3d modeling window
2.	Click the brush in the visor or shelf you want to get the settings from 
3.	PE - Apply Settings to Selected Strokes

To Copy one Stroke and Apply the Settings to Another Stroke
1.	Select the stroke with the se3ttings you want
2.	PE - Get Settings from Selected Strokes
3.	Select the stroke to apply the settings to
4.	PE - Apply Settings to Selected Strokes

To have Lots of Strokes Share the Same Brush
1.	Select all strokes that should get the same brush settings
2.	Shift click the stroke with the settings you want to share LAST
3.	PE - Share One Brush
(if you change one brush, you change them all)

Remove Brush Sharing
1.	Select the stroke(s)
2.	PE - Remove Brush Sharing
(can change them independently now)

Attaching Brushes to Existing Curves
1.	Select Brush or PE - Get Settings from selected Strokes
2.	Select the new curve (not  Paint Effects curve)
3.	PE - Curve Utilities - Attach Brush to Curves
Simplify Stroke Curve (removes extra CVs)
1.	Select Stroke
2.	PE - Curve Utilities - Simplify Stoke Paths Curve

To Change Stroke Curve Shape (simplify it first)
1.	Select the stroke curve
2.	Display - Show Geometry - Stroke Path Curve
3.	Select Stroke Curve Path
4.	Select by Component - move the CVs
5.	Display - Hide Geometry - Stroke Path Curve
6.	Change to Select by Object

Hiding and Showing Strokes and Curves
	Display - Hide - Hide Geometry - Strokes or Stroke Path Curves
	Display - Show - Show Geometry - Strokes or Stroke Path Curves
Erasing in 3D
Erasing actually changes the alpha value to 0 so it looks black but it renders OK

To Erase:
1.	Get in Paint Effects Window (8)
2.	Select a Brush from the visor or shelf
3.	PE - Paint Effects Tool Options - Paint at Depth = ON
4.	PE - Template Brush Settings - Erase, Blur or Smear
5.	Template Brush Settings - Channels - Depth OFF
6.	Paint Effects Globals - Force Depth - OFF

Painting in 3D
Can paint in the Paint Effects window (8) or the modeling window
Can paint on ground, view plane or an object

In 3D paint mode (Paint Scene), you can use an interactive rendering mode to see 
the Paint Effects.  In the modeling windows, you only see curves or polygon Meshes. 

Cannot use the modeling tools in the Paint Effects window (8) but can use the 
attribute editor, channel box and camera transformation tools

Useful menus in the Paint Effects window (8)
Stroke Refresh
	*Use the Recycle (Redraw Paint Effects View) button with these
OFF - displays as wireframe when moving camera around
	Wireframe - displays as wireframe with 100% quality
	Rendered - high quality display except when moving camera - slow
Selected only - all others do not render (may need to select the object in the Outliner)

If your refresh is too slow, reduce the resolution - this does not effect the final render.

Paint on Object
Select the object - Make Paintable

If you duplicate a plane with scale of -1 X, -1Y, 1, Z and align it to the original, 
you can get the paint effects to flip from top to bottom of the plane. 
(paint effects always paint in the direction of the normal)

Paint on Ground
Deselect all and Make Paintable - this will make all other objects NOT paintable 
and you can paint on the view plane or ground (cannot save paintable objects)

Paint on View Plane
Paint Effects menu - Select Paint on View Plane

To modify a stroke already made (only in Scene not Canvas mode)
1.	Select stroke
2.	Open the attribute Editor
3.	Select and look at each tab with the object's name in the tab name

StrokeNAME tab:
	Translate, scale and rotate the object in world space

StrokeShapeNAME tab:
	Position Stroke 
in 3D - grows off the ground
	on View Plane - renders it along the view plane (do a render test to see for sure)
	Display Quality - reduces the complexity of the paint effects (does not effect rendering)
	Sample Density - painting slow and fast also changes this
	Seed - PE tube strokes are based on randomness, if you want two strokes to 
	have the same shape, keep this the same number
	Draw Order - each PE stroke can be rendered in a separate layer and order.  
	Could have the semitransparent objects render after the opaque ones
		0 = first 
		1 = second rendered
	Surface offset - paint strokes off the surface
	Smoothing - smooths out the curves of the paint strokes (does not remove Cvs)
		0 = no smoothing
	Motion Blur - must also turn it on in the Render Globals
	Primary Visibility - do you want it to be seen

End Bounds - Min Clip and Max Clip determine the portion of the stroke to use in 
creating the paint effect.  Can animate this to make a vine grow.

Normal Direction - can alter this to get the PE to grow differently - this does 
not actually alter the normal of the geometry.
NAME tab:
Brush Type: Paint, Smear, Blur, Erase
Global Scale: amplifies the size of brush strokes 
Channels: Depth - ON = distance between strokes (more realistic)
	Depth OFF - strokes appear on top of each other
	Modify Depth - use when painting in fog
	Modify Color - applies the color of the stroke to the scene
	Modify Alpha - applies the alpha values to the scene
Brush Profile 
	Brush Width - size of brush
	Softness - 0 = no fuzzy edges, 1 = maximum fuzziness
	Flatness 1 & 2:  Simple Strokes - 0 = 3D feel and 1 = flat
			Tubes - How flat it is at the start and end of the tube.