MaxScript - RGB_image Filepath

Forums: 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 viewforum.php?f=18

MaxScript - RGB_image Filepath

Postby stir » Fri Feb 24, 2017 10:03 am

stir Fri Feb 24, 2017 10:03 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
stir
Licensed Customer
Licensed Customer
 
Posts: 101
Joined: Sun Apr 10, 2016 7:12 am

Re: MaxScript - RGB_image Filepath

Postby Goldisart » Sun Feb 26, 2017 2:40 pm

Goldisart Sun Feb 26, 2017 2:40 pm
+
Attachments
showOctaneDiffuseMap.zip
(484 Bytes) Downloaded 152 times
User avatar
Goldisart
Licensed Customer
Licensed Customer
 
Posts: 780
Joined: Sat Oct 26, 2013 8:47 am

Re: MaxScript - RGB_image Filepath

Postby stir » Mon Feb 27, 2017 7:57 am

stir Mon Feb 27, 2017 7:57 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
stir
Licensed Customer
Licensed Customer
 
Posts: 101
Joined: Sun Apr 10, 2016 7:12 am

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 19 guests

Thu Apr 25, 2024 5:24 pm [ UTC ]