Oh man… your code is now clear like a diamond I learn all days by reading this thread! I like really the structure definition to execute functions. …
stuh505: pos does not need to be a global variable, because it is all within the scope of the function sublevelarray Oh I agree that ‘pos’ does n…
I just tested It with an unfinished array but max crash. But if I modify the line with: if (pos > list.count) then return “)” It works with a bad a…
oh now I understand. It’s so simple … but That isn’t so easy to understand recursive logics. The only thing that I still don’t understand is the out …
What value return this line ? if (pos > list.count) then return the next line ? I acknowledge that I am lost in the code.
stuh505: How do you paste code with indentation? Oh easy. I copy/paste from maxscript editor. I select my script and press # in toolmenu of the p…
I have just found the code recursive fn arrayFromFile array pos = ( newArray=#() while pos<=array.count do ( if ( array[pos]!=”(” and arra…
Ok I restart from the begining. If you help me a bit, I could write an optimized script. First I convert your pseudo code in maxscript. I make some m…
I have just found a solution. fn arrayTransformer array = ( pos=1 startBloc=0 while ( array[pos]!=”)” and pos<=array.count) do ( if array[…
This code is pretty similar to the functions that I have tried. But there are no recursive logic and because of that the array is not yet correct. Te…
I already had this problem With polys, nothing occurs when 3dsmax is not in subselection. And the update occurs only when 3dsmax return in object leve…
Hi loocas It’s just a precision problem. try this: abs(cos 90 – 0)<0.000001 Look at the ’ number literals ’ section for more details
Here is a beginning for your exporter, just the part for assign properties… It’s a macroscript (located in ‘Tools’ category) You see it is very simple…
sorry for my bad english鈥? but You guessed the meaning of my question. I have an object with various modifiers鈥?and with these modifiers, there are s…