  | | | Problem with XSI Events | Urgent help needed | Problem with XSI Events | Urgent help needed 2005-03-10 - By Ludovick William Michaud
Back Got it Missing return 0
Now the funny part is I looked all over XSI and XSISDK docs for OnBeginSaveScene. Couldn't get the info I needed. But then i finally decided to look for Application.Advise. And there is was an example that uses OnBeginSaveScene.
I really would like to know why my first search did not catch that one. Anywho... Sorry for the bandwith
Ludo
Ludovick William Michaud (loo-doh-vik wil-ee-am me-show) Technical Director Janimation Inc. www.janimation.com
Ludovick William Michaud said the following on 3/10/2005 1:16 AM:
> Ok boyz and girlz, > > I need help on this pretty fast. > I'm using the following event > OnBeginSceneSave > > But somehow I get to call my code it gets run alright but then xsi > cancels the Save command. Thus I'm not saving the scene. > > Here's the code that I'm calling. Or rather the way I'm calling it. > Event is installed. Now when the event gets triggered it looks for a > the right file which has this info. (that's the whole code of the > triggered event for now) > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- > def XSIApplication_OnBeginSceneSave(*args): > Application.Logmessage("HelloWorld") > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- > > Now I get the Logmessage Alright. But then XSI says that the save > command got canceled.... > I'm lost. I'm using the OnEndOpenScene event with no problems. So I > can't figure out what I'm doing wrong. And I need this to work in > order to have a workaround for a huge bug in XSI with Reference Model > and Light List. > > -- > Ludo > > Ludovick William Michaud > (loo-doh-vik wil-ee-am me-show) > Technical Director > Janimation Inc. > www.janimation.com
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#003300"> <font face="Arial Narrow">Got it<br> Missing <br> return 0<br> <br> Now the funny part is I looked all over XSI and XSISDK docs for OnBeginSaveScene. Couldn't get the info I needed. But then i finally decided to look for Application.Advise. And there is was an example that uses OnBeginSaveScene.<br> <br> I really would like to know why my first search did not catch that one.<br> Anywho... Sorry for the bandwith<br> <br> </font> <div class="moz-signature"> <title>Ludo Signature</title> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2800.1400" name="GENERATOR"> <div align="left"><font face="Arial Narrow">Ludo<br> <br> </font><font face="Arial Narrow"><font size="2">Ludovick William Michaud<br> (loo-doh-vik wil-ee-am me-show)<br> Technical Director<br> Janimation Inc.<br> <a class="moz-txt-link-abbreviated" href="http://www.janimation.com">www .janimation.com</a></font><font size="2"> </font></font></div> </div> <br> <br> Ludovick William Michaud said the following on 3/10/2005 1:16 AM: <blockquote cite="mid422FF464.6060500@(protected)" type="cite"> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> <title></title> <font face="Arial Narrow">Ok boyz and girlz, <br> <br> I need help on this pretty fast. <br> I'm using the following event<br> OnBeginSceneSave<br> <br> But somehow I get to call my code it gets run alright but then xsi cancels the Save command. Thus I'm not saving the scene.<br> <br> Here's the code that I'm calling. Or rather the way I'm calling it.<br> Event is installed. Now when the event gets triggered it looks for a the right file which has this info. (that's the whole code of the triggered event for now)<br> <br> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----<br> def XSIApplication_OnBeginSceneSave(*args):<br> Application.Logmessage("HelloWorld")<br> </font><font face="Arial Narrow">-- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- -----<br> <br> </font><font face="Arial Narrow">Now I get the Logmessage Alright. But then XSI says that the save command got canceled....<br> I'm lost. I'm using the OnEndOpenScene event with no problems. So I can't figure out what I'm doing wrong. And I need this to work in order to have a workaround for a huge bug in XSI with Reference Model and Light List. <br> <br> </font> <div class="moz-signature">-- <br> <title>Ludo Signature</title> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2800.1400" name="GENERATOR"> <div align="left"><font face="Arial Narrow">Ludo<br> <br> </font><font face="Arial Narrow"><font size="2">Ludovick William Michaud<br> (loo-doh-vik wil-ee-am me-show)<br> Technical Director<br> Janimation Inc.<br> <a class="moz-txt-link-abbreviated" href="http://www.janimation.com">www .janimation.com</a></font><font size="2"> </font></font></div> </div> </blockquote> </body> </html>
|
|
 |