[scripting] caching point data over time

Date : Mon, 31 Jul 2006 09:43:10 -0700
To : XSI_MailingList <XSI(at)Softimage.COM>
From : Greg Smith <greg(at)stanwinston.com>
Subject : [scripting] caching point data over time
I have an interesting little problem here, I am trying to create a point
caching tool that captures point position data from a cached syflex
simulated object and in turn apply it to a hair object. So far I have it
'mostly' working. This it is the emphasis on 'mostly' that my question
arises. It seems at certain frames, the positional data is not properly
being captured. In fact, upon inspection. It looks as if the data is
that of the previous frame. To me my guess is that the script I run
captures the point data before the syflex cache has a chance to refresh.
I've tried to prevent that from happening by using a Refresh() or
SceneRefresh() command, but that doesn't seem to help me one bit.
Bugger! What even concerns me even more is that every time I run my
caching script. Its the same exact frames that the caching fails on. 
I'm trying everything that I can possibly think of to ensure I am
getting the right data. Instead of using ActivePrimitive.Geometry, I am
using ActivePrimitive.GetGeometry(frame#) (using python) to get the data
from the right time frame. still no luck. So I am a bit stuck as what
would cause these hiccups. I imagine if I could access the data from the
syflex cache files, this wouldn't be much of a problem. Grrr.

oh well, I will continue to test the stress factors of my hair roots!

Greg


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