Message 1 of 2
How to write this in c#?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I figured out how to work with objects a little, but I couldn't find how to work with materials. And in general, does anyone know where to find detailed documentation?
if obj.material.base_color_map != undefined then
(
local bmt = Bitmaptexture();
local bmt_file = texpathD
local bmp = openBitmap bmt_file gamma:2.2;
bmt.bitmap = bmp;
obj.material.base_color_map = bmt;
obj.material.base_color_map.Reload();
obj.material.base_color_map.name = "D";
showTextureMap obj.material obj.material.base_color_map on
)