Announcement

Collapse
No announcement yet.

Setting temporary Vray render settings for single renders?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting temporary Vray render settings for single renders?

    I want to create a few buttons for quick view renders out of Vray that are super low quality to just get a quick look.

    I want to do this without having to change the render settings in the Maya Vray render settings tabs.

    So I can essentially have a basic render setup that has the render settings how I like and then have a quickview button that exports the vray render settings in MEL with the render export for a one off render whenever the button is pressed but does not change the settings in the render settings tabs. Then if I like what I see I can just press the render the current frame button and it used the render settings in the vray render settings tabs for final quality.

    Currently I have a few presets I switch between but I'd like a way to embed settings with a single button press.. like a "very low, low, med, high," with final render quality already setting the vray render settings tabs.

    I imagine it is MEL commands on export?

    Ideas?
    ------
    KC

  • #2
    MEL or Python. I suppose u could create ur presets and then just make button to run each preset when pressed?

    So u have some settings in ur dial
    Press Med button>
    Save current settings as preset tmp1
    Load preset Med
    Render
    Finish Render
    Load preset tmp1
    Delete preset tmp1.

    Not sure if its doable tho haven't done it in past but that's how I would try it...
    CGI - Freelancer - Available for work

    www.dariuszmakowski.com - come and look

    Comment


    • #3
      I was thinking about that, but I am hoping I can just contain the settings in a single export with some MEL code without changing the maya render settings panels. Almost like an override command instead of switch.
      ------
      KC

      Comment


      • #4
        You can also use a post-translate Python callback to modify the V-Ray settings in the V-Ray translated scene, without affecting the Maya controls.

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment


        • #5
          Originally posted by Intuition View Post
          I was thinking about that, but I am hoping I can just contain the settings in a single export with some MEL code without changing the maya render settings panels. Almost like an override command instead of switch.

          In that case I guess you have to write script that would check all vray render settings and store their data. Which mean you have to do a lot of checking and storing. Not sure if there is a simple command to do it. I'd expect the presets to be the easiest way.

          The method I described above should technically change all settings to MED and then reverse back to what you had it before but who knows how well would it work.

          Also I'm not sure how would you deal with env overrides...
          CGI - Freelancer - Available for work

          www.dariuszmakowski.com - come and look

          Comment


          • #6
            Ah, that's it Vlado, Thanks.

            I can see I would put it into the Post Translate Python Script section in the Vray Common tab. Since I am writing this as a tool in a custom UI is there documentation on the code to specify the script is execurted as a post translate python script? A wrapper of sorts that would tell maya that the script does run as a MEL/Python callback without actually being placed in the UI section in the Vray common tab?
            Last edited by Intuition; 18-03-2014, 10:42 AM.
            ------
            KC

            Comment


            • #7
              You can set the vraySettings.postTranslatePython manually and it should work.
              V-Ray developer

              Comment

              Working...
              X