for s in selection do print classOf s as string

hello

can somebody tell me why it is not working ?
Thanks

Comments

Comment viewing options

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

Because print can have only

Because print can have only one argument. :)

barigazy's picture

Yep.

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

barigazy's picture

:)

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)

barigazy

titane357's picture

thanks for help (again) but I

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's picture

Sometimes if you forget to

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

:)

barigazy

Comment viewing options

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