MaxScript - RGB_image Filepath

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
stir
Licensed Customer
Posts: 101
Joined: Sun Apr 10, 2016 7:12 am

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
------------------------------------------------------------------------------

http://www.stir.no
User avatar
Goldisart
Licensed Customer
Posts: 780
Joined: Sat Oct 26, 2013 8:47 am

+
Attachments
showOctaneDiffuseMap.zip
(484 Bytes) Downloaded 178 times
stir
Licensed Customer
Posts: 101
Joined: Sun Apr 10, 2016 7:12 am

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
------------------------------------------------------------------------------

http://www.stir.no
Post Reply

Return to “Autodesk 3Ds Max”