Page 1 of 1

MaxScript - RGB_image Filepath

Posted: Fri Feb 24, 2017 10:03 am
by stir
Hi

i am trying to maxscript some paths in Octane's diffuse material.
So far i got this:

meditMaterials[1].materialList[3] = Diffuse_material ()
meditMaterials[1].materialList[3].diffuse_input_type = 2
meditMaterials[1].materialList[3].diffuse_tex = RGB_image ()

This will select the multisub material that i have in slot1 in the material editor.
It will then select the material ID slot 3. and create a Octane diffuse material.
It will then change the diffuse color to texture and assigne a RGB_image node to the texture slot.

What i want now is to be able to script what texture the RGB node is gonna read.
Do some one have the maxscript string for that?

I have tried Macro recording it but doesn't seem like 3ds max 2016 can record that.



Cheers.
-Mats

Re: MaxScript - RGB_image Filepath

Posted: Sun Feb 26, 2017 2:40 pm
by Goldisart
+

Re: MaxScript - RGB_image Filepath

Posted: Mon Feb 27, 2017 7:57 am
by stir
Thanks for sharing but i actualy solved it.
I came over a thread where some one said it works similar to default max
so i changed to scanline, macro recorded it and reused the code in octane and it seemed to have worked.


the string i needed was this one

RGB_image fileName:("Z:\_aProjects\testimage.jpg")
And that loaded the image stated in the path to the RGB filename slot.
Now i can implement that inn to the multimaterial code.

I also read that Otoy was upgrading their manuals and that it might contain more Maxscript refrences and guides ?
has this been done yet?

Thanks
-Mats