Tried that. Didn't work.
I attach my scenefile, if someone wants to take a go at it. I'm on XSI 6.02.
(There's an annotation property explaining what's going on inside the scene.)
On 10/24/07, Adam Sale <adamsale(at)shaw.ca> wrote:
> I think Brad means to create a new variable within the scripted op editor.
> sett the drop down from 'connections' to variable, then make your new
> variable from there..
>
> sounds interesting though man.. you'll have to show me what you've been up
> to tomorrow..
>
> Adam
>
>
> ----- Original Message -----
> From: Alan <alan.fregtman(at)gmail.com>
> Date: Wednesday, October 24, 2007 4:44 pm
> Subject: Re: Scripted op won't update on a per-frame basis
> To: XSI(at)Softimage.COM
>
> > What do you mean by attached parameter?
> >
> > I made a new custom parameter, set a key, and added it as an -In-
> > connection. Is that what you meant? It still won't update every frame.
> >
> >
> > On 10/24/07, Bradley Gabe <withanar(at)gmail.com> wrote:
> > > Sometimes on a scripted operator, you need to create an
> > attached parameter
> > > and set a keyframe. That always forces update on every frame.
> > >
> > > Other times, update doesn't occur due to a cycle in
> > relationships. As long
> > > as you are positive that is not the case, then the tip above
> > should work.
> > >
> > > -Brad
> > >
> > >
> > > On 10/24/07, Alan <alan.fregtman(at)gmail.com> wrote:
> > > >
> > > > Hey guys,
> > > >
> > > > I'm not new to scripting but I'm new to scripted operators.
> > I still
> > > > don't fully understand their inner workings so I apologize
> > if I'm
> > > > asking something too obvious. This is the first time I'm
> > posting on
> > > > the mailing list, too.
> > > >
> > > >
> > > > Anyway, I had this idea today... what if I used a custom
> > parameter to
> > > > toggle between a live soft-constraint and an animated
> > parameter whose
> > > > keys were set by a scripted op? These keys would only be set
> > when the
> > > > constraint is active. Then, when they are inactive, an
> > expression on
> > > > the object with the disabled constraints would borrow values
> > from the
> > > > parameter which the scripted op animated.
> > > >
> > > > I got it working, sort of... it works when I scrub the
> > timeline by
> > > > hand, or when jumping to different points in time, however,
> > when I hit
> > > > play, the scripted op doesn't actually update.
> > > >
> > > > (I'm on XSI 6.02.) I tried enabling "Always evaluate",
> > hoping this
> > > > would force it to run on a per-frame basis, but it doesn't
> > change a
> > > > thing.
> > > >
> > > > I read somewhere that constraints evaluate previous to
> > scripted ops,
> > > > so I have an intermediate object, and as I said above, it
> > works only
> > > > when scrubbing the timeline by hand, so does anyone know
> > what I may be
> > > > doing wrong or how to work around this?
> > > >
> > > > Thanks in advance for any help,
> > > >
> > > > -- Alan
> > > > ---
> > > > 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
> >
Attachment:
cachingexperiment_for_inspection.scn
Description: Binary data