Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Trimming an array and converting to string
  RSS 2.0 ATOM  

Trimming an array and converting to string
Rate this thread
 
37651
 
Permlink of this thread  
avatar
  • nirsul
  • Posted: 10 December 2009 12:26 PM
  • Location: Holon
  • Total Posts: 274
  • Joined: 30 August 2006 07:02 PM

Hi

I have an array which looks like this:

( undefined, undefined, undeinfed, “H”,"E”,"L”,"L”,"O")

How can I convert it to just “HELLO” ????

TIA

NIR



Replies: 0
avatar
  • Anubis
  • Posted: 10 December 2009 12:48 PM

myArray #(undefined, undefined, undeinfed, "H","E","L","L","O")
str ""
for i in myArray where (classOf i == String) do append str i


Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Replies: 0