ScriptSpot

Forum topic · General Scripting

how to print in MAXscript Listener

By titane357 · 2011-01-27

Description

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 (5)

Fov

Gspoutnik · 2011-02-03

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 · 2011-02-02

Try

format "%\n" a

titane357 · 2011-02-03

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

titane357 · 2011-02-02

or to print like "USE WP"

titane357 · 2011-01-31

Anybody ?