Next Generation Digital Entertainment Creation Software
Create the future with Autodesk 3ds Max 2011 and Autodesk Maya 2011 software.
  • 1/3
You are here:Forum Home / Autodesk® Softimage® / XSI SDK / Shape keys
  RSS 2.0 ATOM  

Shape keys
Rate this thread
 
40653
 
Permlink of this thread   Subscribe to this thread
avatar
  • MoSin
  • Posted: 12 March 2010 07:55 AM
  • Total Posts: 18
  • Joined: 2010-03-02 14:07:51

Hi,

I want to extract some of a model information over it’s animation. I know I have to use shape keys for it. For now, I have this :

XSI::CGeometryAccessor ga mesh.GetGeometryAccessor( XSI::siConstructionModeModelingXSI::siCatmullClark0 )
XSI
::CRefArray refShapeKeys ga.GetShapeKeys()
LONG nShapeKeys 
refShapeKeys.GetCount()
XSI
::ShapeKey currentKey refShapeKeys[0];
XSI::ShapeKey frame0 currentKey.EvaluateAt(0)
XSI
::CClusterPropertyElementArray frameElem frame0.GetElements()
LONG frameElemValueSize 
frameElem.GetValueSize()
LONG frameElemCount 
frameElem.GetCount()

So, first of all, the EvaluateAt method… will it return me the something at a particular frame?
Second of all, the frameElemValueSize gives me 78 right now and frameElemCount, 21670. How can I know what are the frame elements (vertices, polygons...) and each of the values for each element (UVs, position, color....)?? When I call EvaluateAt, information in this array will change too?

Any help will be appreciated!

Thanks!



Replies: 0
avatar
  • MoSin
  • Posted: 12 March 2010 12:29 PM

Well, I found my error. I need to call EvaluateAt on the primitive itself then, the GeometryAccessor is updated to the frame I want.



Replies: 0




   
  Settings Choose Theme color: