Tuesday, December 21, 2010

Type Error: Call needs function of class, got undefined

--Solution: Your functions may be in the wrong order in your macroscript.

If function A calls function B, then function B must appear FIRST in the script.
The maxscript compiler is not very smart.

Monday, December 20, 2010

Iterate through all objects in a maxscript scene

allObjects = $*
for OBJ in allObjects do(
print OBJ as string
)


--Or you could try this if you just want geometry objects:

for OBJ in Geometry do(
print OBJ as string
)

I am sure there are other keywords corresponding to cameras and such...
But information on this was surprisingly hard to find.
If it were python this would have been 2 minutes of research.

Followers