Notifications
Clear all

[Closed] Reading Object name from txt file

Hi all,

I’ve been playing around with exporting and importing data via maxscript. So far everything has been fine with numbers, however, when I want to read text, say for an object name, I get undefined.

e.g my text file has 1,2,3,boxname1,

				a = readValue in_file
				print a

I use a readValue within a loop, 1 2 and 3 get read, however when it comes to boxname1, it comes back as undefined?

What am I doing wrong?

1 Reply

readValue parses Max Script values.
boxname1 is parsed as an undefined variable.
make the object name string.

1,2,3,"boxname1"