- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to create a script that plays an audo file (mp3 format though I can convert it if needed) whenever I start the rendering process (I usually start it with the shift +Q/Render production option).
I tried creating the script through chat gpt but it seems the script that I was given (written below) doesn't work in 2024 version of 3ds max.
global renderEvents = undefined
fn playSoundOnRenderStart =
(
local soundPath = @"C:\Path\to\your\sound\clip.mp3" -- Replace with the actual path to your sound clip
playSound soundPath
)
fn onRenderStart evs =
(
if evs.startRendering do
(
playSoundOnRenderStart()
)
)
fn setupRenderEvents =
(
if renderEvents == undefined do
(
renderEvents = dotNetObject "Autodesk.Max.RenderEvents"
dotNet.addEventHandler renderEvents "RenderStart" onRenderStart
)
)
setupRenderEvents()
Solved! Go to Solution.