|
batch importer
|
|
09-08-2018, 04:12 PM
Post: #1
|
|||
|
|||
|
batch importer
I am trying to figure out how to batch import multiple obj and collada files when wings starts up.
I'm new to erlang, and taken a look at the code in: e3d_obj.erl, wings_console.erl, wings_start.erl, wpa.erl, wpc_collada.erl, and wings_plugin.erl. So far i have this code, which loads my obj, but then fails to update the view or show it in the Wings UI. What am i missing? Code: {ok, E3DFile} = e3d_obj:import("/home/username/test.obj").https://github.com/dgud/wings/issues/298 |
|||
|
09-08-2018, 08:31 PM
(This post was last modified: 09-08-2018 08:31 PM by micheus.)
Post: #2
|
||||
|
||||
|
RE: batch importer
I'm not expert, so maybe my suggestion can not to work.
![]() Import will return the new #st{}, then maybe you just need to update it by send that information to the main geometry window who handle most the command messages: Code: ...
|
||||
|
09-08-2018, 09:00 PM
Post: #3
|
|||
|
|||
|
RE: batch importer
actually i'm getting an error from `wings_import:import(E3dFile, wpa:get_state()).`
the error is: Code: ** exception error: no function clause matching |
|||
|
09-08-2018, 09:12 PM
Post: #4
|
||||
|
||||
|
RE: batch importer
Did you already tried to print out the value of St0 in the line bellow?
St0 = wpa:get_state().
|
||||
|
09-08-2018, 09:53 PM
Post: #5
|
|||
|
|||
|
RE: batch importer
printing St0 gives this:
Code: {st, |
|||
|
09-08-2018, 10:58 PM
Post: #6
|
||||
|
||||
|
RE: batch importer
Yeap, it's a invalid (null) #st{}
|
||||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)





@MicheusVieira
MicheusVieira
Micheuss
micheus4wings3d