ScriptSpot

Forum topic · Scripts Wanted

showing file name from ifl

By cuatcside · 2017-04-06

Description

I have assigned an ifl file which has some random file names to the viewport background.
is there a way to get corresponding file name at any frame?
Thanks.

Comments (4)

cuatcside · 2017-04-10

this command works but when I try to incorporate it in my code it's not working.
Do you mind take a quick look at my simple code and see what i am doing wrong?
Thanks.

rollout Background_Image_Name "Background Image Name"
(
label bgifn "0" pos:[30,5]

fn bgname =
(
try(

a = at time slidertime backgroundImageFileName
bgifn.text = a

)
catch ( )

)
)

cuatcside · 2017-04-10

this command works but when I try to incorporate it in my code it's not working.
Do you mind take a quick look at my simple code and see what i am doing wrong?
Thanks.

rollout Background_Image_Name "Background Image Name"
(
label bgifn "0" pos:[30,5]

fn bgname =
(
try(

a = at time slidertime backgroundImageFileName
bgifn.text = a

)
catch ( )

)
)

.

miauu · 2017-04-06

Try this:

Open MaxScript Listener(F11). Enter this:


backgroundImageFileName

and press the numpad enter.

cuatcside · 2017-04-10

this command works but when I try to incorporate it in my code it's not working.
Do you mind take a quick look at my simple code and see what i am doing wrong?
Thanks.

rollout Background_Image_Name "Background Image Name"
(
label bgifn "0" pos:[30,5]

fn bgname =
(
try(

a = at time slidertime backgroundImageFileName
bgifn.text = a

)
catch ( )

)
)