Really nice ideas, BTW!
I think that using obj is a good solution and it can improve things a lot. Also, materials!
I'll be away from my computer until monday night, but in the meantime feel free to improve this script any way you like!
I really like the idea of the mini open source scripts that are created on this forum by 2 or more people. That was the case with the LightOptions script. It was Mike's idea and helped a lot during its development. Then you included it in your UI and it was improved once again.
Cool stuff.
Updated version of Dinos's CVolume.
Now it uses obj file. Performance boost +50~100%
Defaut angle = 3. You can use command line parameter to change it. Example: _CVolume 10 or _CVolume 1
Pilou, forget about obj :)
It's internal script mechanics. The script exports solids to an obj-file, then loads them back as polygonal model, and calculates volume.
The script requires running MoI with elevated privileges to work in Windows default installs. If you can look at how you are writing the objects to avoid that would be good.
I don't know how far you want to take this, but if you had the option to input the cost per unit of the material, the script could display the value of the object. Great for jewelers or folks who have their design 3D printed in metal.
Or pull the material cost in from an XML file, if such a file exists in the folder. Possibilities here for the user to update their material cost XML file off the web, using a script outside MoI of course, to pull in the current price of precious metals.
Taking a step further, associate the material cost XML file with a MoI style. Assign a "silver" Style to a ring, you get the material cost if it's cast in silver (not including waste of course). Assign a "18k gold" Style to a ring, you get the material cost if it's cast in gold.
PS I have put _cvolume 0 : that gives the good result with 2 decimal! 1688, 42 (takes just 26 seconds on my computer ;)
The other values goes very more speedy! :)
_cvolume 2 1688, 34 in 3 seconds
_cvolume 3 1688, 22 in 2 seconds
_cvolume 4 1688, 06 in 1 second
_cvolume 5 1687, 84 in 0 second
_Cvolume Alone is like _cvolume 3 : 1688, 22 in 2 seconds
Improved interface.
Added mass and volume adjustments. Great feature! I like it :)
Click to "Volume" label -> Copy volume value to clipboard
Click to "Mass" label -> Copy mass value to clipboard
Double click to "Volume/Mass Calc." label -> Restore original volume
Hi Max,
I really love what you've done to the volume script :-)
Just one request:
in my original version i was converting cubic mm to cubic cm as this is a lot more meaningful, especially when dealing with 3D printing.
Can you add that feature back? As far as i know no one deals with cubic mm..