We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.
Customize cookie preferences
We use cookies and similar tools (collectively, "cookies") for the following purposes.
Essential
Essential cookies are necessary to provide our site and services and cannot be deactivated. They are usually set in response to your actions on the site, such as setting your privacy preferences, signing in, or filling in forms.
Performance
Performance cookies provide anonymous statistics about how customers navigate our site so we can improve site experience and performance. Approved third parties may perform analytics on our behalf, but they cannot use the data for their own purposes.
Allowed
Functional
Functional cookies help us provide useful site features, remember your preferences, and display relevant content. Approved third parties may set these cookies to provide certain site features. If you do not allow these cookies, then some or all of these services may not function properly.
Allowed
Advertising
Advertising cookies may be set through our site by us or our advertising partners and help us deliver relevant marketing content. If you do not allow these cookies, you will experience less relevant advertising.
Allowed
Blocking some types of cookies may impact your experience of our sites. You may review and change your choices at any time by clicking Cookie preferences in the footer of this site. We and selected third-parties use cookies or similar technologies as specified in the AWS Cookie Notice.
Is there a way with Deadline that I can access scene objects at render time, to say, unhide some objects before rendering the frame or something like that? I tried a pre load script but it seems that it can’t see the objects in the scene at this stage, or I did something wrong but I ran the script in my scene and it seemed to work fine which leads me to believe that maxscript can’t see the scene as of yet in the preload script.
The Pre-Load script is run BEFORE the scene is loaded. That is too early since the scene does not exist yet.
The Post-Load script is run AFTER the scene is loaded, and before the rendering begins. This is roughly equivalent to the Pre-Render callback scripts in Max, and should allow you to make modifications to the scene, with some exceptions.
Also note that we run a script called CUSTOMIZE.MS that is part of the Deadline Max support setup and enforces all the render settings and other properties exported with the script. So it would be possible to insert general code there that affects ALL scenes ever rendered in Max on Deadline.
The Job Properties dialog > 3dsmax Settings page provides a Scripts>Inline Post Load Script field. You can enter arbitrary MAXScript expressions there, or enter fileIn “somefile.ms” to load an external file that will be run at the end of the CUSTOMIZE.MS run for that job. It is quite useful for tweaking scene settings without submitting an actual script with the job.
The other two scripts are Pre-Frame and Post-Frame and are equivalent to the corresponding MAXScript general callbacks, with the same limitations - you cannot change the content of the scene because the rendering has already started and the scene has already been evaluated.