[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Thread Index]
[Monthly Archives] [List Home]

[Virtools] Virtools SDK / Save composition with scripts



Hello,
I want to save a composition through a custom player.
I use the following code to do this (didn't find any info about how to
do this, so I'm not sure it's the best way...): 

{
	const XObjectPointerArray &allObjPtrArray =
TheCKContext->GetObjectListByType( CKCID_OBJECT, TRUE );
	int objCount = allObjPtrArray.Size();
	
	CKObjectArray* allObjArray = NULL;
	allObjArray = CreateCKObjectArray();

	for( int noObj=0; noObj < objCount; noObj ++ )
	{
		CKObject* obj = NULL;
		obj = allObjPtrArray.GetObject( noObj );

		CKBOOL res = allObjArray->AddIfNotHere( obj );
	}

	TheCKContext->SetGlobalImagesSaveOptions( CKTEXTURE_EXTERNAL );
	TheCKContext->SetFileWriteMode(CKFILE_UNCOMPRESSED);
	TheCKContext->Save( filename, allObjArray, 0xFFFFFFFF, NULL,
NULL );
	DeleteCKObjectArray( allObjArray );
}
My pb : The save is ok, but the scripts of my composition remain hidden
when I load the composition in the Virtools interface. How can I avoid
that ?
Thank you very much,
Arnaud.

____________________________________________
Arnaud MUTHELET               SIM TEAM
arnaud@simteam.com            http://www.simteam.com

62 Boulevard Davout - 75020 PARIS - FRANCE
tel: 33.(0)1.53.27.37.77
fax: 33.(0)1.53.27.37.78
____________________________________________
                  SIM TEAM
 un autre regard sur la realite virtuelle
____________________________________________


...............................................................
Distributed via the virtools-user-group list: http://www.theswapmeet.com/numl.html
To reply to the list instead of its author, use "Reply to All"
To unsubscribe: send "unsubscribe virtools-user-group" to Majordomo@lists.theswapmeet.com
To subscribe: send "subscribe virtools-user-group" to Majordomo@lists.theswapmeet.com
To post a message: send it to virtools-user-group@lists.theswapmeet.com
...............................................................


References: