Hi Julian
I'm not sure whether this should work or not. Topo ops are not fully
supported:
http://softimage.wiki.avid.com/index.php/Modeling#Changing_an_Existing_G
eometry
The fact that the op is getting the original geometry at each update
rings a bell, but I cannot remember where I've seen this before.
I tried with a self-installing op, and I set the Topo classification on
an op parameter, but it made no diff.
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Julian Johnson
Sent: Fri 22 February 2008 5:09 AM
To: XSI(at)Softimage.COM
Subject: [scripting] Problems with Geometry.Get2/GetGeometry 2 in
Runtime SCOP
I've written a test runtime SCOP (for a geometry script I'm writing)
that should simply add another quad to a mesh on each frame (displaced
on Z by 1 unit). Essentially, at the beginning of the Update function it
reads in the existing Geometry using Geometry.Get2, adds a poly to that
geometry and then writes it back using Geometry.Set.
Geometry.Set successfully updates the geometry but when the next update
is called, Geometry.Get2 does not get the updated Geometry description.
Instead, it looks like the SCOP is picking up the geometry description
from frame 0 but not subsequent frames (where it's been altered). Anyone
have any ideas? In the SDK it talks about using GetGeometry2(frame) but
this isn't allowed in the context of an operator. I *think* that within
the context of a SCOP Geometry.Get2 should automatically pick up the
geometry on the current frame...
The SCOP is attached:
scop_getgeo.py
Bizarrely, if, instead of calling Geometry on each frame, I just cache
my own geometry description into UserData, the SCOP works fine. See:
scop_userdata.py.
Is it possible, within the context of a SCOP, to call the updated
Geometry on each frame using Geometry.Get2? Should it be possible?
Julian
========================================
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of Men-from-Mars unless
specifically stated.
If you have received it in error, please delete it from your system. Do
not use, copy or disclose the information in any way nor act in reliance
on it and notify the sender immediately.
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi