Re: Scripted operator documentation

Date : Tue, 03 Jul 2007 19:43:06 +0100
To : XSI(at)Softimage.COM
From : squid <squid(at)3d-palace.com>
Subject : Re: Scripted operator documentation
there's a slightl;y different method for nurbs

var geo = Insurfmsh.Value.Geometry;
var srfCollection = geo.Surfaces;
var pts = srfCollection(0).Points

but i could be wrong as i don't have xsi booted up atm.

Bernard Lebel wrote:
Ok let me see if I got this right:
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Disposition: inline


I select the object's primitive Right click > Set Scripted Opetator. I get the Outsurfmsh and Insurfmsh connections already created, both having sphere.surfmsh as the value. In the main pane, I put

dim aPnts
aPnts = Insurfmsh.Value.Geometry.Points.PositionArray

Yet when I click Apply, I always get this error:
'ERROR : Object required: 'Insurfmsh.Value' - [line 2 in update code]
'ERROR : 2190 - The scripted operator connected to sphere.surfmsh
produced a runtime error during its evaluation and will no longer be
evaluated.

Surely I'm missing something?


Thanks! Bernard




On 7/3/07, Martin Matzeder <xsi(at)booyabase.de> wrote:
If You have a inputport of  the scop set to the activeprimitive:

Inpolymsh.Value.Geometry.Points.PositionArray

Martin

Bernard Lebel schrieb:

[5.11]

Hello,

Is there an area of the SDK doc dedicated to scripted operators? It is
my very first attempt at scops and I'm already lost.

For instance, let say you apply a scop to a the shape animation stack.
How do you get the mesh's PositionArray?


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

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

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


---
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.