Go to: Related nodes. Attributes.

This node contains stroke attributes that are used to display painted strokes for Maya Paint Effects.

Node name Parents Classification MFn type Compatible function sets
stroke pfxGeometry stroke kStroke kBase
kNamedObject
kDependencyNode
kDagNode
kShape
kPfxGeometry
kStroke

Related nodes

strokeGlobals, brush

Attributes (38)

curve, maxClip, minClip, minimalTwist, normal, normalX, normalY, normalZ, opposite, outNormal, outNormalX, outNormalY, outNormalZ, outPoint, outPointX, outPointY, outPointZ, pathCurve, perspective, pressure, pressureMap1, pressureMap2, pressureMap3, pressureMax1, pressureMax2, pressureMax3, pressureMin1, pressureMin2, pressureMin3, pressureScale, pressureScale_FloatValue, pressureScale_Interp, pressureScale_Position, sampleDensity, samples, smoothing, useNormal, uvSetName

Long name (short name) Type Default Flags
sampleDensity (sdn) double 1.0 outputinputconnectablestorablekeyable
increases or decreases the total number of samples along path
smoothing (smo) double 0.0 outputinputconnectablestorablekeyable
smoothness of output stroke points and normals
perspective (per) bool 1 outputinputconnectablestorablekeyable
draw in perspective using the current camera( otherwise draw in the image plane )
useNormal (usn) bool 0 outputinputconnectablestorablekeyable
use the fixed stroke normal instead of the per-vertex curve normal
minimalTwist (mnt) bool 0 outputinputconnectablestorablekeyable
For strokes with simple curves(not curve on surface) when UseNormal is OFF this computes the curve normals with minimal twisting between adjacent vertices
normal (nml) double3 outputinputconnectablestorablekeyable
worldspace override normal for entire stroke
normalX (nmx) double 0.0 outputinputconnectablestorablekeyable
worldspace directional force X value
normalY (nmy) double 0.0 outputinputconnectablestorablekeyable
worldspace directional force Y value
normalZ (nmz) double 1.0 outputinputconnectablestorablekeyable
worldspace directional force Z value
minClip (mnc) double 0.0 outputinputconnectablestorablekeyable
start of visible segment of stroke
maxClip (mxc) double 1.0 outputinputconnectablestorablekeyable
end of visible segment of stroke
pathCurve (pcv) compound n/a arrayoutputinputconnectablestorable
This contains an array of curves to use as stroke path, along with number of points to sample along each curve. The curves are sampled in the order they appear in this list to produce a single set of output points and normals which define a poly line path for the paint effects stroke. By default the resulting points will correspond to the list of points sampled while the user painted the stroke. If the stroke crossed multiple surfaces there will be a separate curve created each time the user paints across a surface boundary.
curve (crv) Generic n/a outputinputconnectablestorablekeyable
curve to use as stroke path
samples (smp) integer 0 outputinputconnectablestorablekeyable
number of points to sample across curve
opposite (opp) bool false outputinputconnectablestorable
Determines wether the normal calculated for this section of the stroke should be flipped or not (default).
outPoint (opt) double3 arrayoutputinputconnectablestorablehidden
Output worldspace points for brush stroke. Although it is writable, do not write to this attribute.
outPointX (ox) double 0.0 outputinputconnectablestorablehidden
X value of a stroke point. Although it is writable, do not write to this attribute.
outPointY (oy) double 0.0 outputinputconnectablestorablehidden
Y value of a stroke point. Although it is writable, do not write to this attribute.
outPointZ (oz) double 0.0 outputinputconnectablestorablehidden
Z value of a stroke point. Although it is writable, do not write to this attribute.
outNormal (onm) double3 arrayoutputconnectablehidden
output worldspace normals for brush stroke
outNormalX (onx) double 0.0 outputconnectablehidden
X value of a stroke normal
outNormalY (ony) double 0.0 outputconnectablehidden
Y value of a stroke normal
outNormalZ (onz) double 0.0 outputconnectablehidden
Z value of a stroke normal
pressureMap1 (spm1) enum 0 outputinputconnectablestorablekeyable
Parameter to modulate using cached pen pressure values
pressureMin1 (ps1) double 0.0 outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMax1 (px1) double 1.0 outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMap2 (spm2) enum 0 outputinputconnectablestorablekeyable
Parameter to modulate using cached pen pressure values
pressureMin2 (ps2) double 0.0 outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMax2 (px2) double 1.0 outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMap3 (spm3) enum 0 outputinputconnectablestorablekeyable
Parameter to modulate using cached pen pressure values
pressureMin3 (ps3) double 0.0 outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMax3 (px3) double 1.0 outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureScale (psc) compound n/a arrayoutputinputconnectablestorable
Scale factor applied to the input pressure array. This can be used to shape stroke widths, or other elements like tube length along the stroke without needing to edit using pressure curves.
pressureScale_Position (pscp) float 0.0 outputinputconnectablestorable
Position of ramp value on normalized 0-1 scale
pressureScale_FloatValue (pscfv) float 0.0 outputinputconnectablestorable
Ramp value at the sibling position
pressureScale_Interp (psci) enum 0 outputinputconnectablestorable
Ramp Interpolation controls the way the intermediate values are calculated. The values are:
None: No interpolation is done; the different colors just show up as different bands in the final texture. Linear: The values are interpolated linearly in RGB color space. Smooth: The values are interpolated along a bell curve, so that each color on the ramp dominates the region around it, then blends quickly to the next color. Spline: The values are interpolated with a spline curve, taking neighboring indices into account for greater smoothness.
pressure (psr) double 0.0 arrayoutputinputconnectablestorablekeyable
the array of pressure values generated by pen device
uvSetName (uvsetn) Message n/a arrayoutputinputconnectable
This is the name of the UVset, to which the curve is connected. This exists only when we have created PFX on Poly.