Exporting multiple objects to stl

Next
 From:  r2d3
6623.1 
I'm still new to MOI but already fall in love with it and so i'm proud to give my first script to the community ;-)

--------
script: /* Saves the selected objects as stl to that path - please edit*/ var pa = "/Users/yourUserame/Documents/ultimaker/";var ex = ".stl";var names = new Array();var nam = new Array();var fns = new Array();var nfn="tttt";var objs = moi.geometryDatabase.getSelectedObjects();for ( var i = 0;i < objs.length;++i ) { var obj = objs.item(i);if ( obj.name != "" ) {names[obj.name] = true;nam[obj.name] = obj.name;} }moi.geometryDatabase.deselectAll();objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.name != '' && names[obj.name] ) { obj.hidden = false; obj.selected = true; moi.view.resetAll(); for ( var d = 0; d < fns.length; ++d ) { var obt = fns[d]; if(obt == nam[obj.name]){var child = true;}else{var child = false;} } if (child) { var nfn = nam[obj.name] + '_' + i;}else{var nfn = nam[obj.name];}fns.push(nam[obj.name]);moi.geometryDatabase.fileExport( pa+nfn+ex );moi.geometryDatabase.deselectAll(); } }
--------

i know, its still raw but i use it all day to export my ideas to ultimaker..2... ;-)

perhaps someone can use it and PHERHAPS SOMEONE CAN MAKE IT FINE!

Greeets from the swiss alps
Ralf Naumann

EDITED: 11 Apr 2014 by R2D3

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6623.2 In reply to 6623.1 
Hi Ralf, thanks for posting your script!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6623.3 
What is Ultimaker 2 ?
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6623.4 In reply to 6623.3 
Hi Pilou, it's a 3D printer: https://www.ultimaker.com/pages/our-printers

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
6623.5 In reply to 6623.4 
Thx for the info! I had believed that was a game!
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  r2d3
6623.6 In reply to 6623.5 
The ultimaker2 is an addictive game with 3d haptics...

;-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All