PolyTools3D
@polytools3d
New Member
Joined: Feb 14, 2024
Topics: 17 / Replies: 1674
Reply
RE: remoove nodes matching some defined condition from an array

Yes it is. In the test collect() basically goes from 2 to 45 times faster than deleting items from the array. If there are no items matching the sear…

7 years ago
Forum
Reply
RE: remoove nodes matching some defined condition from an array

Some tests for comparison (deleteItem() vs collect()): ( local arr = #() local total = 0 fn BuildTestArray = ( seed 0…

7 years ago
Forum
Reply
RE: remoove nodes matching some defined condition from an array

An alternative, especially for very big arrays, could be: arr = for node in arr where not CheckUserProp node collect node

7 years ago
Forum
Reply
RE: time playanimation() multiple times.

Here is another version that does not require the fileIn() method and has no global variables. It’s also more flexible to be used from another rollou…

7 years ago
Forum
Reply
RE: time playanimation() multiple times.

I don’t know what kind of animations you have to play, but perhaps you could also build a custom player instead of using the playAnimation() function….

7 years ago
Forum
Reply
RE: Get center position of an edge.

edgeCenter = (edgeVert1 + edgeVert2) / 2.0 ( fn GetEdgeCenter node = ( edge = ((polyop.getedgeselection node) as array)[1] …

7 years ago
Forum
Reply
RE: Disable Scene Redraw / Focus Jumping

Not sure if this is what you need, but you can disable the viewports panel redrawing like: ( fn SetViewportsRedraw state = ( …

7 years ago
Forum
Reply
RE: Getting Negative Scale from Matrix3

I see. I was concerned because I have an old tool that splits an algorithm based on the scale of the object But it was surprising that I never had a p…

7 years ago
Forum
Reply
RE: Getting Negative Scale from Matrix3

Does this mean that we can’t rely on the scale property of matrices?

7 years ago
Forum
Reply
RE: ProOptimizer.VertexCount not updating

You could try with (classof $) instead of redrawing. Also turn off the whole app redrawing, hide the nodes. Selecting the object also does take a lot…

7 years ago
Forum
Reply
RE: ProOptimizer.VertexCount not updating

Perhaps someone with more experience using the Pro Optimizer modifier can help you with this. It seems the modifier does not hold the data for more th…

7 years ago
Forum
Reply
RE: ProOptimizer.VertexCount not updating

Your assumption is not incorrect. There are two methods for adding a modifier to an object and both are valid. The problem is that some parameters, i…

7 years ago
Forum
Reply
RE: ProOptimizer.VertexCount not updating

You must select each object before applying the modifier. Just add ‘select obj’ in you Decimate() function, before youcall addModifier().

7 years ago
Forum
Reply
RE: ProOptimizer.VertexCount not updating

Does the example I posted work? I just tested it from Max 2010 to 2018 and it does work on my end.

7 years ago
Forum
Reply
RE: ProOptimizer.VertexCount not updating

( fn Decimate obj count = ( select obj mdf = prooptimizer() addmodifier obj mdf mdf.calculate = on …

7 years ago
Forum
Page 25 / 113