Re: input pushing operator update?

Date : Thu, 3 Aug 2006 16:13:00 +0100 (BST)
To : XSI(at)Softimage.COM
From : "Andy Nicholas" <andy(at)andynicholas.com>
Subject : Re: input pushing operator update?
You could try adding a simple boolean input parameter to your operator.

When your command is about to update the UDBs, it could set the parameter
to false, and when it's finished updating both UDBs, it could turn it back
to true again. That way, the operator can just disable it's evaluation of
the output UDB whenever the parameter is false.

Would that work?

>
> Thanks, but that doesn't seem to be it. Changing the other types of inputs
> to my operator (such as primitives) behaves in the expected manner. The
> reason this is an issue is that I have a custom command which writes to
> two different UserDataBlobs which are both inputs to my operator. After
> the first is written, the operator updates and tries to read both blobs
> while the command is writing the second one : Crash.
>
> --- On Thu 08/03, Andy Nicholas < andy(at)andynicholas.com > wrote:
> From: Andy Nicholas [mailto: andy(at)andynicholas.com]
> To: XSI(at)Softimage.COM
> Date: Thu, 3 Aug 2006 15:11:42 +0100 (BST)
> Subject: Re: input pushing operator update?
>
> Ah right, I see what you're getting at now.The only thing I can think of
> that you may want to do a little digging on,is the classification of the
> parameter you've got your operator connectedto. If you have a look at the
> AddParameter2 function, you have thesiParamClassification argument that
> tells XSI how that parameter is to beused. I'm guessing that it gives a
> hint to XSI to tell it when it shouldpull that parameter to update it at
> the appropriate point.I don't know if that'll be of any help to you
> though, even if it is thecause of the problem.>>> Well, my impression was
> that the scene keeps track of when an operator has> inputs that have
> changed (are "dirty") but only pulls an update of the> operator when its
> output value is required.>>>>  --- On Thu 08/03, Andy Nicholas <
> andy(at)andynicholas.com > wrote:> From: Andy Nicholas [mailto:
> andy(at)andynicholas.com]> To: XSI(at)Softimage.COM> Date: Thu, 3 Aug 2006
> 14:52:01 +0100 (BST)> Subject: Re: input pushing operator update?>> If I
> understand what you're saying, that sounds like it's working the> wayit
> should.If you change an input to an operator, it will update. The> output
> isdependent on the input, so if the input updates, it makes sense> that
> theoutput should change too.>> I can't quite figure out this> behavior:>
> I've got a SICO with multiple inputs and a single output. The> output is
> a> UserDataBlob which is pushed to Mental Ray. Nothing else in> the scene
> has> anything to do with the output blob after it is created. So> I figure
> that> the operator should only be pulled when a render is> started.
> However, some> of the operator's inputs are also UserDataBlobs> and when
> write to one of> them, the operator Update callback is> triggered.> Any
> ideas why this is happening?> Ben>>>>>>
> _______________________________________________> Join Excite! ->
> http://www.excite.com> The most personalized portal on the Web!>>> --->>
> 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>>
> _______________________________________________> Join Excite! -
> http://www.excite.com> The most personalized portal on the Web!>>> --->
> 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
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
> ---
> 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.