RE: Self-installed custom operator not updating?

Date : Tue, 31 Oct 2006 17:09:40 -0500
To : <XSI(at)Softimage.COM>
From : "Mathieu Leclaire" <mleclair(at)hybride.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


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.