PDA

View Full Version : MPxLocatorNode::excludeAsLocator. API acting up, again?


GennadiyKorol
10-15-2008, 08:06 PM
I am having a custom locator node derived from MPxLocatorNode which is used to draw the actual polygonal geometry and what is happening right now is that it is being hidden when user unchecks "Locators" under the View -> Show.

So by carefully studying API docs I have found the saver of the day ::excludeAsLocator() method.

According to the docs all one needs to do is override this method and return false from it to force the drawing of my custom locator even when locator display is off.

But this will just absolutely not work in Maya 2008. I don't think I have used this in previous versions of Maya so I cannot confirm whether it is working there or not.

Is anyone else having the same experience?

ticket01
10-16-2008, 06:53 AM
Henry, I have to confirm that bug for both Maya 8.5 and 2009. I tested it on OSX but I would assume that's the same on any other platform.

GennadiyKorol
10-17-2008, 01:39 PM
Thanks for checking.

You know the saddest thing about such bugs is that there is just no way to workaround them. You are just unable to achieve the desired functionality, period.

We can only hope it gets fixed in Maya 2013...

GennadiyKorol
10-18-2008, 12:07 AM
Cough.

It works at home on pure Maya 2008. Looks like the "service pack" makes a difference...

ticket01
10-18-2008, 08:40 AM
Ain't it just great when "updates" break working stuff? :rolleyes:

Sometimes when using the Maya API I feel like putting more effort in avoiding known bugs than implementing new things. Don't know if it was a good decision to join ADN but I'll see.

Buexe
10-18-2008, 05:52 PM
And could it be that those extensions get a different cutIdentifier, so when you compile it against the Extension lbs, they don`t work on Mayas without extension? At least that happened to me in the past. But back on topic I`d also like to see this excludeAsLocator working.

ticket01
10-19-2008, 12:04 PM
That's right. Service Packs for 2008 and Extensions are being treated like .5 releases. Only problem is, there's no documentation for that and you have to learn it the hard way, like when your customers with a pure 2008 install come back screaming at you that the new plug-in, compiled with Ext2, won't work anymore.

Most confusing thing is, plug-ins compiled with pure 2008 will work in 2008 Ext2 and SP1.

CGTalk Moderation
10-19-2008, 12:04 PM
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.