Try the INode::GetObjTMAfterWSM method. It returns the world tranformation matrix (row 4 is the actual position) for a node in the given time.
Hi. To disable the modifier on the top of the stack of modifiers for the selected object: $.modifiers[1].enabled = false
I’ve re-read your message and you want to swap a single word (16 bits)?. Then the function should be: fn swapWord n = ( b1 = bit.and n 0xFF b2 = bi…
Hi. You were shifting in the wrong direction when extracting the bytes (you were shifting to the left). Also, when building the long, you had the arg…
Hi. This function should calculate the averaged vertex normal taking into account the smoothing groups. fn getVertexNormal polyObj faceIndex vertexN…
You could take a look to octrees. Each node maintains pointers to each of its 6 neighbours, just what you need.
Ok, tested in MAX9. It doesn’t works with the function you have there, obviously. But if you replace your enableBlocks function with the function I sh…
Yes, it would be easier!.
I think there are two reasons this method could be failing. One is that the window handle (hDlg) you’re passing in isn’t correct, that is, it’s not th…
Hi. Try something like this: void EnableBlocks(HWND hDlg, BOOL enable) { EnableWindow(GetDlgItem(hDlg, IDC_CHECK_X), enable); EnableWindow(GetDlgI…
Yes, that’s right. I’ve modified the script so you can create meshes for an arbitrary number of face triangles (for example it will triangulate a poly…
Go to line 1167 in lscm_backend.cpp and change: for (i=0; i< tmap->FNum(); i++,tf++) to: for (int i=0; i< tmap->FNum(); i++,tf++)
This function will calculate the dimensions of the UVW map modifier, so I guess it does what it does the “Fit” button (or at least something similar)……
Hi. Try this one: fn fnFilter obj = ( for i = 1 to obj.modifiers.count do if classOf obj.modifiers[i] == TurboSmooth do return true false ) …
I have no idea what could be causing that. The only thing you should take care of is if the material is a multi-material (IsMultiType method), in whic…