3ds Max 2018, SDK Viewport GetHit function problem

3ds Max 2018, SDK Viewport GetHit function problem

Anonymous
Not applicable
437 Views
1 Reply
Message 1 of 2

3ds Max 2018, SDK Viewport GetHit function problem

Anonymous
Not applicable

For select some objects in my plugin I use a code like this:

void selectnodes(IObjParam *ip, IPoint2 *p, Tab<INode *> &nodes){
ViewExp *vpt = &ip->GetActiveViewExp(); vpt->ClearHitList(); ip->BoxPickNode(vpt, p, true); int nodes_count = vpt->HitCount(); for (int i=0; i<nodes_count; i++){ INode *node=vpt->GetHit(i); if (node) nodes.Append(node); } }

3ds max 2018 crashed when i>0 (I try to select more then one object)

vpt->GetHit(i);
 

on previouse version of 3ds max it work rigth.

how I can fix it?

0 Likes
438 Views
1 Reply
Reply (1)
Message 2 of 2

istan
Advisor
Advisor

I also had to change something around the hittest but I don't remember what. But I think it is documented in the maxsdk help.

0 Likes