Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

hi guys,

did u manage to read actor attributes?
because I faces a following problem: :confused:

I have following piece of code in trigml:
" />
where - attribute name

and in actor's createchild method I have following:

static int CircleModel_CreateChild( IVfsCacheModel* pObj, IVfsCacheContainer* container, VfsPathElement name, IVfsNode** node)
{
//some variables definitions
error = (error == SUCCESS) ? IACTORCONTEXT_CreateStructContainer( self->m_context, name, 2, (IVfsContainer*)container, 0, &myContainer ) : error;

error = (error == SUCCESS) ? IACTORCONTEXT_CreateInteger( self->m_context, , container, 0, &rCoord ) : error;

error = (error == SUCCESS) ? IVFSSTRUCTCONTAINER_AddChild( myContainer, rCoord ) : error;

error = (error == SUCCESS) ? IVFSNODE_SetData( rCoord, NULL, AEEIID_VFS_INTEGER_DATA, (void*)&tempR, sizeof( tempR ) ) : error;

*node = (error == SUCCESS) ? (IVfsNode*)myContainer : NULL;

}

Could you give me a hint how to read actor's attribute in TrigML?