EXPORT OBJECTS as separate Files

Next
 From:  AlexPolo
10752.1 
Hi All - not sure if a script exists to export named objects as separate files.
If objects are curves option for DXF / AI / SVG other 2d Outputs.
If Objects are surfaces options for OBJ / STEP/ STL other 3d Outputs.




  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
10752.2 In reply to 10752.1 
  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
10752.3 In reply to 10752.1 
Hi Alex, also one piece that is not very well specified with this kind of a thing is if you want the name to come from an object name instead of picking it with the file dialog, then what directory should be used to write the files into?

Those other scripts probably have the output directory hard coded in the script. So to use them take a look at the script and see if it has a directory name at the top of it that you should modify to match an actual directory you have on your machine.

- 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:  AlexPolo
10752.4 
Hi Michael,

Many thanks for links and your amazing response knowledge in being able to draw deep from the archives sharp memory ability far greater than noob search. All those scripts are useful but missing DXF output which for part management like laser cutting essential. Would it be possible to have a super tool which allow you to pick the format of export like manual method. I know this is a tall order - one script for DXF only would be great.




Always amazed buy your customer service.
thanks
Alex.
Attachments:

  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
10752.5 In reply to 10752.4 
Hi Alex, you can convert that into using DXF format by editing one line of the script in a text editor. Look for the line that adds the file extension and modify that.

On one version it's on line number 52 and looks like this:

code:
    var filename = g_dirname + name + '.fbx';


Change the file extension from '.fbx' to be '.dxf' instead like this:

code:
    var filename = g_dirname + name + '.dxf';


If you can't get that to work please post the particular script you're using (there are a couple versions out there I think) and I'll take a look at what's wrong.


> Would it be possible to have a super tool which allow you to pick the format of export like manual method.

That could be possible but it would be good to know if the current script is doing the job that you need.


- 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
 From:  AlexPolo
10752.6 
thanks will give it a go.
will let you know how I go.
  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