gohkgohk
09-08-2009, 03:07 PM
I have read a lot of document related to (FPS)function publishing system in 3ds Max. But i still have some questions on it.
1. I am trying to create a (EPM)Edit Poly Modifier in object. But I found that EPM cannot create in the same way as "extrude" modifier. There is an interface class called "EPolyMod" which corresponsing to EPM. In other modifier, I know I can create modifier by "CreateInstance" , then modify its ParamBlock, finally use "AddModifier" to put it over the object.
But how can i do it with EPolyMod?
2. When I look at the "3ds Max SDK Programmers Guide". It has two ways to call function through FPS.
A.
EMFaceOps* efi = GetEMFaceOpsInterface(edmeshCD);
//...
efi->Extrude(mesh, faces, 10.0);
B.
FPParams p (3, TYPE_MESH, mesh,
TYPE_BITARRAY, faces,
TYPE_FLOAT, 10.0);
FPValue result;
FPInterface efi = edmeshCD->GetFPInterface("FaceOps");
efi->Invoke(em_extrude, result, &p);
x = result.i;
It said B is an indirect way to call the function. What is the difference between them? Which one should i use? And what is "edmeshCD"?
please help me
thxxx
1. I am trying to create a (EPM)Edit Poly Modifier in object. But I found that EPM cannot create in the same way as "extrude" modifier. There is an interface class called "EPolyMod" which corresponsing to EPM. In other modifier, I know I can create modifier by "CreateInstance" , then modify its ParamBlock, finally use "AddModifier" to put it over the object.
But how can i do it with EPolyMod?
2. When I look at the "3ds Max SDK Programmers Guide". It has two ways to call function through FPS.
A.
EMFaceOps* efi = GetEMFaceOpsInterface(edmeshCD);
//...
efi->Extrude(mesh, faces, 10.0);
B.
FPParams p (3, TYPE_MESH, mesh,
TYPE_BITARRAY, faces,
TYPE_FLOAT, 10.0);
FPValue result;
FPInterface efi = edmeshCD->GetFPInterface("FaceOps");
efi->Invoke(em_extrude, result, &p);
x = result.i;
It said B is an indirect way to call the function. What is the difference between them? Which one should i use? And what is "edmeshCD"?
please help me
thxxx
