assign diffuse material and adds marble texture to the selected object
Code: Select all
$.material = Diffuse_material ()
$.material.diffuse_input_type =2
$.material.diffuse_tex = Marble_Texture ()
- works only on old octane kernels - like 1.31 - which I have installed now just to see what is going on
- not working on latest kernels
- I have been killing myself for the past few days, looking up and down help files to get a workaround, or anything..
- just gives out error message cannot assign Marble_texture to texturemap, or system exception
if you write it like this
Code: Select all
$.material = diffuse_material diffuse_input_type: 2 diffuse_tex:marble_texture
-- Unable to convert: Marble_texture to type: TextureMap
- I know there was a complete overhaul of the system, but this really frustrates me
- I know I could workaround something but I need to implement my own .mat file and extract stuff out of it, but I just want to do it this way - I need to do it this way -
- please give any hint possible, why it worked like this before?
additional info
according to this, everything should fit .. but it just doesn't :
Code: Select all
showclass "diffuse_material.*"
Diffuse_material : material {499252a7,78fd2b6c}
.diffuse_input_type : integer
.diffuse_value : float
.diffuse_color : RGB color
.diffuse_tex : texturemap
.roughness_input_type : integer
.roughness_value : float
.roughness_color : RGB color
.roughness_tex : texturemap
.bump_input_type : integer
.bump_value : float
.bump_color : RGB color
.bump_tex : texturemap
.normal_input_type : integer
.normal_value : float
.normal_color : RGB color
.normal_tex : texturemap
.displacement : texturemap
.opacity_input_type : integer
.opacity_value : float
.opacity_color : RGB color
.opacity_tex : texturemap
.smooth : boolean
.edgesRounding : float
.transmission_input_type : integer
.transmission_value : float
.transmission_color : RGB color
.transmission_tex : texturemap
.medium : texturemap
.emission : texturemap
.matte : boolean
OK
showclass "marble_texture.*"
Marble_texture : textureMap {b9212aa,633b78ed}
.power_input_type : integer
.power_value : float
.power_color : RGB color
.power_tex : texturemap
.offset_input_type : integer
.offset_value : float
.offset_color : RGB color
.offset_tex : texturemap
.octaves : integer
.omega_input_type : integer
.omega_value : float
.omega_color : RGB color
.omega_tex : texturemap
.variance_input_type : integer
.variance_value : float
.variance_color : RGB color
.variance_tex : texturemap
.transform : texturemap
.projection : texturemap
OK