Go to: Return value. Flags. Examples.

Synopsis

transferAttributes <flags>

Samples the attributes of a source surface and transfers them onto a target surface.

Return value

string The node name.

Flags

colorBorders, flipUVs, sampleSpace, searchScaleX, searchScaleY, searchScaleZ, sourceColorSet, sourceUvSet, targetColorSet, targetUvSet, transferColors, transferPositions, transferUVs

Long name (short name)[argument types]Properties
-transferPositions (-pos) integercreateedit
A non-zero value indicates vertex position should be sampled, causing the target surface to "wrap" to the source surface(s).
-transferUVs (-uvs) integercreateedit
Controls UV set transfer. 0 means no UV sets are transferred, 1 means that a single UV set (specified by sourceUVSet and targetUVSet) is transferred, and 2 means that all UV sets are transferred.
-sourceUvSet (-suv) stringcreate
Specifies the name of a single UV set on the source surface(s) that should be transferred to the target. This value is only used when the operation is configured to transfer a single UV set (see the transferUVs flag).
-targetUvSet (-tuv) stringcreate
Specifies the name of a single UV set on the target surface that should be receive the sampled UV data. This value is only used when the operation is configured to transfer a single UV set (see the transferUVs flag).
-transferColors (-col) integercreateedit
Controls color set transfer. 0 means no color sets are transferred, 1 means that a single color set (specified by sourceColorSet and targetColorSet) is transferred, and 2 means that all color sets are transferred.
-sourceColorSet (-scs) stringcreate
Specifies the name of a single color set on the source surface(s) that should be transferred to the target. This value is only used when the operation is configured to transfer a single color set (see the transferColors flag).
-targetColorSet (-tcs) stringcreate
Specifies the name of a single color set on the target surface that should be receive the sampled color data. This value is only used when the operation is configured to transfer a single color set (see the transferColors flag).
-searchScaleX (-ssx) floatcreateedit
Specifies an optional scale that should be applied to the x-axis of the target model before transferring data. A value of 1.0 (the default) means no scaling; a value of -1.0 would indicate mirroring along the x-axis.
-searchScaleY (-ssy) floatcreateedit
Specifies an optional scale that should be applied to the y-axis of the target model before transferring data. A value of 1.0 (the default) means no scaling; a value of -1.0 would indicate mirroring along the y-axis.
-searchScaleZ (-ssz) floatcreateedit
Specifies an optional scale that should be applied to the z-axis of the target model before transferring data. A value of 1.0 (the default) means no scaling; a value of -1.0 would indicate mirroring along the z-axis.
-flipUVs (-fuv) integercreateedit
Controls how sampled UV data is flipped before being transferred to the target. 0 means no flipping; 1 means UV data is flipped in the U direction; 2 means UV data is flipped in the V direction; and 3 means it is flipped in both directions. In conjunction with mirroring, this allows the creation of symmetric UV mappings (e.g. the left hand side of the character on one side of the UV map, the right hand side on the other).
-colorBorders (-clb) integercreateedit
Controls whether color borders are preserved when transferring color data. If this is non-zero, any color borders will be mapped onto the nearest edge on the target geometry. 0 means any color borders will be smoothly blended onto the vertices of the target geometry.
-sampleSpace (-spa) integercreateedit
Selects which space the attribute transfer is performed in. 0 is world space, 1 is model space. The default is world space.

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 be used more than once in a command

Examples


  // Transfer all UV and color sets from pCube1 onto pSphere1
  transferAttributes -transferUVs 2 -transferColors 2 pCube1 pSphere1;