MrGroove Posted September 18, 2018 Share Posted September 18, 2018 Hi, is it possible to get the mtlib-filename after loading an obj-file? Best Quote Link to comment Share on other sites More sharing options...
trevordev Posted September 18, 2018 Share Posted September 18, 2018 @bghgary do you know the answer to this? Quote Link to comment Share on other sites More sharing options...
bghgary Posted September 18, 2018 Share Posted September 18, 2018 I don't know this code well, but it does not look like this is currently possible. @MrGroove What are you planning on doing with the filename? Quote Link to comment Share on other sites More sharing options...
MrGroove Posted September 18, 2018 Author Share Posted September 18, 2018 in Babylon.OBJ-Exporter I have to set the matlibname before exporting. my plan was to "extract" the correct name from the loaded obj. Quote Link to comment Share on other sites More sharing options...
bghgary Posted September 18, 2018 Share Posted September 18, 2018 It looks like the name of the Babylon material created is retrieved from inside the mtl file from the "newmtl" keyword. Can you use that as the filename when you export or does it have to roundtrip for some reason? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.