About this site

ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.

Related Discussions

Run a script in multiple files."batch script"

Submitted by Gabriel Corazza on Thu, 2014-08-21 21:43

I am looking for an action that runs another script in the files within a folder. (.max) I select the folder, and script run on all the files then save. (Ex: Zero-Center Pivot Switcher). It is too complex?

Comment viewing options

maxF= getFiles @"D:\MAX\Archmodel\Vol.01\Arch Model Vol.07 Electronics\*.max"-- you can change this folder, just leave *.max as it be, because you want to open max file correct ?
mapped fn scriptToRun obj = ---script that you want to run [this is do centering the object geomtry pivot in the center](
centerPivot obj
)-- and last do looping open maxfile and do something with our script, then save the max file for i in maxF do loadMaxFile i useFileUnits:true quiet:true ; scriptToRun geometry ;saveMaxFile i quiet:true