-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: command line export #367
Comments
There is a erlang-script (wings_convert) in the src dir in src distribution that does that,
|
Awesome! Thanks. Is there a way to export a named object from the wings file? |
That may be more problematic don't remember what commands there are, will check but I'm on "vacation" |
Yeah that worked, see/test https://gist.github.com/dgud/bc4906d066435180ec89a2913271466f wings_convert was a hack for my own usage many years ago, and when wings was re-rewritten the Things to improve:
I'll leave this issue open, until I have had time to look at the new issues. |
Thanks for that. When I try to run it, I get this error:
|
Oh that's a new one :-/ Also an upgrade to the latest wings might solve that, maybe something that have been fixed along the way :-) Otherwise, can you run 'convert_wings' with '-v' flag (for verbose/debugging), I would like to see the timing of when that happend. (and email me directly). |
wings 2.2.4 crashes immediately with the script.
|
Hmm the wings:start() should not be an undefined function.
I'll make a complete test release for you, I've made some other changes as
well. But away from computer this week.
Do you build from src/github or use the prebuilt ubuntu release?
Den tis 30 juli 2019 04:19Bram Stolk <notifications@github.com> skrev:
… wings 2.2.4 crashes immediately with the script.
***@***.***:~/src/Train/Assets/buildings$ export WINGS_DIR=~/wings-2.2.4/lib/wings-2.2.4/
***@***.***:~/src/Train/Assets/buildings$ ./wings_convert -v -f obj --name launchtower buildings.wings
escript: exception error: undefined function wings:start/0
in function wings_convert__escript__1564__453114__434947__3:main/1 (./wings_convert, line 39)
in call from escript:run/2 (escript.erl, line 759)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#367?email_source=notifications&email_token=AAATYKNCNYTPLXE7HCM5EGLQB6QKRA5CNFSM4HEUCP62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3CRI5Y#issuecomment-516232311>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAATYKO3P43RT7JY2XFPMUDQB6QKRANCNFSM4HEUCP6Q>
.
|
This is the pre-built one. Lemme try to build from github... |
Thanks. Works when built from source! Sorry for all the nagging, but... Because if I export via GUI, I always have my "Swap Y/Z" set to true, as a default. |
No it doesn't I will have to add those as script options.
Den tis 30 juli 2019 17:40Bram Stolk <notifications@github.com> skrev:
… Thanks. Works when built from source!
Sorry for all the nagging, but...
Does the wings_convert consider the "Export Options" settings?
Because if I export via GUI, I always have my "Swap Y/Z" set to true, as a
default.
And it seems that the wings_convert script ignores this setting?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#367?email_source=notifications&email_token=AAATYKI2MZ3IQFHBKFUSBO3QCBOIFA5CNFSM4HEUCP62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3EMUMY#issuecomment-516475443>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAATYKOBFU4BB33C3AFG2HDQCBOIFANCNFSM4HEUCP6Q>
.
|
Did more fixes and support of swap yz (depends of export format) and pushed to maint and master branch. |
To improve workflow, it would be nice to have a command line interface to wings3d, that enables you to export a named object in a .wings file to another format, like wavefront obj.
something like:
$ wings export -input=foo.wings -name=castle -output=out.obj
Which can save a lot of clicks in the UI, and enables you to use wings export in your data pipeline.
Kinda similar to how inkscape lets you generate .png files without the UI.
The text was updated successfully, but these errors were encountered: