Hi Amaan, it sounds like the solution ! Will try it tomorrow morning. Thanks! On Oct 1, 2013 5:54 PM, "Amaan Akram" <xsil...@warpedspace.org> 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 <guillaume.laforge...@gmail.com > > 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 softimage-requ...@listproc.autodesk.com with >> subject "unsubscribe" and reply to the confirmation email. >> > > > > -- > 3D Artist/TD @ The Mill, London > http://www.amaanakram.com > > -------------------------- > To unsubscribe: mail softimage-requ...@listproc.autodesk.com with subject > "unsubscribe" and reply to the confirmation email. >
-------------------------- To unsubscribe: mail softimage-requ...@listproc.autodesk.com with subject "unsubscribe" and reply to the confirmation email.