PDA

View Full Version : problem with linking maya plug-in


jackyu00
11-29-2005, 04:42 PM
anyone can help me? thanks. this is my source code:
.
.
MTime t = MAnimControl::currentTime();
.
.
.
MPointArray pts;
surfaceFn.getCVs( pts );
unsigned int i;
double degree=5*PI/180;
for( i=0; i < pts.length(); i++ )
{
MPoint &p = pts[i];
p.y=sin( degree*(t.value()-(i*15)) );
}
surfaceFn.setCVs( pts );

////////////////////////////////////////
sinNode.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class MTime __cdecl MAnimControl::currentTime(void)" (__imp_?currentTime@MAnimControl@@SA?AVMTime@@XZ) referenced in function _$E13

michaelcomet
11-29-2005, 05:54 PM
You probably need to add in the other Maya libs to link with your app...notably...

OpenMayaAnim

and perhaps OpenMayaUI

I suspect the anim control class lives in the OpenMayaAnim library...

jackyu00
11-30-2005, 01:03 AM
Hi,

You are right, I forgot to add "OpenMayaAnim.lib", it works now, thanks~

CGTalk Moderation
11-30-2005, 01:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.