Your Ad Here

Go to: Synopsis. Flags. Return value. Related. 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, queryable, and editable.

The stroke command creates a new Paint Effects stroke node.

Flags

name, pressure, seed
Long name (short name) [argument types] Properties
name(n) string createedit
Sets the name of the stroke to the input string
seed(s) int createedit
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.

Return value


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

Related

dynPaintEditor, getDefaultBrush

Python examples

import maya.cmds as cmds

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

  

Return to Autodesk Index


Your Ad Here