dotXSI custom templates

Date : Thu, 5 Jul 2007 17:18:23 +0200
To : "XSI Mailing List" <XSI(at)Softimage.COM>
From : "Christopher Crouzet" <christopher.crouzet(at)gmail.com>
Subject : dotXSI custom templates
    Hello the list,


I'm actually doing some experimentations with the crosswalk SDK to manage some 3D data.
I already figured out how to export/import some hierarchy objects with transformations, polygon mesh data, and all that sort of things natively included in the Semantic Layer.

Now, I would like to create my own templates and the associated CSL classes to easyly manipulate the data.
I can list what looks like the custom templates with CXSIParser::dotXSISupported, then add my custom template with the CdotXSITemplates::Add function. I suppose it works since my custom template appears in the list when I print it, but then I don't know how to use it ?
It seems that it works with a callback system as described in the SLTemplateCallback documentation page, but I don't know how to implement it. I can see the callback members (like m_ReadCallback) in my new CdotXSITemplate object but I don't figure out how to connect them to custom functions.
Is there no example for adding and managing custom templates ?

I know that I could use the CSLCustomPSet class but that's not what I want.



I also would like to know how to remove some of the defaults templates as for example SI_CoordinateSystem, SI_Angle, SI_Ambience, ...
I tried some functions (that I don't always fully understand their purpose) like CXSIParser::CleardotXSINativeTemplates, CXSIParser::SkipTemplate, CXSIParser::WriteTemplate, CXSIParser::GetdotXSINativeTemplates->Remove, CSLScene::UnRegisterAllCallbacks, and some others. But none did the job.



It looks like that there isn't a lot of documentation and a few examples on the net.


Thank you !!

Christopher.

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.