THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/09/2007 at 06:33, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6/10.1
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hallo, I'm trying to use "try" and "catch" for checking non excisting operators but get syntax error.
What I do, and works fine, is when I add Userdata sliders, I use try and catch so I still can open older scenes where this sliders are not present by setting a default value in the "catch".
Now I have some functions that uses operators from 3rd party plugins.
I know the operator (plugin#VALUE). And when the plugin is installed it works fine.
If the plugin is -not- installed and I try the operator I get a syntax error.
So, in the same way I would misspell a operator, can I try and catch it?
If I mispell any valid operator I also get syntx error.
In my work I get "try" and "catch" to work fine but I'm not confident how to implement "throw".
Cheers
Lennart