Message 1 of 1
[Maxscript] netrender file name - trying to save without appended frame number

Not applicable
07-07-2020
10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm making a batch submitter that renders a series of cameras. These cameras have their own single frame number to render at. I want to be able to save the file based on the name I supply my script but omit the frame number at the end.
Is this possible? Does anyone know how to do this?
Thanks
function fn_netSubmit =
(
local arr_camTEST = #("cam1", "cam2", "cam3")
local arr_renderSeatSide =#("side1", "side2", "side3")
local arr_renderSeat = #("seat1", "seat2", "seat3")
local arr_renderFrames = #("1", "3", "7")
local appendDate = "200707"
local outputLocation = "some\\location\\"
--connect
nm.connect #manual "mtlwarml401.ca.aero.bombardier.net" platform:#64
if nm.QueryControl #wait do
(
nm.GetControl()
exit
)
if nm.getControl() == true then
(
for i = 1 to arr_camTEST.count do
(
job = nm.newJob()
job.outputWidth = 3600
job.outputHeight = 3600
job.name = ("filename" + " " + arr_renderSeat[i] + " " + arr_renderSeatSide[i] + " " + "S" + "-" + appendDate)
job.nonSeqFrames = true
job.frames = arr_renderFrames[i]
job.renderCamera = arr_camTEST[i]
job.frameOutputName = (outputLocation + "/" + ("filename" + " " + arr_renderSeat[i] + " " + arr_renderSeatSide[i] + " " + "S") + ".tif")
job.submit()
)
)
nm.Disconnect()
)
fn_netSubmit()