# Royal Render plugin
#
# Information: RR reads the first comment block to get the settings for this plugin.
# Can can write as many lines as you like
#
# These lines are just information lines for you and have no effect.  They are *not* required
# rrPluginName:		Hello Scene
# rrPluginAuthor:	Holger Schoenberger
# rrPluginVersion:	1.0
# rrPluginType:		Job Status Plugin
# rrRRversion:		7.0.15
#
# Your finished script has to be copied into the folder [RR]\plugins64\server_jobstatus\
#
#
# These settings are important for server job plugins and have to be set.
# They tell the rrServer when the plugin should be executed. 
# A "1" activates the plugin for this execution step. Everything beside "1" (including nothing) disables it.
#
# rrJobExec FirstCheck:		        1
# rrJobExec ScriptPreRender:	    1
# rrJobExec PreviewRender:	        1
# rrJobExec ScriptAfterPreview:	   
# rrJobExec WaitForApprovalPreview:   
# rrJobExec MainRender:		   
# rrJobExec ScriptPostRender:	    1
# rrJobExec WaitForApprovalDone:    0
# rrJobExec ScriptFinished:	        0
# rrJobExec Finished:		        1
#
#
#


# The first line without a # will stop the script header  parser.
# Therefore these lines are not read any more.



rrGlobal.writeLog2(rrGlobal.logLvL.info,  "***************************** My Job Status Plugin *****************************")
job= rr.getJob()

rrGlobal.writeLog2(rrGlobal.logLvL.info,  "Example Python script:\n I am job " + job.sceneName)
rrGlobal.writeLog2(rrGlobal.logLvL.info,  "My status is: " + job.statusAsString())
rrGlobal.writeLog2(rrGlobal.logLvL.info,  "My custom data 'Test' is: "+ job.customData_Str("Test"))
rrGlobal.writeLog2(rrGlobal.logLvL.info,  "All my custom data is: "+ job.customData_AllAsString())



