Go to: Synopsis. Return value. Related. Flags. Python examples. 
      
       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.
	  
      
      | string | (The path to the new stroke or the replaced stroke) | 
      
      dynPaintEditor, getDefaultBrush
      
    
      name, pressure, seed
      
        
          | Long name (short name) | 
          Argument types | 
          Properties | 
        
         | 
    
      
        
          name(n) 
       | 
      
        string
       | 
      
 
       | 
    
    
      
        
          
         | 
          
Sets the name of the stroke to the input string
      
           | 
           
         
       | 
    
    
      
        
          pressure(pr) 
       | 
      
        boolean
       | 
      
 
       | 
    
    
      
        
          
         | 
          
On creation, allows the copying of the pressure
mapping settings from the Paint Effects Tool. Default
is false.
      
           | 
           
         
       | 
    
    
      
        
          seed(s) 
       | 
      
        int
       | 
      
 
       | 
    
    
      
        
          
         | 
          
Sets the random seed for this stroke.
      
           | 
           
         
       | 
    
      
      
        
          
             
                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.
             | 
          
        
import maya.cmds as cmds
cmds.stroke( s=10, n='armScar' )