is there a script to allow saving sequential frames? a way to accelerate animated previews…This software rocks
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
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
Thankyou
33 minutes later!
Thankyou
Could you release this script? I would find it very useful aswell !
Thanks
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
Is a script available now?
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:```
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 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
Thank you Vlado