Klvnk
@klvnk
New Member
Joined: Feb 14, 2024
Topics: 50 / Replies: 1212
Reply
RE: 3DSMAX SDK Q: How to save and load INode ?

the usual technique is to maintain any references to scene nodes within a parameter block using the TYPE_INODE_TAB data type

9 years ago
Forum
Reply
RE: MAX SDK. HitRegion

sorry answer to a different question. in what context are you doing it ? a modifier ?

9 years ago
Forum
Reply
RE: Get Mesh or MNMesh of Editable Poly after NURMS subdiv

Object *EditPolyObject::ConvertToType (TimeValue t, Class_ID obtype) sets it’s mnmesh to subdivResult if subdiv is set then calls Object *ret = po…

9 years ago
Forum
Reply
RE: Get Mesh or MNMesh of Editable Poly after NURMS subdiv

PolyObject::GetRenderMesh will return the subdivision mesh

9 years ago
Forum
Reply
RE: Get Mesh or MNMesh of Editable Poly after NURMS subdiv

grab a copy of the mnmesh and run SmoothByCreases on it ? This is an auto-smooth algorithm that allows the developer to specify exactly which edges…

9 years ago
Forum
Reply
RE: Mini-challenge. Get ordered poly edge loops

should be able to use this from EditablePoly source bool CreateCurveFromMeshEdges (MNMesh & mesh, INode *onode, Interface *ip, TSTR & name, b…

9 years ago
Forum
Reply
RE: Prevent modifier collapse?

I ended up keeping all the information in the modifier, and making the modifier non-collapsable as discussed above. What happens when the user delet…

9 years ago
Forum
Reply
RE: Prevent modifier collapse?

find attached a link to a pared down modifier (which is from an export property manager) which shows how to use a modifier to edit appdata attached to…

9 years ago
Forum
Reply
RE: Prevent modifier collapse?

thinking about it, I would probably go for hanging the appdata off the dependent nodes as it’s what your renderer will reference the most anyway. Thes…

9 years ago
Forum
Reply
RE: Prevent modifier collapse?

You could use the modifier as the editor for appdata attached to the base object, so when the stack is collapsed the data is still available to the re…

9 years ago
Forum
Reply
RE: Prevent modifier collapse?

How would collapsing the stack be any different from deleting the modifier ?

9 years ago
Forum
Reply
RE: Need help with Vector stuff (mesh from curve)

lol max can’t do it the way max does it is frenets (matrix3 transforms along the length of the spline) the basic c++ source code can be found in the…

9 years ago
Forum
Reply
RE: Need help with Vector stuff (mesh from curve)

Any ‘clever’ or creative idea as to how to tackle the issue ? don’t feel too bad even the built in max methods don’t handle that situation very well…

9 years ago
Forum
Reply
9 years ago
Forum
Reply
RE: (c++ SDK) problem with _is_collection

try adding def_name (parameter) to the top of the cpp file

9 years ago
Forum
Page 36 / 85