It looks like you're new here. If you want to get involved, click one of these buttons!
local initpath = self.modelpath or "c:/" local path = application:get("openFileDialog", "Choose|"..initpath.."|Fbx (*.fbx)") -- title|path|extensions if path ~= 0 then self:getFolderPathAndFileName(path) local fbx = self.finalfile local json = fbx:gsub(".fbx", ".json") os.execute("start fbx-conv.exe -f -v -o G3DJ ".."\""..self.finalfolder.."/"..fbx.."\"".." ".."\""..self.finalfolder.."/"..json.."\"") end |
Comments
First I need to ask the user the path to fbx-conv.exe
then I use the path in os.execute:
Viva gideros!
Likes: MoKaLux
My solution (see previous post) is not too bad imho, I keep it this way until I do some more testing. Thanks for your answer
And remember to use addon player to make it work
Likes: MoKaLux