Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / PickObjectProc problem in 2012
  RSS 2.0 ATOM  

PickObjectProc problem in 2012
Rate this thread
 
64273
 
Permlink of this thread  
avatar
  • MilanBuro
  • Posted: 07 February 2012 11:37 PM
  • Total Posts: 1
  • Joined: 07 February 2012 11:20 PM

Hi,

Calling this method in an interface IMtlParams

virtual void SetPickMode(PickObjectProc *proc)=0;

in previous version of max (2011,2010,...) has always worked (in my plugin).
I have just call it with an argument of an object derived from PickObjectProc.
In 2012 nothing happens when I call it, not even any error.

My plugin is working perfectly in previous versions of max.
Anybody has any sugestion what might has changed in using PickObjectProc?

Object I am using when calling that method is of this class:

class Picker : public PickObjectProc
{
public:
 
Picker();
 
virtual ~Picker();
 
virtual BOOL Pick(INode *node);
 
virtual BOOL Filter(INodenode);
 
virtual void EnterMode()
 
{
 }
 virtual void ExitMode
()
 
{
 }
}
;

Thanks for any help.
Milan



Replies: 0