HalfVector
@halfvector
New Member
Joined: Feb 15, 2024
Topics: 3 / Replies: 189
Reply
RE: Getting position over time

Try the INode::GetObjTMAfterWSM method. It returns the world tranformation matrix (row 4 is the actual position) for a node in the given time.

18 years ago
Forum
Reply
RE: noob question

Hi. To disable the modifier on the top of the stack of modifiers for the selected object: $.modifiers[1].enabled = false

18 years ago
Forum
Reply
RE: longswap ?

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…

18 years ago
Forum
Reply
RE: longswap ?

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…

18 years ago
Forum
Reply
RE: Averaging vertex normals (by smoothing group)

Hi. This function should calculate the averaged vertex normal taking into account the smoothing groups. fn getVertexNormal polyObj faceIndex vertexN…

18 years ago
Forum
Reply
RE: Find imediate neighbouring objects

You could take a look to octrees. Each node maintains pointers to each of its 6 neighbours, just what you need.

18 years ago
Forum
Reply
RE: Disabling group of CustonControls

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…

18 years ago
Forum
Reply
RE: Disabling group of CustonControls

Yes, it would be easier!.

18 years ago
Forum
Reply
RE: Disabling group of CustonControls

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…

18 years ago
Forum
Reply
RE: Disabling group of CustonControls

Hi. Try something like this: void EnableBlocks(HWND hDlg, BOOL enable) { EnableWindow(GetDlgItem(hDlg, IDC_CHECK_X), enable); EnableWindow(GetDlgI…

18 years ago
Forum
Reply
RE: Creating mesh faces

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…

18 years ago
Forum
Reply
RE: Building an x64 plugin in Visual Studio

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++)

18 years ago
Forum
Reply
RE: UVWmap modifier & fit

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)……

18 years ago
Forum
Reply
RE: function help…

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 ) …

18 years ago
Forum
Reply
RE: How do I access a material's diffuse color in 3DXI?

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…

18 years ago
Forum
Page 2 / 13