make changes on a collection of max files
I try to make a script that makes some changes on all max files in the same file directory.
The Script shout change:
-the system unit to cm and scale all objects
-give all objects the same layer
-give all objects one group with the name off the max file
-move this group to the center of the scene. The lowest point should be on Z=0
It works all nice except to move the group.
I find a way to move the group the way I like. But when I try to use it in my for loop it don´t works.
I wrote a small script to show my problem:
files = getFiles (maxfilepath+"*.max")
for i=1 to files.count do (
max select all
str = "$"+getFilenameFile maxfilename+".position = $"+getFilenameFile maxfilename+".boxsize /2"
max file save
I hope someone can help me with this problem.