Lost Adventurer, Aleks Kirilenko (3D)
LC #42 Pipers Alley

View Full Version : MPxLocatorNodes in VP 2.0

11-01-2012, 03:08 PM
Hi all,

Anyone know how to make a custom locator node work in viewport 2.0? It would seem to be possible (according to a footnote on an Around The Corner blog post), but I can't find any information on how to do it.

I'm working in Python if that helps :)

Thanks in advance for any links etc.,

11-01-2012, 03:41 PM
Have a look at MPxDrawOverride. All you need to do is register the drawOverride to your node and then you can perform your draw inside your override.

The footprintNode example in the devkit might be useful to look at. I believe it uses the draw override, if not, run a search through the devkit for MPxDrawOverride to find an example. I chose footprintNode because I think it's the simplest example.

11-01-2012, 03:50 PM
Thanks for the pointer!

Alas, it seems it doesn't work in the Python API.

Cheers though,

11-01-2012, 03:57 PM
Ah that's unfortunate. The MPx***Override classes are the only ways I'm aware of to draw to VP2.0. I guess they haven't pythonized the new VP2.0 SDK yet.

CGTalk Moderation
11-01-2012, 03:57 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.