I am working on a custom context and I'm running into an issue where the context calls the setup and cleanup methods but won't call doPress, doRelase, or doDrag. I've commented out the parts of the code that actually do anything other than give a print statement, I've attached the .sln. Any help would be greatly appreciated, I've never worked on a custom context before so it's a bit confusing.
Solved! Go to Solution.
I am working on a custom context and I'm running into an issue where the context calls the setup and cleanup methods but won't call doPress, doRelase, or doDrag. I've commented out the parts of the code that actually do anything other than give a print statement, I've attached the .sln. Any help would be greatly appreciated, I've never worked on a custom context before so it's a bit confusing.
Solved! Go to Solution.
Solved by stuzzz. Go to Solution.
hi,
Your signature in the header is the old one (not viewport 2.0). You need to get the following for you MPxContext:
virtual MStatus doPress(MEvent &event, MHWRender::MUIDrawManager& drawMgr, const MHWRender::MFrameContext& context);
You've made the declaration but the definition is missing in the cpp...
I did not read the rest of the code but this will be a huge step if you take in consideration the point above.
hi,
Your signature in the header is the old one (not viewport 2.0). You need to get the following for you MPxContext:
virtual MStatus doPress(MEvent &event, MHWRender::MUIDrawManager& drawMgr, const MHWRender::MFrameContext& context);
You've made the declaration but the definition is missing in the cpp...
I did not read the rest of the code but this will be a huge step if you take in consideration the point above.
Switching to that vp2 method work. Thanks.
Switching to that vp2 method work. Thanks.
Can't find what you're looking for? Ask the community or share your knowledge.