Page 1 of 2
How to assign Octane3dsmax Maps via Maxscript
Posted: Sun Nov 02, 2014 11:13 pm
by akira
Hi Mr.Karba, i'm trying to make my own material converter but was stuck at texture assignment:
Code: Select all
$.material = diffuse_material()
Diffuse_Material:Diffuse_Material
$.material.diffuse_tex = alpha_image ()
** system exception **
$.material.diffuse_tex = copy alpha_image ()
-- Unable to convert: Alpha_Image to type: TextureMap
can you tell me if it's possible to do that?
Regards,
akira.
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Mon Nov 03, 2014 8:03 am
by acc24ex
this is where I got stuck and couldn't find any way of working it out - if you assign any texture node to the shader node via maxscript gives out a system exception error.. this did work on the previous versions like octane 1.2
- also Karba mentioned somewhere that he doesn't do maxscript..
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Mon Nov 03, 2014 10:51 am
by akira
So sad to hear that, the built in converter usually assign a rgb image to the opacity slot instead of an alpha image or greyscale image,
Without maxscript automation, I have to manually correct them one by one, sigh.
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Mon Nov 03, 2014 1:43 pm
by HHbomb
+1 more access and docs for maxscript.
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Thu Nov 13, 2014 7:51 pm
by Jari
I got same issue! I can only switch texture map if I first manually add texture map from material editor. Before that that .diffuse_tex is undefined and I have no idea how to change that with maxscript.
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Fri Nov 14, 2014 2:40 am
by Karba
akira wrote:Hi Mr.Karba, i'm trying to make my own material converter but was stuck at texture assignment:
Code: Select all
$.material = diffuse_material()
Diffuse_Material:Diffuse_Material
$.material.diffuse_tex = alpha_image ()
** system exception **
$.material.diffuse_tex = copy alpha_image ()
-- Unable to convert: Alpha_Image to type: TextureMap
can you tell me if it's possible to do that?
Regards,
akira.
Did you try to change diffuse_input_type first?
0 - float value
1 - color
2 - texture
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Fri Nov 14, 2014 6:56 am
by Jari
Yes I did. Could you tell me how your material LiveDB makes the trick when you press "place to active slot of material editor"?
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Fri Nov 14, 2014 7:19 am
by Karba
Jari wrote:Yes I did. Could you tell me how your material LiveDB makes the trick when you press "place to active slot of material editor"?
it is c++ code, no script
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Fri Nov 14, 2014 11:30 am
by akira
Karba wrote:akira wrote:Hi Mr.Karba, i'm trying to make my own material converter but was stuck at texture assignment:
Code: Select all
$.material = diffuse_material()
Diffuse_Material:Diffuse_Material
$.material.diffuse_tex = alpha_image ()
** system exception **
$.material.diffuse_tex = copy alpha_image ()
-- Unable to convert: Alpha_Image to type: TextureMap
can you tell me if it's possible to do that?
Regards,
akira.
Did you try to change diffuse_input_type first?
0 - float value
1 - color
2 - texture
yes, i did, and still got the same error.
as you can see the error message said that the Alpha_Image(or RGB_Image) is not the same type as TextureMap.
Re: How to assign Octane3dsmax Maps via Maxscript
Posted: Fri Nov 14, 2014 1:16 pm
by acc24ex
I was looking far all options for hours and tried all workarounds I could think of, frustration set in so I gave up
.. something changed from octane version 1.0 or something and after 1.5 it gave out errors, I have a feeling something in the plugin is maybe differently named, or placed under a different class or something, and only gives out this error on maxscript when trying to some assign texturemap
- maybe rgbimage noise etc aren't of the class texturemap, maybe it's named texturemap2 or something like that and it works out fine in the plugin but not here