Announcement

Collapse
No announcement yet.

Change VRaylog file default location to default to Project Folder instead ?

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

  • Change VRaylog file default location to default to Project Folder instead ?

    VRayLog.txt is saved in %TEMP% folder, but I'd like to know how to change this so that it will always default to the Project Folder.

    Is there a syntax for 'current' project folder ? (rather than everytime going into the Render Dialog Box and manually choosing the Project Folder) ?

    Thanks.
    Jez

    ------------------------------------
    3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
    Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

    Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
    ---- Updated 06/09/23 -------

  • #2
    Maybe this short script would be useful:

    Code:
    logSavePath = pathConfig.getCurrentProjectFolder() + maxFileName + "_VRayLog.txt";
    renderers.current.system_vrayLog_file = logSavePath;
    Miroslav Ivanov
    Chaos Cosmos

    Comment


    • #3
      Thanks for this Miroslav,

      Please can you tell me how to refine this script ?

      currently it will make;

      c:\project_foldermaxfile,

      And I'd like it to make

      c:\project_folder\maxfile

      Many thanks.

      Jez

      ------------------------------------
      3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
      Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

      Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
      ---- Updated 06/09/23 -------

      Comment


      • #4
        It's okay, good ole Morne kindly helped me out;

        logSavePath = pathConfig.getCurrentProjectFolder () + @"" + "VrayLog.txt";
        renderers.current.system_vrayLog_file = logSavePath;

        Will do it
        Jez

        ------------------------------------
        3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
        Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

        Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
        ---- Updated 06/09/23 -------

        Comment


        • #5
          Nice. Thanks for sharing the amended script.
          Miroslav Ivanov
          Chaos Cosmos

          Comment


          • #6
            I've just learned (thanks again Morne !) that when putting code online, if it isn't placed within code tags, certain characters could be missing (there should be a \ between the double-quotes) - this is the correct code below;

            Code:
             logSavePath = pathConfig.getCurrentProjectFolder () + @"\" + "VrayLog.txt";
            renderers.current.system_vrayLog_file = logSavePath;
            Last edited by JezUK; 08-03-2018, 10:23 PM.
            Jez

            ------------------------------------
            3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
            Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

            Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
            ---- Updated 06/09/23 -------

            Comment


            • #7
              Wondering if there's anyone out there that can fix this for 2023, that code throws up errors, first with that @"" code, and further (I think it didn't like system_vrayLog_file) if you take it out (not that I know what I'm doing....)
              Jez

              ------------------------------------
              3DS Max 2023.3.4 | V-Ray 6.10.08 | Phoenix FD 4.40.00 | PD Player 64 1.0.7.32 | Forest Pack Pro 8.2.2 | RailClone 6.1.3
              Windows 11 Pro 22H2 | NVidia Drivers 535.98 (Game Drivers)

              Asus X299 Sage (Bios 4001), i9-7980xe, 128Gb, 1TB m.2 OS, 2 x NVidia RTX 3090 FE
              ---- Updated 06/09/23 -------

              Comment


              • #8
                Originally posted by JezUK View Post
                Wondering if there's anyone out there that can fix this for 2023, that code throws up errors, first with that @"" code, and further (I think it didn't like system_vrayLog_file) if you take it out (not that I know what I'm doing....)
                Works fine on my end. What errors are you getting? Is V-Ray the active render engine?
                Aleksandar Hadzhiev | chaos.com
                Chaos Support Representative | contact us

                Comment

                Working...
                X