Heya
I want to use name from folder as a string for button. Can some1 help me out? I'm stuck at last part. The script wont accept the file I picked as name :(
rollout lel "Untitled" width:312 height:305
(
global lis = #()
global cn = #()
button btn1 cn[1] pos:[51,22] width:200 height:59
button btn2 cn[2] pos:[48,106] width:200 height:59
on lel open do
(
allFiles = getFiles ("C:\Test\Cams\\" + "\\*.max")
lis = allFiles
for data in lis do
( da = filterString data "\\"
aa =substituteString da[4] "-" ""
BB = substring aa 1 (aa.count-4)
append cn(BB)
)
)
)
theNewFloater = newRolloutFloater "Test" 338 800
addRollout lel theNewFloater
barigazy · 2015-03-10