Decency
11-20-2009, 07:27 PM
Hey everyone, I am trying to write a simple script on my own but having trouble getting started. I have figured out most of the commands I will need, but I am having trouble getting the first part down.
Here is what I have. Let's say in slot 1 of the material editor is a standard material. In the diffuse slot it has a bitmap map, which points to a file C:\Program Files\textures\wood.jpg.
I want to load the actual bitmap itself as a variable.
So something like myMap = the_bit-map_I_referred_to_above
I was trying to get it with
myMap = meditMaterials[1].DiffuseMap
myMap.filename
but this only returns the filename, not the actual bitmap. Any help would be awesome.
Here is what I have. Let's say in slot 1 of the material editor is a standard material. In the diffuse slot it has a bitmap map, which points to a file C:\Program Files\textures\wood.jpg.
I want to load the actual bitmap itself as a variable.
So something like myMap = the_bit-map_I_referred_to_above
I was trying to get it with
myMap = meditMaterials[1].DiffuseMap
myMap.filename
but this only returns the filename, not the actual bitmap. Any help would be awesome.
