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…
Some tests for comparison (deleteItem() vs collect()): ( local arr = #() local total = 0 fn BuildTestArray = ( seed 0…
An alternative, especially for very big arrays, could be: arr = for node in arr where not CheckUserProp node collect node
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…
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….
edgeCenter = (edgeVert1 + edgeVert2) / 2.0 ( fn GetEdgeCenter node = ( edge = ((polyop.getedgeselection node) as array)[1] …
Not sure if this is what you need, but you can disable the viewports panel redrawing like: ( fn SetViewportsRedraw state = ( …
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…
Does this mean that we can’t rely on the scale property of matrices?
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…
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…
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…
You must select each object before applying the modifier. Just add ‘select obj’ in you Decimate() function, before youcall addModifier().
Does the example I posted work? I just tested it from Max 2010 to 2018 and it does work on my end.
( fn Decimate obj count = ( select obj mdf = prooptimizer() addmodifier obj mdf mdf.calculate = on …