Laurent Crivello
Laurent Crivello

Reputation: 3931

How to always display MPxNodes

In Maya API, MPxLocatorNodes allow to draw OpenGL on the viewport.
However, when the locator position is not on the screen, then its draw function will not be called. How to have the draw function been called all the time, even when the locator is not on the screen ?

Upvotes: 0

Views: 129

Answers (1)

Laurent Crivello
Laurent Crivello

Reputation: 3931

It is possible by either returning False in the isBounded function, or by extending the bounding box size in the boundingBox() function.

Upvotes: 1

Related Questions