Notifications
Clear all

[Closed] weird exeptions

Hi all
I have a really strange problem. I’ve wrote a script, it works fine for now, but when I evaluate it and after that right click a viewport, I get some really weird looking exeptions. see attached shots

5 Replies

Hi,

You have to give the selection as the argument of Filters.IsEditSpline
change
Filter.IsEditSpline()
to
Filter.IsEditSpline $

maybe my explanation of the problem was poor. My script is working fine till I right click a viewport, then all these exeptions occur. And these are exeptions in some macros that ship with max. I made a screen capture, hope that it will clear the picture
http://rapidshare.com/files/5665008/exeptions.rar.html

i’ve attached part of the script

Hi,

the problem is that you have defined a global variable ‘filters’ that has the same name as the global Struct ‘Filters’ as defined in stdplugs/stdscripts/filterfunctions.ms

renaming your ‘filters’ variable to ‘_filters’ and re-evaluate filterfunctions.ms or restart max
solves the error.

yes, it works now, thanks