Create warning message for the rendering engine in use
Hi man :)
I have write this quick code when I want change the engine renders...
( renderers.current = Default_Scanline_Renderer() print renderers.current as string messagebox "Chosen Scanline Render" title:"Michele71 Tools" beep:true )
...but I did not understand as write a message on which engine is in use.
Logical Flow:
I have in use MentalRay or Scanline renders engine
I run the script and I have a first messagebox "The actual Engine renders is (name of the Rendering in use)",
Later appears to a second messagebox "Chosen (new name rendering engine) Render"
How do?
Thanks in advance for your help appreciated :)

Comments
OK.Here some functions that
OK.
Here some functions that I use in RTTAssist
The first function will show you the active render edgune. The next will monitor the render change while your script is active.
Hope this help.
Tools and Scripts for Autodesk 3dsMax
Thank you very much miauu :)
Thank you very much miauu :) This is what I was looking for! Certainly I have to "bend" the function of what is to me, but it is very useful starting.
Thanks again Miauu, That was really nice
Michele
Glad to help. :)
Glad to help. :)
Tools and Scripts for Autodesk 3dsMax
Why you need 2
Why you need 2 messageboxes?
If I understand correctly what will happen:
1. Run the script.
2. appear messagebox: "The actual Engine renders is (name of the Rendering in use)"
3. User press OK and immediately appear second messagebox: "Chosen (new name rendering engine) Render"
If this is the scenario then this code will do the job
Max will show the first messagebox and execution of the script will stop. When you press OK in the messagebox rollout max will continue with the script execution and will show the second messagebox.
Messagebox is modal, so every time when the messagebox is shown the execution of the script stops until the user press OK button.
Also you can use custom rollout with modal set to true.
Tools and Scripts for Autodesk 3dsMax
I try to explain better.
I try to explain better. :)
The real problem is knowing how to recognize the rendering engine that is currently in use.
If you are using Scanline, when you exchange with MentalRay you have the first messagebox. With the second messagebox, is activated the MentalRay.
Now in my script, I had no problems in changing the render engine, but i want know the rendering engine which is used at that moment...your explanation mentioned above, I know about :)
I hope I explained myself better ... I'm sorry for my bad English.
Anyway, thank you for your quick help Miauu :) :)
What event will
What event will trigger
messagebox "Chosen Scanline Render" title:"Michele71 Tools" beep:true
Tools and Scripts for Autodesk 3dsMax
Will trigger the type of
Will trigger the type of rendering engine not in use at that time...