|
Hi everyone :D
I was wondering if there’s a way to interface to the Skin modifier through the SDK…
I managed to add the modifier to the object, but I don’t know how to add bones, etc…
Is it possible?
|
|
|
|
Hi,
How about trying to use ISkinImportData::AddBoneEx() for instance?
The method MeshDeformPW::SkinWraptoSkin() in maxsdk\samples\modifiers\SkinWrap\SkinWrapMesh.cpp would be helpful for you.
Hope this helps.
Best REgards,
Akira Kudo
|
|
|
|
You might also consider using MaxScript interface to modifier. You need to be more specific about your goal.
|
|
|
|
Here’s how to do it.
Modifier* theSkin= (Modifier*)interfacePtr->CreateInstance(SClass_ID(OSM_CLASS_ID), SKIN_CLASSID); ISkinImportData* SkinInterface= (ISkinImportData*)theSkin->GetInterface(I_SKINIMPORTDATA);
//Modifer must be applied prior to adding the bone(s).
//Let's say you are applying it to an existing node called "theNode". GetCOREInterface12()->AddModifier(*theNode, *theSkin);
//A pointer to a bone or dummy node can be used as first argument
SkinInterface->AddBoneEx(<pointer to your bone node>, TRUE);
|
|
|