Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
accessing XSIUtils, XSIMath, ... in netview
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt Lind  
View profile  
 More options Jun 15 2012, 6:51 pm
From: Matt Lind <ml...@carbinestudios.com>
Date: Fri, 15 Jun 2012 23:51:47 +0100
Local: Fri, Jun 15 2012 6:51 pm
Subject: accessing XSIUtils, XSIMath, ... in netview

Anybody know how to get access to global intrinsic objects in netview?

I can get reference to XSIFactory and Application just fine, but when I use the same technique to get a reference to XSIUtils, XSIMath, or any of the other global objects, netview throws errors.

try {
                var oXSIFactory = new ActiveXObject( "XSI.Factory" );                    // OK
                var Application = oXSIFactory.CreateActiveXObject( "XSI.Application"      );           // OK
                var XSIMath     = oXSIFactory.CreateActiveXObject( "XSI.XSIMath"  );      // fail
                var XSIUtils    = oXSIFactory.CreateActiveXObject( "XSI.XSIUtils" );            // fail

} catch(e) {

                // Cannot access XSI, we're not running in Netview.
                Application.LogMessage( e.description );
                var Application = null;

}

// throws error:
Application.LogMessage( "'" + XSIUtils.Slash + "'" );

Thanks,

Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Lind  
View profile  
 More options Jun 15 2012, 6:58 pm
From: Matt Lind <ml...@carbinestudios.com>
Date: Fri, 15 Jun 2012 23:58:27 +0100
Local: Fri, Jun 15 2012 6:58 pm
Subject: RE: accessing XSIUtils, XSIMath, ... in netview

Nevermind.  Figured it out:

try {
                var oXSIFactory = new ActiveXObject( "XSI.Factory" );
                var Application = oXSIFactory.CreateActiveXObject( "XSI.Application"      );
                var XSIMath     = oXSIFactory.CreateActiveXObject( "XSI.Math"  );
                var XSIUtils    = oXSIFactory.CreateActiveXObject( "XSI.Utils" );

} catch(e) {

                // Cannot access XSI, we're not running in Netview.
                Application.LogMessage( e.description );
                var Application = null;

}

This should be documented, but isn't.

Matt

From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind
Sent: Friday, June 15, 2012 3:52 PM
To: softim...@listproc.autodesk.com
Subject: accessing XSIUtils, XSIMath, ... in netview

Anybody know how to get access to global intrinsic objects in netview?

I can get reference to XSIFactory and Application just fine, but when I use the same technique to get a reference to XSIUtils, XSIMath, or any of the other global objects, netview throws errors.

try {
                var oXSIFactory = new ActiveXObject( "XSI.Factory" );                    // OK
                var Application = oXSIFactory.CreateActiveXObject( "XSI.Application"      );           // OK
                var XSIMath     = oXSIFactory.CreateActiveXObject( "XSI.XSIMath"  );      // fail
                var XSIUtils    = oXSIFactory.CreateActiveXObject( "XSI.XSIUtils" );            // fail

} catch(e) {

                // Cannot access XSI, we're not running in Netview.
                Application.LogMessage( e.description );
                var Application = null;

}

// throws error:
Application.LogMessage( "'" + XSIUtils.Slash + "'" );

Thanks,

Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Fregtman  
View profile  
 More options Jun 16 2012, 7:07 pm
From: Alan Fregtman <alan.fregt...@gmail.com>
Date: Sat, 16 Jun 2012 19:07:53 -0400
Local: Sat, Jun 16 2012 7:07 pm
Subject: Re: accessing XSIUtils, XSIMath, ... in netview

And to complete the collection, don't forget:
XSIUIToolkit = 'XSI.UIToolkit'
XSIDialog = "XSIDial.XSIDialog"

By the way, not sure in JS but in Python when getting the XSI.Application
object, I have to get ".Application" from it to get the real Application
object.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »