Hi Hans,
Great! I look forward to learning more and taking a closer look when you send the next file.
I get the general gist, and, unless I completely misunderstand something fundamental in MoI's script-ability, the task doesn't appear impossible.
As I mentioned earlier, I'm a novice programmer, so any advice from the other script guru's about best approach to this problem would be much appreciated. And if anyone else wants to jump on this - please go ahead - I'm sure to be left in the dust. :)
I'd equally be agreeable to collaborating on this via github or any other code-collaboration site.
To get the ball rolling, I envisage doing something along the lines of:
for each line object in the geometry database, do:
get length;
get xyz of start
get xyz of end
Sort data? By what criteria??
Export to text file.
I guess at a later stage it would be advantageous to be able to deconstruct a solid into a mesh and then export to the txt file, in much the same way as the STL and other polygonal export engines already function? Could Max's scripts be utilised perhaps - Max?
Cheers,
Hamish
|