Is there a way to check and delete all cameras and lights in about 100 3ds max files and then take action about this?
Forum topic · General Scripting
How to delete some thing from multi 3dsmax files?
By gazarika · 2015-03-30
Forum topic · General Scripting
By gazarika · 2015-03-30
Is there a way to check and delete all cameras and lights in about 100 3ds max files and then take action about this?
Comments (4)
Comment policy
want to delete Layer itself along with its content
hello
i want to delete some layers along with its content which contain geometry, light, cameras.
with this script, i can only delete camera and light is there any way to update this.
thanks for the Help!
.
Try this:
I don't have time to rearange the UI. It will load all files and will delete all lights and cameras, then will save the loaded file with the same name in the same directory(the file will be overwritten).
Yes of course. but make sure you backup them before.
Just copy all files to one folder and change path to it -> maxfiles_Folder
This script will batch delate all camers and ligths in those files and resave them with new suffix "no_cams-lights"
or if you want to save them to new folder:
But be careful changing / using it!
Best,
Pixamoon
.
Yes.
You have to batch load all 100 files, delete cameras and lights in each file, then save the file.
If you are sure that all cameras and lights have names that contains "Camera" and "Light" in it you can check the name of the objects, before loding the files, to avoid loading max file where there is no cameras or lights. Nut if the name of the cameras and lights do not have "Camera"/"Light" then you have to load all max files one by one.