regarding the Execute ( Graphic Sequencer )
void <xgs_plugin-item_name>_Execute( const CRef& in_context, LPVOID
*in_pUserData )
n_context
CRef <javascript:cpp_CRef.Click()> &
A reference to a GraphicSequencerContext
<javascript:cpp_GraphicSequencerContext.Click()> object.
Wrong.
XSI crashes if you try to get a reference of the context. It should be:
void <xgs_plugin-item_name>_Execute( const CRef in_context, LPVOID
*in_pUserData )
and actualy the DX9Display exemple uses the value, not the reference.
I got caught today by this one myself in one of our plugins. It's not an
easy one to find, especialy because every other XSI plugin's callbacks
use a reference on the context, it's weird that only this one ( and the
_Init and _Term ) must use a value. Easy to fall in the trap. Is this by
design ?
--
guy rabiller | 3d technical director (at) LaMaison
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi