Klvnk
@klvnk
New Member
Joined: Feb 14, 2024
Topics: 50 / Replies: 1212
Reply
RE: [SDK] Geometry object with proxy helper/shape/icon?

if it’s using simpleobject2 as the basis then you overide the display (and hittest) like this int myobject::Display(TimeValue t, INode *inode, ViewEx…

7 years ago
Forum
Reply
RE: How to get the four minimum values index of array

i’d probably do it with an index sort ( fn comparefn a b values: = ( va = values[a]; vb = values[b]; if va < vb then -1 else if va >…

7 years ago
Forum
Reply
RE: [SDK] Is there any way to extract mesh drawn by RedrawViewsCallback?

You could never hide it from anyone with a bit of knowledge and the determination to find it, I’m pretty sure I could find any mesh structure in max’s…

7 years ago
Forum
Reply
RE: [SDK] Is there any way to extract mesh drawn by RedrawViewsCallback?

that would just crash max as ConvertToType doesn’t return a valid object.

7 years ago
Forum
Reply
RE: [SDK] Is there any way to extract mesh drawn by RedrawViewsCallback?

it can’t be snapshotted as it can’t be converted to mesh. Like wise with any exporter it would need to convert it to a trimesh first before it’s expor…

7 years ago
Forum
Reply
RE: [SDK] Is there any way to extract mesh drawn by RedrawViewsCallback?

try MyObject::IsRenderable() { return FALSE; } and MyObject::ConvertToType(TimeValue t, Class_ID objtype) { return NULL; } oh and MyObject::CanCo…

7 years ago
Forum
Reply
RE: How to get self node in a scripted object?

use the on attachToNode event local thisnode = undefined; on attachtoNode n do thisnode = n; on detachedFromNode n do thisnode = undefined; then …

7 years ago
Forum
Reply
RE: Achieve the same rotation in max as in openGL

in our exporter we work to the following both are right handed max X axis goes right Y Axis goes in Z Axis goes up U Tex axis is left V Tex axis is…

7 years ago
Forum
Reply
RE: Multi-deletion on TYPE_NODELISTBOX (C++ API)

think i looked into this a while back and decided it was easier (and looks a whole lot better) to implement my own Node list using the ListView window…

7 years ago
Forum
Reply
RE: Set and get rotation of node as eulerAngles

probably because theres more than one “solution” to the net rotation e.g. rotation xyz gives the same net result as rotation uvw even though they hav…

7 years ago
Forum
Reply
RE: gw.setColor not working?

move the setcolor above the polyline line call ? you may also need to make a call to setrndlimits to get the vertex colors to work in the polyline r…

7 years ago
Forum
Reply
RE: Using axis tripad in own helper plugin

plugin Helper tripod_helper name:”tripod_helper” classID:#(0x597143dd, 0x51733211) category:”Standard” extends:dummy replaceUI:true; ( local las…

7 years ago
Forum
Reply
RE: Using axis tripad in own helper plugin

i doubt it, this works fine too plugin Helper point_helper name:”point_helper” classID:#(0x55331391, 0x481550e6) category:”Standard” extends:poin…

7 years ago
Forum
Reply
RE: Using axis tripad in own helper plugin

works for me ? plugin Helper point_helper name:”point_helper” classID:#(0x55331391, 0x481550e6) category:”Standard” extends:point replaceUI:true…

7 years ago
Forum
Reply
RE: Using axis tripad in own helper plugin

static void DrawAnAxis(GraphicsWindow* gw, TCHAR* label, Point3& axis, bool z) { Point3 v1(axis * 0.9f), v2((z ? Point3(axis.x,axis.z,-axis.y) : …

7 years ago
Forum
Page 25 / 85