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
MaxScript - RGB_image Filepath
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
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
+
- Attachments
-
- showOctaneDiffuseMap.zip
- (484 Bytes) Downloaded 178 times
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
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