I’m implementing a debug feature for one of my plugins,
the issue I’m having though is drawing the actual lines in the viewport.
I do ‘step’ the timeline frame-by-frame, and I draw on top of the viewport at the end of every step. But it does not seem to show anything at all.
I’m writing the plugin for 3dsmax 2014.
I know maxscript has the same draw function, but I’m trying to avoid piping the data into maxscript and draw it with that, but as last attempt I might have to do that.
The code is as simple as this:
(All though the values are from variables, this example has a hardcoded value to test with)
Point3 v[3];
v[0] = Point3((0.0f, 0.0f, 0.0f);
v[1] = Point3(100.0f, 100.0f, 100.0f);
GetCOREInterface12()->GetActiveViewExp().getGW()->polyline(2, v, NULL, NULL, FALSE, NULL);
More info on the function:
http://docs.autodesk.com/3DSMAX/15/ENU/3ds-Max-SDK-Programmer-Guide/cpp_ref/class_graphics_window.html#ad2e9641e5e3206e1f13d540798a5bfe3
thanks!



