RE: dotXSI custom templates

Date : Thu, 5 Jul 2007 20:57:04 -0700
To : <XSI(at)Softimage.COM>
From : "Wessam Bahnassi" <wbahnassi(at)inframez.com>
Subject : RE: dotXSI custom templates

I haven’t done this before, basically because I never had to (and I think you shouldn’t need to really). You have to first be able to register the new template with the Crosswalk SDK, then modify the exporter to get the data from the scene and generate the new template, then build it. Too much of a hassle for me, and you always have the brilliant XSI_CustomPSet template to help out. This way TDs write scripts to process the scene and generate those CPSets prior to export. Now the question is, why would you want to take out the default templates anyways? Can’t you just ignore them?

 

Wessam Bahnassi

Microsoft DirectX MVP,

Programmer

Electronic Arts

--

'Talk is cheap because supply exceeds demand'

 

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Christopher Crouzet
Sent: Thursday, July 05, 2007 8:18 AM
To: XSI Mailing List
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.