RE : C++ GetDeformerWeights
| Date : Wed, 7 May 2008 11:21:19 -0400 (EDT) |
| To : XSI(at)Softimage.COM |
| From : dominic bélanger <lowtunes1(at)yahoo.ca> |
| Subject : RE : C++ GetDeformerWeights |
Thanks i have found the solution i had to cast my X3DObject to a Scene Item
Envelope SWeighting(SceneItem(X3DObject).GetEnvelopes()[0]);
with this everything is fine !!
thanks
Dominic Belanger <dbelanger2(at)gmail.com> a écrit :
Hi Guys , Im trying to acces to the weightValue of an object by
GetDeformerWeights ,but i had a little problem to work with Envelope
class ,instead i have used EnvelopeWeight Class , With this one im
able to get the number of deformers .
But with de EnvelopeWeight Class a i m not able to use
GetDeformerWeights from Envelope Class could Anyone have an idea how
can i use Envelope Class ..
there is my code snipet thanks!
//---------------------------------------------------------------------------------------------------------------------------
PolygonMesh SMesh(SourceObj.GetActivePrimitive().GetGeometry(0));
CGeometryAccessor ga = SMesh.GetGeometryAccessor();
CRefArray SEnvelope = ga.GetEnvelopeWeights();
EnvelopeWeight SWeighting = SEnvelope[0];
// Envelope SWeighting = SEnvelope[0]; //envelope class
CRefArray SourceDeformers = SWeighting.GetDeformers();
App.LogMessage(L"DeformersCount : " +CString(SourceDeformers.GetCount()));
CTime Frame;
for (LONG e =0;e < SourceDeformers.GetCount();e++)
{
CDoubleArray weights =
Envelope(SEnvelope[0]).GetDeformerWeights(SourceDeformers[e],Frame.GetTime());
//CDoubleArray
weights = SWeighting.GetDeformerWeights(SourceDeformers[e],Frame.GetTime());
//envelope class
for (LONG f = 0; f < weights.GetCount();f++)
{
App.LogMessage(CString(weights[f]));
}
}
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
#32;
Découvrez les styles qui font sensation sur Yahoo! Québec Avatars
- References:
- C++ GetDeformerWeights
- From: "Dominic Belanger" <dbelanger2(at)gmail.com>
- C++ GetDeformerWeights
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: rayHistory XP64bit
- Next by Date: rayHistory XP64bit
- Previous by Thread: rayHistory XP64bit
- Next by Thread: rayHistory XP64bit
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |