simlu / voxelshop

This is the official repositiory for VoxelShop
https://blackflux.com/node/11
Apache License 2.0
350 stars 66 forks source link

Mass File Conversion #38

Open simlu opened 8 years ago

simlu commented 8 years ago

Support scripts for mass file conversion: Console command?

Requested here: https://blackflux.com/forums/viewtopic.php?f=9&t=63

MrTopom commented 8 years ago

I'll have to create multiple objects and have them exported to be then integrated in Unity. So would be better to launch one time and have all covered. If there are some improvement in export algorithm, or any model evolution, I'll be able to generate all, being sure not to forget some. Console command is the best. But need also parameters to specify the export action with all params (format, properties, ...). Could be in command params or have a config file defining those params and the directory to take models from. As it is an important usage, people could prepare the file for future use.

simlu commented 8 years ago

This will be implemented after the *.vsd file structure is changed.

simlu commented 8 years ago

@MrTopom I'm not decided yet if I want a dialog for this or a command line option. We'll see when the time comes!

mcintyre321 commented 8 years ago

Command line would be awesome - I could set up a gulp task to auto-export on save!

MrTopom commented 8 years ago

I do not want a dialog or a dialog to make a config file. Then starting VoxelShop with the file as script file to generate things.

What mcintyre321 proposed is also great. We could have a hook on save command and make automatically an export.

Sample:

  1. Creating a model to be used in Unity
  2. Add a hook to save command to make the export in desired format and desired location with optimisation params.
  3. Each time the file is saved, the hook is done then the object always up to date in the Unity directory

In any case, when the procedural things will work (and I need it) I want to be able to put the conversions of all my models in the prod process.

Procedural description + Mass export --> VoxelShop procedural.text export.json ---> File in Unity Assets

I put JSON file but format could be any readable one (JSON, XML, YAML)

simlu commented 8 years ago

I like having a JSON file that defines configurations. TBD how that will exactly work.