XSI_SubComponentAttributeList

Stores cluster properties such as vertex positions, colors, normals, texture coordinates, and weight maps. Also used to store shape keys.

Contained in an XSI_Shape template.

Introduced

5.0

Template

XSI_SubComponentAttributeList <sName> { 
   <sAttributeName>, 
   <sType>, 
   <iNbSubComponent>,
   <value>
   // ...
   }

Members

Member name

Description

sName

Name of the attribute list. For example, "position" or "ShapeKey99".

sAttributeName

Specifies the subcomponent attribute whose values are stored in the template.

• "COLOR"

• "POSITION"

• "WEIGHTMAP"

• "NORMAL"

• "TEXCOORD"

sType

Specifies the type and number of values for each subcomponent attribute. For example, "FLOAT3"means that a subcomponent attribute consists of three floating point values.

iNbSubComponent

Number of subcomponents for which attribute values are stored in the template.

value

A comma-separated list of attribute values. For example, for each vertex, a comma-separated list of X,Y, and Z position values.

Examples

// Vertex positions and normals for a cube

XSI_Mesh MSH-cube { 
   XSI_Shape SHP-cube { 
       "ORDERED", 
       XSI_SubComponentAttributeList position { 
          "POSITION", 
          "FLOAT3", 
          8, 

          -4.000000,-4.000000,-4.000000,
          4.000000,-4.000000,-4.000000,
          -4.000000,4.000000,-4.000000,
          4.000000,4.000000,-4.000000,
          -4.000000,-4.000000,4.000000,
          4.000000,-4.000000,4.000000,
          -4.000000,4.000000,4.000000,
          4.000000,4.000000,4.000000,
       }

       XSI_SubComponentAttributeList ImplicitNormal { 
          "NORMAL", 
          "FLOAT3", 
          24, 

          -0.577350,-0.577350,-0.577350,
          -0.577350,0.577350,-0.577350,
          0.577350,0.577350,-0.577350,
          0.577350,-0.577350,-0.577350,
          -0.577350,-0.577350,-0.577350,
          0.577350,-0.577350,-0.577350,
          0.577350,-0.577350,0.577350,
          -0.577350,-0.577350,0.577350,
          -0.577350,-0.577350,-0.577350,
          -0.577350,-0.577350,0.577350,
          -0.577350,0.577350,0.577350,
          -0.577350,0.577350,-0.577350,
          0.577350,-0.577350,-0.577350,
          0.577350,0.577350,-0.577350,
          0.577350,0.577350,0.577350,
          0.577350,-0.577350,0.577350,
          -0.577350,0.577350,-0.577350,
          -0.577350,0.577350,0.577350,
          0.577350,0.577350,0.577350,
          0.577350,0.577350,-0.577350,
          -0.577350,-0.577350,0.577350,
          0.577350,-0.577350,0.577350,
          0.577350,0.577350,0.577350,
          -0.577350,0.577350,0.577350,
       }

   }
// ...
   }



XSI_ShapeAnimation SHPANIM-cone { 
   "LINEAR", 
   100, 
   SI_FCurve { 
       "cone", 
       "SHPANIM-1", 
       "LINEAR", 
       1, 
       1, 
       2, 
       1.000000,0.000000,
       2.000000,1.000000,
   }


// Shape animation

   XSI_Shape SHP-cone-0 { 
       "INDEXED", 
       XSI_SubComponentAttributeList ShapeKey1 { 
          "POSITION", 
          "FLOAT4", 
          9, 

          11.000000,0.000000,0.236488,0.473934,
          12.000000,0.000000,0.236488,0.473934,
          13.000000,0.000000,0.236488,0.473934,
          14.000000,0.000000,0.236488,0.473934,
          15.000000,0.000000,0.236488,0.473934,
          16.000000,0.000000,0.236488,0.473934,
          17.000000,0.000000,0.236488,0.473934,
          18.000000,0.000000,0.236488,0.473934,
          19.000000,0.000000,0.236488,0.473934,
       }

   }

   XSI_Shape SHP-cone-1 { 
       "INDEXED", 
       XSI_SubComponentAttributeList ShapeKey2 { 
          "POSITION", 
          "FLOAT4", 
          9, 

          11.000000,-0.024600,0.236488,0.475001,
          12.000000,-0.024600,0.236488,0.475001,
          13.000000,-0.024600,0.236488,0.475001,
          14.000000,-0.024600,0.236488,0.475001,
          15.000000,-0.024600,0.236488,0.475001,
          16.000000,-0.024600,0.236488,0.475001,
          17.000000,-0.024600,0.236488,0.475001,
          18.000000,-0.024600,0.236488,0.475001,
          19.000000,-0.024600,0.236488,0.475001,
       }

   }
}


Softimage|Crosswalk v3.11