RE: [script] how to create a scripted op with vbscript?

Date : Wed, 3 Oct 2007 15:41:56 -0400
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <Stephen_Blair(at)Softimage.COM>
Subject : RE: [script] how to create a scripted op with vbscript?
 
 
 
str = "sub fred_Update( ctx, out )" & Chr(10) _
& "   LogMessage ""fred::Update()""" & Chr(10) _
& "   out.Value = 2" & Chr(10) _
& "end sub"

'NewScene null, false 
GetPrim "null" 

Application.LogMessage "posx = " & GetValue( "null.kine.local.posx" ) 

dim op
set op = AddScriptedOp( "null.kine.local.posx", str ,null,"fred" )

Application.LogMessage "posx = " & GetValue( "null.kine.local.posx" ) 

________________________________

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of peter boeykens
Sent: Wed 03 October 2007 2:19 PM
To: XSI(at)Softimage.COM
Subject: [script] how to create a scripted op with vbscript?


it sounds trivial, but I spent all day trying to get it to work,
applying a scripted operator from a script, in vbscript.
contrary to most of the docs that have plenty vbscript examples, I didnt
find an example of how to this.
its the command I'm after, but rather how to feed it the code part.
 
if someone could point me in the right direction, and where to find
"scripted operators for newbies" info?
you're very welcome to RTFM me :-)

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.