Missing from Maya devkit MDagMessage::addMatrixModifiedCallback

Missing from Maya devkit MDagMessage::addMatrixModifiedCallback

negow
Advocate Advocate
1,138 Views
7 Replies
Message 1 of 8

Missing from Maya devkit MDagMessage::addMatrixModifiedCallback

negow
Advocate
Advocate

Putting this here for the next person searching for a missing devkit member. Missing from 2018, 2019 and 2020 devkits for both Windows or Linux.

 

- help.autodesk.com/view/MAYAUL/2020/ENU/?guid=__cpp_ref_class_m_dag_message_html#abf57819e7ef5d1badcc6adff5ba3f273

0 Likes
Accepted solutions (1)
1,139 Views
7 Replies
Replies (7)
Message 2 of 8

brentmc
Autodesk
Autodesk

Hi,

 

What exactly do you mean by "missing"? Are you referring to the documentation or something else?

 

Thanks.

--

Brent

Brent McPherson
Principle Engineer
0 Likes
Message 3 of 8

negow
Advocate
Advocate

Sorry, I mean the documented member is missing from maya/MDagMessage.h

 

Here's a visual to clarify. 🙂

 

negow_0-1614505461888.png

 

0 Likes
Message 4 of 8

brentmc
Autodesk
Autodesk

Hi,

 

That method was introduced in an update release so if you didn't download a new DevKit that would explain why it is missing.

--

Brent

Brent McPherson
Principle Engineer
0 Likes
Message 5 of 8

negow
Advocate
Advocate

Hm, that doesn't sound right. It's documented since 2019, and is missing from 2020.2.

 

- help.autodesk.com/view/MAYAUL/2019/ENU/?guid=__cpp_ref_class_m_dag_message_html#abf57819e7ef5d1badcc6adff5ba3f273

 

Do you mean it got removed in 2020, and re-added in 2020.3 and above? Mind you, it is missing from 2019.3 as well.

 

Edit: Earliest I can spot it is in the devkit for 2021.pr118, if that helps!

Message 6 of 8

brentmc
Autodesk
Autodesk
Accepted solution

Hi,

 

That method was added in 2020.3. I know because I added it. 🙂

 

I think the 2019 doc entry is an error. I'm checking on why that is listed...

 

It is a brand new method that was added to supplement addWorldMatrixModifiedCallback which only picks up changes in parent matrices. If you add that to a transform you will not get called when the transforms matrix changes so we added a new callback for that case.

--

Brent

Brent McPherson
Principle Engineer
Message 7 of 8

negow
Advocate
Advocate

Great, case closed. 🙂 That also reflects what I was hoping to get out of the callback. Would be great with a note in the docs about when it got added. I really like the deprecation notes with mention of specific versions.

0 Likes
Message 8 of 8

brentmc
Autodesk
Autodesk

The 2019 docs have been corrected now. (if you flush your browser cache)

 

Thanks.

--

Brent

Brent McPherson
Principle Engineer