Maya API, function is missing (MPlug::source)

Maya API, function is missing (MPlug::source)

stuzzz
Collaborator Collaborator
1,025 Views
4 Replies
Message 1 of 5

Maya API, function is missing (MPlug::source)

stuzzz
Collaborator
Collaborator

Hi,

 

I'm compiling a C++ plug-in for maya 2016 through 2020. It works totally fine except for the 2016 version. Here is the error:

C2039 'source' is not a member of 'MPlug'

grabScreen_139095828.jpg

 

I'm quite surprised because I can see the "source" function in the 2016 documentation:grabScreen_139095940.jpg 

 

 

0 Likes
Accepted solutions (1)
1,026 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

That method only exists in Maya API 2.0 unfortunately

0 Likes
Message 3 of 5

stuzzz
Collaborator
Collaborator

sorry I don't get it, i'm confused.

 

The C++ api has several versions?

How can I access to the 2.0 version for maya 2016 (if that exists)?

 

0 Likes
Message 4 of 5

jmreinhart
Advisor
Advisor
Accepted solution

Whoops, wow total brainfart on my part, I don't know why I was thinking of the Python API.

 

So it's a bit strange I assumed it was a problem because that's a "new" method that did not exist in 2016 yet. But according to the documentation it was added in 2016. So maybe your downloaded devKit for 2016 is out of data? 

 

http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=__cpp_ref_class_m_plug_html

http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__cpp_ref_class_m_plug_html 

http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__cpp_ref_class_m_plug_html 

0 Likes
Message 5 of 5

stuzzz
Collaborator
Collaborator

thanks for answering. 

I installed maya and got the SDK installed with it.

That is pretty weird. Never mind, I will skip my 2016 compilation 

0 Likes