# URGENT:scripting in xsi

**URL:** https://forum.highend3d.com/t/urgent-scripting-in-xsi/61106
**Category:** Xsi
**Tags:** developers
**Created:** [April 4, 2001, 10:14pm UTC](https://forum.highend3d.com/t/urgent-scripting-in-xsi/61106 "2001-04-04T22:14:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gsnyder](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/5fc32e/32.png) [@gsnyder](https://forum.highend3d.com/u/gsnyder)
#### Post date: [April 4, 2001, 10:14pm UTC](https://forum.highend3d.com/t/urgent-scripting-in-xsi/61106/1 "2001-04-04T22:14:39Z")

</div>

Hi there,

I was wondering if anyone out there knew how to do the following in XSI/Visual Basic/HTML code:

How do you return a value from a VB function?  
How do you query an html form (like a text field) through VB?  
How do you declare a global variable in VB?

Please let me know

---

<div class="post-metadata">

### Author: ![shanesternstein](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/6a8cbe/32.png) [@shanesternstein](https://forum.highend3d.com/u/shanesternstein)
#### Post date: [April 5, 2001, 4:33am UTC](https://forum.highend3d.com/t/urgent-scripting-in-xsi/61106/2 "2001-04-05T04:33:47Z")

</div>

Returning a function value

Function WhackHoSlutBitch( args)  
Dim temp  
temp = args & “space filling instructions”  
WhackHoSlutBitch = temp  
End Function

Query Submitted HTML forms. You can’t do that in XSI. you can use Prompts in XSI to get values from the user directly via an input box.

Declaring global variables. Just use “Dim varName” on the top level of code and everything will refer to that variable.

-Vijay

---

<div class="post-metadata">

### Author: ![oozoux](https://forum.highend3d.com/user_avatar/forum.highend3d.com/oozoux/32/55073_2.png) [@oozoux](https://forum.highend3d.com/u/oozoux)
#### Post date: [April 15, 2001, 7:22pm UTC](https://forum.highend3d.com/t/urgent-scripting-in-xsi/61106/3 "2001-04-15T19:22:35Z")

</div>

With the XSI Netview, you can actually write scripts inside html pages, and mix XSI commands with browser commands.

The trick is do create the XSI object inside your html script:

set XSIapp = createObject(“XSI.Application”)  
set xsi = XSIapp.application

prefix all the xsi commands with xsi. like xsi.logmessage we should have some examples on [www.softimage.com/xsinet](http://www.softimage.com/xsinet) shortly.

-Olivier Ozoux

---

<div class="post-metadata">

### Author: ![mikeee](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/ea5d25/32.png) [@mikeee](https://forum.highend3d.com/u/mikeee)
#### Post date: [April 18, 2001, 7:59am UTC](https://forum.highend3d.com/t/urgent-scripting-in-xsi/61106/4 "2001-04-18T07:59:52Z")

</div>

we have tried your trick with the XSI Object inside our html script and it works pretty fine as long as the file  
is stored locally.  
as soon as we place the html script on a webserver the automation server cannot create the XSI object.  
we assume that it has something to do with the security properties of the netview-browser. is there a way to adjust them? does anybody know how we can create our XSI object from a webserver?  
thanx,  
chris and michi
