| Blender Pricing Script [message #3513] Wed, 25 March 2009 17:30 UTC |
 |
loonsbury Messages: 64 Registered: January 2009 |
Member |
|
|
Inspired somewhat by the 3DS Max utility, I present the Blender calculator for Shapeways costs (attachment).
Requires Blender v2.48a or later
v0.7 (8/28/2009):
Added Dyed WSF and Polished Stainless materials
WSF will add $1.50 to calculated price regardless of size, so don't worry about the price per cm3 not multiplying into the total
Similarly, dyed WSF will add $4 to calculated price
Changed WSF pricing to $1.50/cm3
An issue may arise when going from 0.6 to 0.7 with saved settings because of extra buttons... if something looks "wonky" when it loads, change to your preferred settings and exit, then run the script again.
v0.6 (4/28/2009):
Fixed a scaling/translation bug
v0.5 (4/23/2009):
Better script cleanup
Changed GUI to single column, contracting sections
Added Blender registry entries for persistent settings
Added changeable material prices
Added manifold check
Added polygon count (current and triangulated)
Added selection dimensions
Fixed Blender unit scale errors: exponent was wrong, and reversed between millimetres and metres
Slightly better support for scaling and translation calculation
v0.4 (3/30/2009):
Some script cleanup
Using popup GUI form rather than script window. The new form should fit on screen more reliably
v0.3 (3/27/2009):
Fixed resizing calculation bug
v0.2:
Added GUI with changeable options, VAT and markup calculation, and resizing calculation
Added quad support in addition to tris
Scaling applied without manual application
v0.1:
Basic calculation sent to console window
Preview:

To install: extract the .py file to the base blender working directory (this may be your installation path, AppData, %HOME%, or something else on another O/S. Then start up Blender, it should be in the object->scripts menu.
It will generally go to 1 of 2 places in Windows
Example 1:
C:\Program Files\Blender Foundation\Blender\.blender\scripts\
Example 2:
Vista:
C:\Users\username\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
XP:
C:\Documents And Settings\username\Application Data\Blender Foundation\Blender\.blender\scripts\
To use: Select the objects you want to calculate, and run the script as shown here:

This will display the GUI which should be self-explanatory. Let me know if anything could be explained easier.
I'm working on a normal check and trying to figure out a wallthickness calculation, so I may update with that in a few weeks.
I'll appreciate feedback; especially if something doesn't work.
[Updated on: Fri, 28 August 2009 17:46 UTC]
|
|
|
|
|
| Re: Blender Pricing Script [message #3565 is a reply to message #3513 ] Fri, 27 March 2009 17:13 UTC |
  |
loonsbury Messages: 64 Registered: January 2009 |
Member |
|
|
|
:edit: Updated to v0.3
[Updated on: Sun, 29 March 2009 00:11 UTC]
|
|
|
|
|
|
|
|
|
|
| Re: Blender Pricing Script [message #3612 is a reply to message #3611 ] Sun, 29 March 2009 00:12 UTC |
  |
loonsbury Messages: 64 Registered: January 2009 |
Member |
|
|
Updated to v0.3, notes in OP
[Updated on: Sun, 29 March 2009 00:13 UTC]
|
|
|
|
|
| Re: Blender Pricing Script [message #3874 is a reply to message #3513 ] Fri, 10 April 2009 02:26 UTC |
  |
 |
johngomm Messages: 13 Registered: February 2009 |
Junior Member |
|
|
Hi there,
I'm a little confused about the m, cm and mm buttons. They seem to operate the opposite way to how I expected. For example, if my model has the dimensions 50 x 50 x 50 in the properties, I expect the mm button to calculate price for a 50mm x 50mm x 50mm print and the cm button to be a 50 cm^3 print, but the price goes down, not up. I think it would be helpful to be able to see the xyz dimensions of the model in the applet window as a sanity check. Am I looking at this the wrong way?
Also, while I'm at it, it would be helpful to support user input of material cost so when Shapeways drops the price or includes a new material, we can input the current value.
FYI, it didn't run properly on my old version of Blender (early 2008) so I had to upgrade. And it took me a while to find the script in the scripts->objects sub menu, so mentioning that in the posts might save someone else some hunting.
Thanks for all your work on this.
John Gomm
|
|
|
|
| Re: Blender Pricing Script [message #3876 is a reply to message #3874 ] Fri, 10 April 2009 03:01 UTC |
  |
loonsbury Messages: 64 Registered: January 2009 |
Member |
|
|
| johngomm wrote on Fri, 10 April 2009 02:26 | For example, if my model has the dimensions 50 x 50 x 50 in the properties, I expect the mm button to calculate price for a 50mm x 50mm x 50mm print and the cm button to be a 50 cm^3 print, but the price goes down, not up.
|
Not sure if I'm understanding right, when you go from mm to cm, the price goes down? I just tested it on my installation and it worked right, maybe I'm overlooking something.
| johngomm wrote on Fri, 10 April 2009 02:26 | I think it would be helpful to be able to see the xyz dimensions of the model in the applet window as a sanity check.
Also, while I'm at it, it would be helpful to support user input of material cost so when Shapeways drops the price or includes a new material, we can input the current value.
|
Good ideas, these will be in the next revision
| johngomm wrote on Fri, 10 April 2009 02:26 | FYI, it didn't run properly on my old version of Blender (early 2008) so I had to upgrade. And it took me a while to find the script in the scripts->objects sub menu, so mentioning that in the posts might save someone else some hunting.
|
What version of blender had the problem? I'll also try to be more clear about the location of the script.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Blender Pricing Script [message #5052 is a reply to message #3513 ] Sat, 27 June 2009 20:07 UTC |
  |
iguffick Messages: 38 Registered: April 2009 |
Member |
|
|
Heiner,
I suspect your problem is that when you get to the C:\Users\username directory, you cannot see the AppData directory?
If that is the problem you are having, it is because the AppData directory is a hidden system directory that is not normally shown by File Explorer.
There are two solutions, you could change the view properties to display hidden and system files.
Or you could simply type C:\Users\username\AppData into the address bar of File Manager.
You would then be able to see the remaining directory choices of 'Roaming' -> 'Blender Foundation' -> 'Blender'.
I hope that helps.
Regards,
Ian.
[Updated on: Sat, 27 June 2009 20:08 UTC]
|
|
|
|
|
|
|
|
| Re: Blender Pricing Script [message #8708 is a reply to message #7637 ] Sun, 03 January 2010 21:06 UTC |
  |
Eric Finley Messages: 16 Registered: August 2009 |
Junior Member |
|
|
For reference:
I've contacted Loonsbury and (with his blessing) have been working on integrating my Wall Thickness script into the framework of his excellent Volume/Cost/Manifold script. I'm calling the merged script "Shapeways Tools" for now, and am still working out the bugs in the Wall Thickness portion of the script, but I have in the meanwhile fixed the registry issues and cleaned things up a bit from where Loonsbury left it - as he says, there are clear signs of someone who was done with this for now, and didn't quite finish polishing it before he went home. 
I hope to be able to post the updated script within a matter of a couple of weeks, and turn the community loose on it at that point.
If anyone wants to either experiment and/or go looking at MSDSes and so forth for the material densities, then I could easily add in a Mass output together with the volume display, while I'm in there working with it. Just PM me the numbers, and please let me know whether you got those from literature or experimentally. It's not something that I'd care about much for my own work, but I can see how it would be a valuable addition to the program for some.
|
|
|
| Re: Blender Pricing Script [message #8791 is a reply to message #8708 ] Fri, 08 January 2010 03:58 UTC |
 |
Eric Finley Messages: 16 Registered: August 2009 |
Junior Member |
|
|
|
Note - the script I describe in the post above this one is finished, and has been posted to the 3D Design forum here. You can go straight to that thread with this link. Enjoy!
|
|
|