Re: PPGEventContext Object "Inspected" & "InspectedObjects"

Date : Thu, 5 Oct 2006 17:19:08 +0900
To : XSI(at)Softimage.COM
From : "Andrea Padovan" <xsidriller(at)gmail.com>
Subject : Re: PPGEventContext Object "Inspected" & "InspectedObjects"
I have two button in my PPG;
one that simply get the object owner of inspected PPG and plots particulars parameters and
other button simply delete the PPG and close it.
 
The objects are not necessarily selecteds, here we often works with a lot of objects and data...
So when user for example delete all Inspeted PPGs, I can delete other things and to get always
a perfectly cleaned scenario.
 
I'm going mad because "they" sometimes say something similar to
<< but through the C++ API we can achieve exactly the same functionality.>> and often is not 100% true.
 
Today damned day...
 
Thanks again for you time about this problem, I'm sendin mail to support too,
In my opinion there are not solutions using only c++ and without spdl file.
 
 
2006/10/5, Aloys Baillet <aloys.baillet(at)gmail.com>:
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(at)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(at)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(at)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(at)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 (at)
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 (at)
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 (at)
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

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.