how to print in MAXscript Listener

Hello

I made a little "script" to change viewport FOV :
-------
a = viewport.GetFOV()
a = a + 15
viewport.SetFOV a
completeredraw()
print a
-------
when I run this from Maxscript Listener it is ok : I have a.value printed
But when I run this in a .mcr, this don't works...
I have other scripts where "print" works as I expect.
If somebody can help :-)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Gspoutnik's picture

Fov

Utility FieldOfView "Field of View"
(
slider fov "Field of View" pos:[17,43] width:128 height:44 range:[25,100,viewport.GetFOV()] type:#float

on fov changed val do
(
viewport.setFOV val
)
)

Garp's picture

Try format "%\n" a

Try format "%\n" a

titane357's picture

Thanks Garp, seems to

Thanks Garp, seems to work.
But in fact print works now too (?!?)... (?)!

titane357's picture

or to print like "USE WP"

or to print like "USE WP"

titane357's picture

Anybody ?

Anybody ?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.