Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

stroke( [string] , [name=string], [pressure=boolean], [seed=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

stroke is undoable, NOT queryable, and NOT editable.

The stroke command creates a new Paint Effects stroke node.

Return value

string(The path to the new stroke or the replaced stroke)

Related

dynPaintEditor, getDefaultBrush

Flags

name, pressure, seed
Long name (short name) Argument types Properties
name(n) string create
Sets the name of the stroke to the input string
seed(s) int create
Sets the random seed for this stroke.
pressure(pr) boolean create
On creation, allows the copying of the pressure mapping settings from the Paint Effects Tool. Default is false.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.stroke( s=10, n='armScar' )