Announcement

Collapse
No announcement yet.

Mel/Python command for saving GI maps?

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

  • Mel/Python command for saving GI maps?

    Hi

    What is the command for saving the irrandiance map and lightcache map to file?

    Regards,
    Jacob
    Jacob Børsting
    Head of Pipeline @ Ghost VFX

  • #2
    For the irradiance map, assuming that the map is in memory, the MEL command is
    Code:
    vray giMaps save irradiance "fileName.vrmap";
    for the light cache, it should be
    Code:
    vray giMaps save lightcache "fileName.vrlmap";
    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Great. Thanks Vlado.

      Is there a documentation for the vray mel commands? It would be cool to see what other "hidden" commands vray has.

      Regards,
      Jacob
      Jacob Børsting
      Head of Pipeline @ Ghost VFX

      Comment


      • #4
        Originally posted by jbvfx View Post
        Is there a documentation for the vray mel commands? It would be cool to see what other "hidden" commands vray has.
        Unfortunately, no (although you can look at the UI MEL scripts that come with V-Ray; they contain examples for usage of all the commands). They were mostly created for our own internal use... Nevertheless, I'm collecting a list of the most useful commands, hopefully we'll upload that on spot3d soon.

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

        Comment


        • #5
          Alright.

          On another note.. Is it possible to ignore the render region in the VFB when using the 'vrend' command? So that it always renders the full image when using the mel command even though render region is enabled. Or alternatively a mel command for unchecking the render region button in the VFB?

          Regards,
          Jacob
          Jacob Børsting
          Head of Pipeline @ Ghost VFX

          Comment


          • #6
            Originally posted by jbvfx View Post
            On another note.. Is it possible to ignore the render region in the VFB when using the 'vrend' command?
            Nope. This is the same command that is used to actually do the rendering (region or not) when you press the various buttons in the Maya UI. It is not a separate command just for your convenience

            Or alternatively a mel command for unchecking the render region button in the VFB?
            In the latest nightly builds, you can use the following command:
            Code:
            vray vfbControl -setregion reset;
            Type
            Code:
            vray vfbControl;
            to see other commands related to the VFB.

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

            Comment

            Working...
            X