[Closed] How to Render selected frames using maxscript?
How do I get max to render the 1st 3rd and 5th frame using maxscript;
I tried this:
rendTimeType=4
rendPickupFrames="1,3,5"
render camera:custom outputfile:"E:/vij"
But that didnt work… Looks like the global render variables are independent of the render() function. Please help…
The Render() function is independent of the global settings. It’s equivalent to executing a command line render.
If you want to do the equivalent of pressing “render” in the render dialog you use a ‘Max Command’ (there are many more if you search for that in the help docs):
[left]
max render scene
[/left]
I only found out about it and its Max Command friends a few weeks ago myself. But it’s a good page to be familiarize yourself with. Pretty much all of the interface commands are in there.
Did try that…The problem is when I am running a loop and setting the global variables it seems to take only one specified outputFile path based on the last iteration…it doesnt change it on the fly inside iteration and render.
Anyways thx man… Il have to check and get back…
frames = #(4,6,25)
for f in frames do
(
rendTimeType=4
rendPickupFrames=(F as string)
rendoutputfilename = ("C:\\ouput_"+(f as string)+".tif")
max quick render
)
?