Dan-
I'm not as advanced in working with SCOPs as some others (Guy and Kim come to mind). And while I have used UserDataBlobs many times, I have always used them as a container for a static data set from which the SCOP accesses the information. I have attempted using SCOPs to store data sets within their UserData, however I've found there are smaller memory limits. So if your meshes are not too big, you can try that route.
Perhaps you can list out your steps as psuedo code? That's not a total giveaway but it might help in figuring out why XSI is not setting your SCOP as dirty. In the meantime, I'm going to try a simple experiment which is a SCOP that writes current frame info to a UserDataBlob, and then reads what was stored there on frame update. If I can get that to work, then I'll post the code, which you can then hopefully convert into your data read/write situation.
On Dec 29, 2007 10:44 AM, christian keller <
christian(at)fongfood.com> wrote:
i don´t know how your plug works, but if you you want a fast workaround :
as always with sims it not that bad that you write your data on disk, you could reuse it.
you need a scop or event which writes positional data in a text file and read it back in, to
compute your vel values. quite easy and reliable
chris
----- Original Message -----
Sent: Saturday, December 29, 2007 2:24 PM
Subject: Re: SCOPs with more than one output...
Hi Brad,
That doesn't seem to change a thing unfortunately....
Something peculiar I have noticed is that as long as I have the PPG of the UserDataBlob open the cache is being updated... As soon as I close it, only the weightmap seems to update.
Should I be using the UserData property of the InUpdateContext for this (Which I just noticed today in the SDK)? or am I right to be using a UserDataBlob?
It's my first crack at something this ambitious and I've learned a lot while doing it, but I seem to be stuck with the end in sight! It's very frustrating!
This is for a current project where I'm freelancing so I guess I shouldn't post the code as I wrote it on their time, but if you wouldn't mind I'd love to mail it to you off-list so you can give it a once-over :)
All the best,
DAN
On Dec 28, 2007 7:49 PM, Bradley Gabe <
withanar(at)gmail.com> wrote:
Dan-
Try putting a float param on your SCOP, and setting a single keyframe on it. Not sure if that will force update on your UserDataBlob data, but that has worked for me on other SCOPs when they wouldn't automatically update.