Re: PPGEventContext Object "Inspected" & "InspectedObjects"

Date : Thu, 5 Oct 2006 17:48:51 +1000
To : XSI(at)Softimage.COM
From : "Aloys Baillet" <aloys.baillet(at)gmail.com>
Subject : Re: PPGEventContext Object "Inspected" & "InspectedObjects"
I don't think you can retrieve all inspected PPGs...
But all inspected PPGs might have acces to your code if needed.
Why do you need to get access to the other inspected properties from inside one PPG?
Just trying to figure out...


On 10/5/06, Andrea Padovan <xsidriller@gmail.com> wrote:
Hi again,
 
When I build a new CustomProperty C++ project with SDKWizard, the comment in *_PPGEvent function says:
 
 // The context object is used to determine exactly what happened
 // We don't use the same "PPG" object that is used from Script-based logic code
 // but through the C++ API we can achieve exactly the same functionality.
 PPGEventContext ctxt( in_ctxt ) ;
 PPGEventContext::PPGEvent eventID = ctxt.GetEventID() ;
 CustomProperty prop = ctxt.GetSource();
 
How I could do for PPG.Inspected(); or PPG.InspectedObjects(); ?
I'm missing something in SDK documentation ?
I tried to search something in Google, no solution...
Anybody uses Inspected and InspectedObjects properties with C++ ?
 
Sorry for pushing, but I really hope to wrong something...
 
2006/10/5, Andrea Padovan <xsidriller@gmail.com>:
Hi Aloys,
 
I think so too. Today I'm losing my time for ""ridiculous"" thing...
Anyway, this dam "PPG.Inspect" property is extremely useful working with multi inspected
PPGs using actual programming interface, I can not understand why Softimage didn't
put this "extremely useful" property in PPGEventContext object. Ridiculous.
 
Maybe... is there a way to get all inspected PPG ?
PPGEventContext.GetSource()  or CustomProperty prop( Context(in_ctx).GetSource() )
return me only the first PPG...
 
thx again.
 
Andrea
 
2006/10/5, Aloys Baillet <aloys.baillet@gmail.com>:
Hi Andrea,

PPGEventContext.GetSource() should return the CustomProperty object:
CustomProperty prop( Context(in_ctx).GetSource() );

And the PPGEvent callback will be called for each inspected property where the event is relevant.
I wish the scripting PPG Event callbacks could use the same scheme instead of the ugly PPG global variable...


Cheers,

Aloys



On 10/5/06, Andrea Padovan <xsidriller@gmail.com > wrote:
Hi to all,
 
I'm converting a scripted CustomProperty to C++, somebody know the equivalens
PPG.Inspected(); or PPG.InspectedObjects(); command in C++ ?
 
SDK Documentation says:
<<Note: The equivalent object in the C++ API is called PPGEventContext.>> but...
 
is there a solution ?
Thank you very much for any hit.
 
--
ããããããããããã
Andrea Padovan

Tools Designer @
SEGA CORPORATION
AM R&D Dept.#1 Arcade Team
AM R&D Div.
http://www.sega.co.jp/
Blr. Founder
http://www.borderliner.it
Currently located in Tokyo Japan



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



--
ããããããããããã
Andrea Padovan

Tools Designer @
SEGA CORPORATION
AM R&D Dept.#1 Arcade Team
AM R&D Div.
http://www.sega.co.jp/
Blr. Founder
http://www.borderliner.it
Currently located in Tokyo Japan



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