Material import
-
Hi all,
Is it possible in a Ruby script to import in a model a material through its SKM file ? -
Thanks guys.
Interesting but it will be too complicated to implement in my multi-layers wall tool.
What I wanted to do is to re-create materials (associated with wall styles) if they were not present in the model in which you import wall styles.
Regards, -
A .skm file is really a .zip file with another suffix. In a convoluted way you could copy it to the temp folder change it into a zip file, unzip it (you'd need win32.ole (? or ..api?) - [TBD's idea of DeZip = much better] etc and a free unzipper utility)... then the files you'd get out would include the jpg/png files and info about the material etc ... so you could then recreate it within the model rather than import it 'raw' ?
-
dezip library for SU Ruby - download
it can be used to check .skm files and unzip texturesit will evolve in a .skm sometime - if anyone wants to jump in, feel free
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement