ScriptSpot

Forum topic · Freelancers

Export a list of objects

By jicamet · 2013-12-20

Description

Hello from Lima, Peru.

I've been looking for a script or a way around this problem for a few weeks now... I need to export a list from 3Ds MAX with the object names in the scene (hopefully in .CSV format for later import to Excel). Anyone got an idea?

Comments (2)

CSV Attempt

tdugard · 2014-01-28

output_name = getSaveFileName caption:"CSV File" types:"CSV (*.csv)|*.csv|"
if output_name != undefined then
(
	output_file = createfile output_name
	for vObj in Objects do
	(
		format "%\n" vObj.name to:output_file
	)
	close output_file
)

CSV are just plain text so here we go

tdugard · 2014-01-28

output_name = getSaveFileName caption:"CSV File" types:"CSV (*.csv)|*.csv|"
if output_name != undefined then
(
	output_file = createfile output_name
	for vObj in Objects do
	(
		format "%\n" vObj.name to:output_file
	)
	close output_file
)

CSV are just plain text so here we go