Hi Guys,
I am new to deadline, I am trying to a pre-frame script to work. At the moment I am using the maxscript currentTime global to get the frame being rendered. This is returning 0 on each frame being rendered. Is there a way in maxscript to get the currentFrame being rendered?
Cheers,
Dave
Hi Dave,
There is a DeadlineUtil API that you can call from your maxscript to get the frame. This API is documented here:
thinkboxsoftware.com/3ds-max/#Scripts_Tab
The API for the interface between MAXScript and Deadline is as follows:
SetTitle( string title ): Sets the render status message in the slave UI.
SetProgress( float percent ): Sets the progress of the render in the slave UI.
FailRender( string message ): Fails the render with the given error message.
GetJobInfoEntry( string key ): Gets a value from the plugin info file that was submitted with the job, and returns an empty string if the key doesn’t exist.
GetAuxFilename( int index ): Gets the file with the given index that was submitted with the job.
CurrentFrame: Gets the current frame.
LogMessage( string message ): Logs the message to the slave log.
So calling DeadlineUtil.CurrentFrame should give you what you’re looking for.
Cheers,