Script to delete output path of ALL render elements?

Hi,

A previous company I worked at had a custom script for removing the Output path of ALL render elements at once, does anyone familiar with MaxScript know how I might go about making this? I’m being driven crazy by “Error Creating File Output” and finding Max has suddenly decided to try save all my elements to a random, non-existent network location.

Hello,

First, close Render Setup window. Then try that:

re = maxOps.GetCurRenderElementMgr()
for i = 0 to re.NumRenderElements()  do re.SetRenderElementFilename i ""

Thanks to SugaR for this piece of code :smiley:

same here, although I’m looking for a script that automaticaly sets the paths of all the render elements into the path of the “save as” for the main render -

holy balls… i’ve seen so much help over the past few days, it’s rendering the-area absolete

thanks

This works perfectly, thank you for sharing!

the script to normalise the render elements to the path of the main render doesn’t seem to be supported in the latest max version :frowning: I’ll keep looking for something similar then, but thanks :smiley:

Hmmm not tested myself. Maybe worth sending a message to the creator ?

i did - no date on the updated version - “whenever” i suppose :smiley:

Please try this guys

Save your file - go the the render elements tab and delete all your elements - Merge the elements from the file you just saved (there’s a merge button in the render elements tab)

When you merge them, they should reacquire the output that you have in the “save file”.

In that case all mask elements lost his connections with objects it linked with, and need a lot of time to relink. All scripts above not works anymore. I know, a lot of time is gone, but it’s important to know in 2026 )) :heart: