Events are usually aborted by returning false instead of true.

Matt



From: [email protected] 
[mailto:[email protected]] On Behalf Of Mitchell Lotierzo
Sent: Thursday, March 14, 2013 1:52 PM
To: [email protected]
Subject: Scripting | Python | Aborting A Built-In Command

Hi everyone!

I have an issue where Softimage is adding materials to referenced material 
libraries when the ref. material library is set as the current library. I'm 
trying to remedy this with a custom plug-in and a OnBeginCommand custom event 
to check if any shader commands where triggered. I'm having trouble finding a 
way to abort (if you can at all) the built-in commands fired when you add a new 
material. I know there is a ".Enabled" property, but that only affects the UI, 
not the command execution. It also seems that the command's argument handlers 
are all set to "None". I may be misunderstanding how to go about this. Does 
anyone out there have experience with this sort of thing?

Thanks!
Mitch

Reply via email to