This script is called a require in batch render script- And in working with AWS Deadline- They claim it ships with Octane.
I find no trace of this in any installed folders- Where is it?- Where can I get a copy of it?
./rrb
bepeg4d wrote:Hi,
it should be shared by Thinkbox Deadline directly, not by us.
Anyway, please try with the following LUA script for AWS Thinkbox:
download/file.php?id=85243
ciao,
Beppe
I find no trace of this in any installed folders- Where is it?
jobigoud wrote:I find no trace of this in any installed folders- Where is it?
It is inside the engine and loaded by it. It's not a separate file.
Do you have a particular error?
rrbarb wrote:jobigoud wrote:I find no trace of this in any installed folders- Where is it?
I can't solve if I cant see line 200 or whatever it may be- has to be a way to print or dump these utils
octaneRenderUtils.createFilename()
:-- Creates a filename based on a passed in filename template.
--
-- @param[in] template
-- Filename template with embedded %? chars which are substituted by something else.
-- @param[in] renderTargetIx
-- Index of the render target.
-- @param[in] frameIx
-- Frame index.
-- @param[in] subFrameIx
-- Sub-frame index.
-- @param[in] name
-- Name of the render target node
-- @param[in] imageSaveFormat
-- Type of the output image (in octane.imageSaveFormat)
-- @param[in] pass
-- Name of the current render pass.
function octaneRenderUtils.createFilename(template, renderTargetIx, frameIx, subFrameIx, name,
imageSaveFormat, pass)
assert(template, "expected template")
assert(renderTargetIx, "expected renderTargetIx")
assert(frameIx, "expected frameIx")
assert(subFrameIx, "expected subFrameIx")
assert(name, "expected name")
assert(imageSaveFormat, "expected imageSaveFormat")
assert(pass, "expected pass")
-- round to integer value incase frameix has a float value
frameIx = math.floor(frameIx + 0.5)
-- common extension for our image output types
local fileExtensions =
{
[octane.imageSaveFormat.PNG_8 ] = "png",
[octane.imageSaveFormat.PNG_16] = "png",
[octane.imageSaveFormat.EXR_16] = "exr",
[octane.imageSaveFormat.EXR_32] = "exr",
}
local s = template
-- %i -> index of the render target
s = string.gsub(s, "%%i", string.format("%d", renderTargetIx))
-- %f or %F -> frame number prefixed with zeroes (i.e. 1 -> 001)
s = string.gsub(s, "%%f", octaneRenderUtils.prefixWithZeroes(frameIx, 4))
s = string.gsub(s, "%%F", octaneRenderUtils.prefixWithZeroes(frameIx, 4))
-- %s -> sub frame number
s = string.gsub(s, "%%s", string.format("%d", subFrameIx))
-- %n -> name of the node
s = string.gsub(s, "%%n", name)
-- %e -> extension
s = string.gsub(s, "%%e", fileExtensions[imageSaveFormat])
-- %t -> timestamp (h_m_s)
s = string.gsub(s, "%%t", os.date("%H_%M_%S"))
-- %p -> render pass name
s = string.gsub(s, "%%p", pass)
return s
end
s = string.gsub(s, "%%e", fileExtensions[imageSaveFormat])
imageSaveFormat
.abstrax wrote:EDIT: I just had a look at your script. It would have been better to just write a script from scratch using only functionality from our Lua API instead of taking an older batch render script and then ripping out all the GUI stuff and then hacking the rest to try to make it work something totally different than what it intended to do.
Users browsing this forum: No registered users and 1 guest