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
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.
--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--