and what to do with .rex file? how to use it? On 4 déc, 09:35, Toni Alatalo <[email protected]> wrote: > On Dec 4, 2010, at 4:50 AM, HartsAntler <[email protected]> wrote: > > > > > Also i think we should extend .rex to support a link to a script, > > either js or python script. Its a little unclear having .js files > > floating in the directory along with all the other assets with out > > some top level reference. I propose a <script> xml element that goes > > under entity, <script url="file://myscript.js"/> > > The schema of the files that Naali reads natively is that there are > all the entities with their components, and the values of the > attributes of the components. Nothing else. > > So the way to add script references is to add a component which has > the script reference as an attribute. It is already there, EC_Script, > and has as data the type (currently py or js file, adding py class ref > is on plans) and for files the asset ref. > > If you want to make a global script for some scene, which is not > attached to any 3d object, the way is to add a non-positioned entity > for that. IIRC the ChatApplication example demonstrates that, i.e. has > an entity "chatapplication" with Script pointing to the js source of > that app. > > I think we can think of some place in Blender too for such non-3d > data, it itself of course has datablocks like text etc. > > -Toni > > > > > -brett > > > -- > >http://groups.google.com/group/realxtend > >http://www.realxtend.org
-- http://groups.google.com/group/realxtend http://www.realxtend.org
