ScriptSpot

Forum topic · General Scripting

for s in selection do print classOf s as string

By titane357 · 2013-03-13

Description

hello

can somebody tell me why it is not working ?
Thanks

Comments (5)

miauu · 2013-03-13

Because print can have only one argument. :)

Yep.

barigazy · 2013-03-13

Kostadin explain why.
And if you want advanced debagging fn (with more arguments input) you can use *format* fn. I suppose you already know that. :)

:)

barigazy · 2013-03-13

You need to add brackets like this


for s in selection do print (classOf s as string)
--or this is my sugesstion
for s in selection do print (getClassName s)

titane357 · 2013-03-13

thanks for help (again)
but I have some problems with max. When you make too much errors in listener,
after a while nothing works,... I need to reboot max...

barigazy · 2013-03-13

Sometimes if you forget to close brucket of your code max will not print the result.
Try to ** interrupted ** max with Escape key.
If you this not help then you have srious problem. Reset max as usual

:)