Message 1 of 3
Appending a Counter to a String

Not applicable
08-25-2009
07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
This might be an easy question and i hope it is. I am new to max scripting and am trying to use a counter to open a series of bitmaps within a for loop. The only thing that I cannot figure out is how to append the counter to the openbitmap function: (see below)
for count=0 to frames-1 do
{
a = openbitmap(C:\Temp\"LeftSide(**** Need Counter!! ****).png"
}
I have tried:
"LeftSide"+count+".png"
"LeftSide"+(count)+".png"
"LeftSide"count".png"
Any help would be much appreciated!!
Thanks,
Mark
This might be an easy question and i hope it is. I am new to max scripting and am trying to use a counter to open a series of bitmaps within a for loop. The only thing that I cannot figure out is how to append the counter to the openbitmap function: (see below)
for count=0 to frames-1 do
{
a = openbitmap(C:\Temp\"LeftSide(**** Need Counter!! ****).png"
}
I have tried:
"LeftSide"+count+".png"
"LeftSide"+(count)+".png"
"LeftSide"count".png"
Any help would be much appreciated!!
Thanks,
Mark