gazybara
@gazybara
New Member
Joined: Feb 14, 2024
Topics: 36 / Replies: 998
Reply
RE: Layermanager problem

The last line returns only Box object which is good.

11 years ago
Forum
Reply
RE: Layermanager problem

But you are requested this output??? so theoretically a scene where there are 5 meshes in layer 1 and 2 points in layer 2 I should get an array like…

11 years ago
Forum
Reply
RE: Layermanager problem

denisT: in different places from different people i saw: nodes = refs.dependentNodes layer as method to get layer nodes. this is not right! layer …

11 years ago
Forum
Reply
RE: Layermanager problem

Shorter version fn collectLayerNodes superClasses: = if (cnt = LayerManager.count-1) > -1 do ( local getLayByName = LayerManager.getLayerFromName…

11 years ago
Forum
Reply
RE: Layermanager problem

In this update fn will exclude also layers which contains not specified classes. Question : are you plan to consider more then geometry and helper cal…

11 years ago
Forum
Reply
RE: Layermanager problem

I used “case of” statement in case you want to expand fn by adding more classes (ei.superclasses). Also this fn will exclude all empty layers

11 years ago
Forum
Reply
RE: Layermanager problem

Try this one fn collectLayerNodes = if (cnt = LayerManager.count-1) > -1 do ( local getLayByName = LayerManager.getLayerFromName local getLay…

11 years ago
Forum
Reply
RE: Super simple, how to create splines from selection (in array)?

denisT: i add edit_normals modifier just to show that function works with polymeshobject as well as with editable_poly interface (and structure) fu…

11 years ago
Forum
Reply
RE: Super simple, how to create splines from selection (in array)?

One more thing You showed us several times that is not good to call interface fn’s from “loop” and that is better do delete or select nodes at once an…

11 years ago
Forum
Reply
RE: Super simple, how to create splines from selection (in array)?

denisT: it might be improved. first: execute (“select $….”) this is not a good solution.. also it’s possible to make a function that will work w…

11 years ago
Forum
Reply
RE: Super simple, how to create splines from selection (in array)?

One more version I added two arguments: “shapeName” – you can add custom name for newley created shapes “deleteAllEPloy” – if true (on) then all Edita…

11 years ago
Forum
Reply
RE: Super simple, how to create splines from selection (in array)?

denisT: what language are you talking? every programming language has it’s own dress code. When I use phone and walk, I write code like that.:sur…

11 years ago
Forum
Reply
RE: Super simple, how to create splines from selection (in array)?

fn extractBorderEdges = if (object = getcurrentselection()) != #() do ( openedges = polyop.getopenedges ; shape = polyop.createshape delete (for i …

11 years ago
Forum
Reply
RE: paste edit poly modifier not working in maxscript?

You can use “before” argument in addModifier fn Example cube = Box() for mody in #((Bend()),(Melt()),(UVWmap()),(Relax())) do addmodifier cube mody …

11 years ago
Forum
Page 8 / 69