I'm trying to modify the private sanity check as a test to see how it works, I've attempted to make it check the frame rate and warn me if it's not at 25. Unfortunately I don't seem to be able to get it to fire up, I'm not sure if maybe I'm editing the wrong file.
Below I've included the modified maxscript code.
I'm running deadline 4, through 3ds Max 2011 on XP
So my questions are:
1. Where is the SubmitMaxToDeadline_SanityCheck_Private.ms file that I should change to make this work and can i change it on the repository so all users get the same sanity checks?
2. Any suggestions as to why it won't load? I've basically copied the entries as they appeared in the General file, so maybe my understanding of how it works is off.
Thanks for any support you may be able to offer.
Nick
- Code: Select all
-----------------------------------------------------------------------------------------------------------------------------------------------
--THIS FILE CONTAINS YOUR USER-DEFINED CHECKS TO BE PERFORMED AND THE FUNCTIONS
--TO BE USED TO CHECK AND REPAIR THE SCENE BEFORE SUBMISSION
-----------------------------------------------------------------------------------------------------------------------------------------------
--THIS FILE WILL **NOT** BE UPDATED AUTOMATICALLY BY PRIME FOCUS
--AND SHOULD BE USED FOR YOUR IN-HOUSE NEEDS.
-----------------------------------------------------------------------------------------------------------------------------------------------
(
global SMTD_Private_SanityCheckFunctions
global SMTD_Private_SanityChecksToPerform
global SMTD_Private_RepairFunctions
global SMTD_RepairFunctions
global SMTD_SanityChecksToPerform
global SMTD_SanityCheckFunctions
struct SMTD_Private_SanityCheckFunctions
(
fn CheckFrameRate=
(
Framerate==25
)
)--end struct
struct SMTD_Private_RepairFunctions
(
fn FixFrameRate =
(
framerate=25
)
)--end struct
------------------------------------------------------------------------------------------------------------------------------------------------------
--SANITY CHECK PRIVATE DEFINITIONS
------------------------------------------------------------------------------------------------------------------------------------------------------
SMTD_Private_SanityChecksToPerform = #(
#(SMTD_Private_SanityCheckFunctions.CheckFrameRate, #fix, "Frame rate not set to 25fps", SMTD_Private_RepairFunctions.FixFrameRate, true ),
)--end checks array
)--End File