|
hi,
i’m using XSI 5.11 and can’t get around my problem.
i have a PPG with several buttons that do specific task. on one of the button, it does something like this:
function paPublishScene_OnClicked(){
SaveScene();
CaptureViewport( 2, 0 );
LogMessage( “Saved and Captured” );
}
somehow after XSI successfully captured the viewport, the script processing just stop! it won’t reach the 3rd line (the LogMessage part).
i applied the function to PPGLayout.logic through paPublishScene_OnClicked.toString()
somehow the SaveScene() is messed up with lines of code after it and it only happen if i applied it to OnClicked. running the script from script editor will do just fine.
is this a bug in XSI 5.11? is there a way to get around it? please help.
i tried with RegisterTimerEvent before but it won’t do any good. what i did is trigger the event before save, and shutdown the event afterward. it still the same, SaveScene() will causes ALL script processing stop after a bit of time (it does reach the CaptureViewport part but not the LogMessage part).
a bit more info: i am using Alienbrain 7.5.2.4592 for asset management.
any help is greatly appreciated. many thanks
|