- Code: Select all
@Lumberptmat_db = "#ffe5cc"
@Lumberpt_mat = mats.add(mat_name)
@Lumberpt_mat.color = @Lumberptmat_db
or something like this:
- Code: Select all
@Lsl_mat = mats.add(mat_name)
@Lsl_mat.texture = File.join(this_dir,'materials/WOOD_OSB.jpg')
@Lsl_mat.texture.size = [36.0, 4.0]
However, I would like to make it possible so that the user can create their own library of files (using .SKM files) and then just have the plugin load the applicable .SKM file into the model.
Somewhere I was reading that SKM files were creating issues for certain previous SU releases but this may be outdated information.
I'm just wondering if there are any known problems or issues with using SKM files and the API before I get too far down this road, that I should be aware of.