Re: Self-installed custom operator not updating?

Date : Wed, 1 Nov 2006 11:53:28 +1100
To : XSI(at)Softimage.COM
From : "Aloys Baillet" <aloys.baillet(at)gmail.com>
Subject : Re: Self-installed custom operator not updating?
As a side note, if you want to have a nicer integration of your operator in the DAG, add the sphere primitive as an input as well.
If you don't do that, in some complex cases you might get a wrong input geometry...
Regarding the Debug flag, I thought it was switched off by default... You can just look at the value set in the _Init callback of the operator.

Cheers,

Aloys

On 11/1/06, Mathieu Leclaire <mleclair(at)hybride.com> wrote:
Hum... I seem to be answering my own questions tonight... I've finally seen
that there is a Debug number in the Parameters of the operator and I just
need to set it to 0. I guess I'll just need to set it to 0 automatically
inside my ApplyMyOp_Execute function. Is there an easy way to set it to 0 by
default? I'm not sure how to access this parameter. I guess I'll just browse
through the docs unless someone points it out before I find it.

-----Original Message-----
From: Mathieu Leclaire [mailto:mleclair(at)hybride.com]
Sent: Tuesday, October 31, 2006 5:19 PM
To: XSI(at)Softimage.COM
Subject: RE: Self-installed custom operator not updating?


Hum... I've played with it a bit and now it only evaluates it once. I don't
know why it evaluated it twice before but I'm still confused about all that
info being logged and why it only gets logged when animation moves the
object.

NextFrame();
//INFO : 4000 - MyOp<434> Request Data frame(sec)=0.458333,
Outpolymsh(sphere.polymsh)
//INFO : 4000 - MyOp<434> Evaluate
//VERBOSE : MyOp_Update called
//INFO : 4000 - MyOp<434> Evaluate frame(sec)=0.458333,
Outpolymsh=0xfeb7104, Inpolymsh=0xfeb7104

-----Original Message-----
From: Mathieu Leclaire [mailto: mleclair(at)hybride.com]
Sent: Tuesday, October 31, 2006 5:10 PM
To: XSI(at)Softimage.COM
Subject: RE: Self-installed custom operator not updating?


OK... I realized I had not checked Log Verbose Messages from the scripting
preferences. Not it does log it but only if I key some animation which I
guess will be fine. I though the operator would be called even if I just
moved it without saving any animation but that doesn't seem to be the case.
But now when I do change frame it logs me the following:

//INFO : 4000 - MyOp<428> Request Data frame(sec)=0.166667,
Outpolymsh(sphere.polymsh)
//INFO : 4000 - MyOp<422> Request Data frame(sec)= 0.166667,
Outpolymsh(sphere.polymsh)
//INFO : 4000 - MyOp<422> Evaluate
//VERBOSE : MyOp_Update called
//INFO : 4000 - MyOp<422> Evaluate frame(sec)=0.166667,
Outpolymsh=0xc782574, Inpolymsh=0xc782574
//INFO : 4000 - MyOp<428> Evaluate
//VERBOSE : MyOp_Update called
//INFO : 4000 - MyOp<428> Evaluate frame(sec)=0.166667,
Outpolymsh=0xc782574, Inpolymsh=0xc78257

Where is all that info coming from and why is it evaluated twice at each
frame?


-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
Of Mathieu Leclaire
Sent: Tuesday, October 31, 2006 4:52 PM
To: XSI(at)Softimage.COM
Subject: Self-installed custom operator not updating?


OK... maybe I'm not getting something but I'm doing something pretty simple
yet it doesn't work. I open the Plugin Manager and create a new operator
from the OperatorWizard. Lets say I keep the name MyOp and chose the cpp
language. I chose a directory. In connections, I chose the sphere.polymsh as
output and pick the global transform as the input. I also check Always
Evaluate from the code tab and then I generate the code. In the code all I
do is add the #include <xsi_kinematicstate.h> and I compile it. Then I load
the plug-in in XSI and run the command ApplyMyOp(); ...so now I select the
sphere and move it around and logically from examining the code, when I move
the sphere around, the script editor should log "MyOp_Update called" as
Application().LogMessage(L"MyOp_Update called",siVerboseMsg); command is in
the MyOp_Update function. Yet nothing is being logged. Why is that? It only
logs the following when I call the ApplyMyOp(); command:

//INFO : 4000 - MyOp<426> Request Data frame(sec)=0.041667,
Outpolymsh(sphere.polymsh)
//INFO : 4000 - MyOp<426> Evaluate
//INFO : 4000 - MyOp<426> Evaluate frame(sec)=0.041667,
Outpolymsh=0xc782574, Inpolymsh=0xc782574

I'm confused on what I'm doing wrong. I was used to the spdl based custom
operators but those self-installed ones are giving me a hard time. What am I
doing wrong?



Mathieu Leclaire
R&D Programmer
Hybride Technologies

"There's only one way you can fail, and that's to quit."




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



--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--

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.