ScriptSpot home

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)
Gspoutnik

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

Try

format "%\n" a
Reply to Garp
titane357

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

titane357

or to print like "USE WP"

titane357

Anybody ?