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
Advertisement