denisT
@denist
New Member
Joined: Feb 14, 2024
Topics: 218 / Replies: 11426
Reply
RE: Align UV script optimizations

the problem that is the Unwrap methods are slow… for example my c++ SDK implementation of the same task is: count:640 time:10 heap:54120L but we can …

2 years ago
Forum
Reply
RE: Align UV script optimizations

we need a test scene to do correct performance tests… I suggest this: modi = ( max create mode delete objects sp = geosphere name:”test_mesh” seg…

2 years ago
Forum
Reply
RE: Align UV script optimizations

Serejah: getSelVert = uv.unwrap.getSelectedVertices this no longer helps in 2019+ versions. In early versions this was mostly a memory issue whic…

2 years ago
Forum
Reply
RE: Vector projection onto another vector

/*********************** MATH *********************/ fn projectPoint2Vec a b p = ( t = dot (normalize (b – a)) (normalize (p – a)) c += normalize (…

2 years ago
Forum
Reply
RE: A simple question

your code seems correct to me…maybe it needs some updating. I do ComputeBezPoints for all Spline3Ds, and do InvalidateGeomCache for SplineShape object…

2 years ago
Forum
Reply
RE: A simple question

CanUndo does exactly what it says. It is an option to make the attach operation undoable or not. Because the Undo Restore entry for attaching a spline…

2 years ago
Forum
Reply
RE: A simple question

It depends on what you want to get. But usually we expect the end result to look exactly the same as everything looked before attaching. So, yes, we h…

2 years ago
Forum
Reply
RE: Matrix transformation

There is no easier way if you want to do it “like in the SDK” (in your case the .net approach is used). MaxScript has several contexts to help you get…

2 years ago
Forum
Reply
RE: Problem with node in layer selection

951polo… what you’re asking is very simple, but… I’ll be honest with you, I don’t feel like helping you at all because you’re not doing what I’m askin…

2 years ago
Forum
Reply
RE: Problem with node in layer selection

Groups, layers, nodes, hidden, selected, random, exact, name, pattern… you’ve got me completely confused. Can you tell exactly what you need? This is …

2 years ago
Forum
Reply
RE: Problem with node in layer selection

I think that the most correct method would be to collect all the nodes in one list from different (specified) layers and select them one by one in ran…

2 years ago
Forum
Reply
RE: Function to grow directionally

Another way is to do the growing/shrinking yourself. You can find all neighbors for selected vertices. They are “growth candidates”… but we can only f…

2 years ago
Forum
Reply
RE: Function to grow directionally

here is how I could get bbox : fn getSkinVertSelectionBBox sk: node: = ( if sk == unsupplied do sk = modpanel.getcurrentobject() if iskindof sk…

2 years ago
Forum
Reply
RE: Function to grow directionally

in general, the idea is quite simple… you must first find the bounding box of current skin vertex selection, and then make a standard grow… after tha…

2 years ago
Forum
Reply
RE: Duplicated mapname in different location

the entire executable part is commented out. you also need to run the commented lines

2 years ago
Forum
Page 13 / 777