Go to: Related nodes. Attributes.

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

Node nameParentsClassificationMFn typeCompatible function sets
strokepfxGeometrystrokekStrokekBase
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)TypeDefaultFlags
sampleDensity (sdn) double1.0outputinputconnectablestorablekeyable
increases or decreases the total number of samples along path
smoothing (smo) double0.0outputinputconnectablestorablekeyable
smoothness of output stroke points and normals
perspective (per) bool1outputinputconnectablestorablekeyable
draw in perspective using the current camera( otherwise draw in the image plane )
useNormal (usn) bool0outputinputconnectablestorablekeyable
use the fixed stroke normal instead of the per-vertex curve normal
minimalTwist (mnt) bool0outputinputconnectablestorablekeyable
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) double3outputinputconnectablestorablekeyable
worldspace override normal for entire stroke
normalX (nmx) double0.0outputinputconnectablestorablekeyable
worldspace directional force X value
normalY (nmy) double0.0outputinputconnectablestorablekeyable
worldspace directional force Y value
normalZ (nmz) double1.0outputinputconnectablestorablekeyable
worldspace directional force Z value
minClip (mnc) double0.0outputinputconnectablestorablekeyable
start of visible segment of stroke
maxClip (mxc) double1.0outputinputconnectablestorablekeyable
end of visible segment of stroke
pathCurve (pcv) compoundn/aarrayoutputinputconnectablestorable
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) Genericn/aoutputinputconnectablestorablekeyable
curve to use as stroke path
samples (smp) integer0outputinputconnectablestorablekeyable
number of points to sample across curve
opposite (opp) boolfalseoutputinputconnectablestorable
Determines wether the normal calculated for this section of the stroke should be flipped or not (default).
outPoint (opt) double3arrayoutputinputconnectablestorablehidden
Output worldspace points for brush stroke. Although it is writable, do not write to this attribute.
outPointX (ox) double0.0outputinputconnectablestorablehidden
X value of a stroke point. Although it is writable, do not write to this attribute.
outPointY (oy) double0.0outputinputconnectablestorablehidden
Y value of a stroke point. Although it is writable, do not write to this attribute.
outPointZ (oz) double0.0outputinputconnectablestorablehidden
Z value of a stroke point. Although it is writable, do not write to this attribute.
outNormal (onm) double3arrayoutputconnectablehidden
output worldspace normals for brush stroke
outNormalX (onx) double0.0outputconnectablehidden
X value of a stroke normal
outNormalY (ony) double0.0outputconnectablehidden
Y value of a stroke normal
outNormalZ (onz) double0.0outputconnectablehidden
Z value of a stroke normal
pressureMap1 (spm1) enum0outputinputconnectablestorablekeyable
Parameter to modulate using cached pen pressure values
pressureMin1 (ps1) double0.0outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMax1 (px1) double1.0outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMap2 (spm2) enum0outputinputconnectablestorablekeyable
Parameter to modulate using cached pen pressure values
pressureMin2 (ps2) double0.0outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMax2 (px2) double1.0outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMap3 (spm3) enum0outputinputconnectablestorablekeyable
Parameter to modulate using cached pen pressure values
pressureMin3 (ps3) double0.0outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureMax3 (px3) double1.0outputinputconnectablestorablekeyable
0-1 pressure inputs are remapped into the min-max range
pressureScale (psc) compoundn/aarrayoutputinputconnectablestorable
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) float0.0outputinputconnectablestorable
Position of ramp value on normalized 0-1 scale
pressureScale_FloatValue (pscfv) float0.0outputinputconnectablestorable
Ramp value at the sibling position
pressureScale_Interp (psci) enum0outputinputconnectablestorable
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) double0.0arrayoutputinputconnectablestorablekeyable
the array of pressure values generated by pen device
uvSetName (uvsetn) Messagen/aarrayoutputinputconnectable
This is the name of the UVset, to which the curve is connected. This exists only when we have created PFX on Poly.