Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Calling published functions

Calling published functions

Anonymous
Not applicable
434 Views
1 Reply
Message 1 of 2

Calling published functions

Anonymous
Not applicable

I created an interface in a public header file. Its implementation is done in an implementation file. How can I call the published functions from other plugins? How can I get the edmeshCD in the following code snippet from max sdk documentation? EMFaceOps* efi = GetEMFaceOpsInterface(edmeshCD); //... efi->Extrude(mesh, faces, 10.0);

0 Likes
435 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Using function publishing we can expose the functions of one plugin to another using  FpInterface.

In Fp_Basic.h replace the 

 

inline class IFP_Basic* GetFP_basic()
{
    return (IFP_Basic*) GetCOREInterface(FP_BASIC_INTERFACE);
}

with

 

inline class IFP_Basic* GetFP_basic()
{

     return (IFP_Basic*)GetInterface(GUP_CLASS_ID,fp_basics_CLASS_ID,FP_BASIC_INTERFACE);
}

 

we can call the above function inorder to get other functions which is published using the FpInterface.

0 Likes