Announcement

Collapse
No announcement yet.

preview save

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

  • preview save

    is there a script to allow saving sequential frames? a way to accelerate animated previews...This software rocks

  • #2
    There appears to be no way to get access to the ActiveShade bitmap from MaxScript, but I'm working on something in that regard, if it works, I'll post here.

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

    Comment


    • #3
      So I added a MaxScript method to return the ActiveShade preview as a bitmap that you can save; if you are interested, email me to vlado@chaosgroup.com

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

      Comment


      • #4
        Thankyou

        33 minutes later!

        Thankyou

        Comment


        • #5
          Could you release this script? I would find it very useful aswell !
          Thanks
          Many Thanks
          Patrick

          Comment


          • #6
            It is not a script as such; it is a command built into V-Ray RT that allows you to get access to the current ActiveShade view as a 3ds Max bitmap (so that you can save it, for example). So it would actually require an updated version of the RT plugin.

            We will also be expanding that to a more convenient tool for animation preview.

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

            Comment


            • #7
              Is a script available now?

              Comment


              • #8
                The command to grab the preview is included in V-Ray RT 1.50.SP1; using this command, a script for writing out a preview would look something like this:
                Code:
                rollout test "RT Animation" (
                timer clock "rtClock" interval:5000 --tick once every 5 seconds
                
                local cframe=animationRange.start
                
                label Frame "---"
                
                on clock tick do (
                b=vrayGetRTBitmap()
                b.filename="c:/temp/test" + (formattedPrint ((cframe as integer)/160) format:"04i") + ".png"
                save b
                cframe = cframe+1f
                Frame.text = cframe as string
                
                if (cframe>animationRange.end) then DestroyDialog test
                
                sliderTime=cframe
                )
                )
                
                fn rtAnimation=(
                sliderTime=animationRange.start
                createDialog test
                )
                Save the script to a file and run it, then type
                Code:
                rtAnimation()
                in the MaxScript listener. The script will wait for 5s before progressing to the next frame; this can be easily made a parameter. The path for the resulting frames is also hard-coded (the "c:/temp" string), but it can also be changed.

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

                Comment


                • #9
                  Thank you Vlado

                  Comment

                  Working...
                  X