Setting up Reference Watcher in Visual Studio
The project is in \MAXSDK\HOWTO\UTILITIES\REFERENCECHECK\
Load this project into VC++, set up your input and output paths and build it. Place REFCHECK.DLU into your 3ds Max DLL search path (for example in the \Plug-inS directory). You can then run the program by choosing
How To/Reference Watcher in the utility panel.
Running Reference Watcher in 3ds Max
Reset 3ds Max and create a single Box in the scene called Sphere01. Leave it selected after creation.
Launch the Reference Watcher from the Utility branch of the command panel.
Click on the Pick Reference Target to Watch button and choose the Sphere01 node from the track bar dialog by opening the Objects branch and selecting the Sphere01 label then
pressing OK.
Result
The Reference Watcher utility creates a reference to the box node in the scene and displays information about it.
As you work with the node (select it/deselect it, assign modifiers, bind to space warps, assign materials, change controllers,
drag the item in the viewports, etc.), you can monitor the reference messages sent. You recognized them because the use the
#define name from ref.h (for exampleREFMSG_CHANGE) in the upper most window. If you want to clear the message list so you can see what messages are sent for a particular action,
press the Clear Message List button first.
ListBox - Reference Messages Recieved From Target
This upper most list box shows a list of reference messages. The list is blank at first, but once the sphere is moved, it
fills with messages as shown at right.
|