Announcement

Collapse
No announcement yet.

vrayGetRTBitmap()

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

  • vrayGetRTBitmap()

    hi there,
    i just wrote a little script to save out my VrayRT Render over time..
    but while running the script i got only the 1st frame till the script is finished
    Someone knows what im doing wrong?

    yours
    Thorsten



    here my script:

    d=(vrayGetRTBitmap())
    if d != undefined do
    (
    for i= animationrange.start to animationrange.end do
    (
    slidertime= i
    completeredraw()
    sleep 0.5
    d=vrayGetRTBitmap()
    d.filename="d:\\test\\test_"+ (i as integer /190) as string + ".tga"
    -- print d.filename
    save d
    close d

    )
    )

  • #2
    I've been using this script and it seems to work fine:
    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
    )
    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      jup, this 1 is working
      thx for your quick reply
      yours
      Thorsten

      Comment


      • #4
        Hi there,
        I have put you script as a .ms file in max and run it but could find the script in max.
        Does this script work with max2008 ?
        And am I oblige to use VrayRT SP1 to use this feature ?

        Thanks

        Stan
        3LP Team

        Comment


        • #5
          Originally posted by 3LP View Post
          And am I oblige to use VrayRT SP1 to use this feature ?
          Yes; the function is missing in older builds.

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

          Comment


          • #6
            Hi vlado,
            Thanks for you quick responce!

            I managed to make the script work but had to change the last lines.

            Changed :
            fn rtAnimation=(
            sliderTime=animationRange.start
            createDialog test
            )

            and leaved only :
            createDialog test

            Don't know why you script don't work.
            But with 3dsmax 2008, max crash often using the script.
            Don't know if it due to my os or the RT DR? I'm on windows 7 64Bit and max 2008 64.
            Is it possible that it will less crash in max2010?

            Thanks

            Stan
            3LP Team

            Comment


            • #7
              We recommend using 3ds Max 2009 or higher for V-Ray RT; with previous versions we have to do some hacks, which may not be very reliable...

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

              Comment

              Working...
              X