@@- First problem : when I click on my image map, the skeleton's element is selected in Xsi, but when I click a second time, nothing happens, I have to close the page in the netview, then reopen it, to be able to select another skeleton's part.
I'm not very familiar with HTML, but this sounds like a problem with event triggering. I thought I remembered a bug with earlier v1.5 releases and Netview acting this way, but I think it's fixed in v1.5.3. Otherwise, try passing an event to your selectioin button rather than a direct call to the selectobj command. This will force the page to be reevaluated and refreshed.
@@- Second problem : I created a lot of *.vbs files to enable those selection. Isn't it possible to add the XSI code inside the HTML page, instead of calling external VBS files?
Yes, you can put your XSI code in the script tags of your HTML page, but if you do that your XSI code will be echoed in the script editor log line-by-line every time it executes whether from a page refresh/reload or by trigger of an event. You might be better off making your vbs files into XSI commands by dragging n' dropping onto a toolbar then calling the commands from your HTML page. this has the added benefit of running a little faster, keeping your HTML page simpler, and eliminates the burden of all lines of XSI code getting logged in the script editor.
Example (Jscript):
// Get connection to XSI from HTML code:
var oXSI = new ActiveXObject( "XSI.Application" );
// Verify a connection was made
if ( oXSI == undefined ) {
Window.alert( "Doh! Connection to XSI failed" );
return(-1);
}
// Call XSI's LogMessage Command
// (Must prefix command with the XSI application object)
oXSI.LogMessage( "Connection to XSI established", siInfo );
// Run your own XSI command
oXSI.MyCommand( myParameter1, myParameter2, etc. );
Matt
Matt Lind
Animator / Technical Director
Softimage certified instructor:
Softimage|3D
Softimage|XSI
speye_21@hotmail.com