Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

VRay material in 3ds max script

VRay material in 3ds max script

Anonymous
Not applicable
4,263 Views
5 Replies
Message 1 of 6

VRay material in 3ds max script

Anonymous
Not applicable

Hi everyone,
I'm new in 3ds max script. I want to define materials based on this document(https://docs.chaosgroup.com/display/VMAX/V-Ray+Illumination+Relevance+Test)
I defined some standard materials in 3ds max script, But I don't know How I can set Vray materials in 3ds max script.
Another problem is about map an HDR image on a plane for the window's view out. how can I map HDR image on the plane without effect on interior lighting? Should I map this image in 3ds max script?
I will appreciate it if you help me.

 

bests, Maedeh

0 Likes
Accepted solutions (1)
4,264 Views
5 Replies
Replies (5)
Message 2 of 6

10DSpace
Advisor
Advisor
Accepted solution

@Anonymous 

 

To assign a vray material to a selected object in maxscript use the following:

 

$.material = vraymtl()

 

To find out all of the properties that maxscript makes available for the vray material (or any material) then select the object with that material assigned to it and use the following line of maxscript:

 

showProperties  $.material

 

This will output a long list of properties in the Listener window that you can access via maxscript.   At least knowing the correct name of the properties lets you do a search to learn more about how to use them in maxscript.  In my experience, it is best to do a google search and then follow the links that are the maxscript docs.  Trying to do a keyword search for anything from within the maxscript docs page doesn't ever seem to work for me and usually show links outside of maxscript.   

Message 3 of 6

lynn_zhang
Alumni
Alumni

Hello @Anonymous ,

Just checking to see if your problem has been solved. Have you tried the suggestions above from @10DSpace and did you have any success? If you find the suggestions helpful, please click on the "ACCEPT SOLUTION" button in his reply so this helps other users in the community find the solution too. Thanks!





Lynn Zhang
Community Manager


0 Likes
Message 4 of 6

Anonymous
Not applicable

10DSpace thanks for your response and help:)

Message 5 of 6

dahimorocco
Community Visitor
Community Visitor

I open file 3d max of computer use vray 5 , I load setting vray next 3.0 . Then , I open again file 3d max of computer use vray next 3.0 . It no hide word " load" to click. It no load setting. Help me!!! 

0 Likes
Message 6 of 6

rclaria
Community Visitor
Community Visitor

Hi, thank you for the solution! Do you know how to apply an specific name vray material?

0 Likes