Go Back   AC3D Forums > Resources > AC3D Scripts and Mods
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 20th March 2007, 09:45 AM   #1
jmaupay
Junior Member
Junior member
 
Join Date: Mar 2007
Posts: 1
Default SCRIPT: to batch export from dos

Here is my small contribution (with help of Andy).
I use that tcl script (cf. attached file) to convert .ac files from a dos command window.

Here is the header of that script for usage information:
# Exporter to batch ac3d.exe in a dos shell and converter a file to a new format.
# All AC3D export plugins are available.
#
# Installation: copy that file in the "scripts" directory of AC3D.
# That file must have the .tcl extension
#
# Usage: In a command window (cmd.exe):
# C:\> set AC3D_FILE_IN=<your input file>.ac
# C:\> set AC3D_FILE_OUT=<your output file>.yourextention
# C:\> set AC3D_FILE_CONVERTER=<the output converter to use>
# C:\> ac3d.exe
#
# Example: Convert a FileIn.ac to a FileOut.obj
# C:\> set AC3D_FILE_IN= D:\InputDir\FileIn.ac
# C:\> set AC3D_FILE_OUT= D:\OutputDir\FileOut.obj
# C:\> set AC3D_FILE_CONVERTER=OBJ
# C:\> ac3d.exe
#
# Remarqs:
# - The commands could be placed in a .bat file
# - Tested on AC3D 5.
# - AC3D_FILE_CONVERTER must contain a valid plugin name.
# - if AC3D_FILE_CONVERTER is not set, the list of available converters is displayed
# - an exporter plugin must be registered using the new ac_register_file_exporter, old method don't work
Attached Files
File Type: tcl exporter.tcl (2.8 KB, 527 views)

Last edited by jmaupay; 20th March 2007 at 01:40 PM.
jmaupay is offline   Reply With Quote
Old 1st November 2007, 04:57 AM   #2
bonkersdeluxe
Junior Member
Junior member
 
Join Date: Nov 2007
Posts: 1
Question Re: SCRIPT: to batch export in a .bat file

Hi jmaupay


Thanks for your export script. It works fine.
But can you tell me why the direct x exporter is not displayed in the "AC3D_FILE_CONVERTER" list? OBJ,X3D,QUAKEMD2,etc are displayed but directx and many more not.
How can i use the directx export with your script?

Thank you

Sincerely Bonkersdeluxe
bonkersdeluxe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 01:19 PM.


AC3D Forum
(C) Inivis Limited 2020