The docs say that Init (ICENode) takes a CRef, so I'd try that. http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/si_cmds/cb_ICENodes_Init.html
On Tue, Oct 1, 2013 at 7:22 PM, Alok Gandhi <[email protected]>wrote: > I remember doing the same Amaan, but will check tomorrow to be sure. > > Sent from my iPhone > > On 2013-10-01, at 5:54 PM, Amaan Akram <[email protected]> wrote: > > Hi Guillaume, > > Not sure if this helps, but I did it like this some years ago > > SICALLBACK aaOcean_Init( CRef& in_ctxt ) > { > Context ctxt(in_ctxt); > ICENode myNode = ctxt.GetSource(); > } > > This worked just fine -- but it seems that the argument of my init > function, which was generated by the xsi sdk wizard, is different from what > you have in yours? > > amaan > > > > > On 1 October 2013 14:14, Guillaume Laforge <[email protected] > > wrote: > >> Good morning Ladies and Gentlemen, >> >> I'm trying to get my custom ICE node on creation (like when drag and >> dropping it in the ICETree). So I'm accessing the object from the >> ICENodeContext. >> >> Snippet code: >> >> SICALLBACK MyNode_Init( ICENodeContext& in_ctxt ) >> { >> ICENode node = in_ctxt.GetSource(); >> ... >> >> But the code crash in this scenario. >> >> Any idea on how to make it works ? >> >> Thanks, >> >> Guillaume Laforge >> >> >> -------------------------- >> To unsubscribe: mail [email protected] with >> subject "unsubscribe" and reply to the confirmation email. >> > > > > -- > 3D Artist/TD @ The Mill, London > http://www.amaanakram.com > > -------------------------- > To unsubscribe: mail [email protected] with subject > "unsubscribe" and reply to the confirmation email. > > > -------------------------- > To unsubscribe: mail [email protected] with subject > "unsubscribe" and reply to the confirmation email. >
-------------------------- To unsubscribe: mail [email protected] with subject "unsubscribe" and reply to the confirmation email.

