diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2008-03-28 03:08:41 +0300 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2008-03-28 03:08:41 +0300 |
commit | 3b36c10702c1395f3ce037fb75b48108333064fd (patch) | |
tree | 9ec42b6328aea84db7e73b86e6a27a4423b233ec /release/scripts/flt_properties.py | |
parent | e7651c53c35534952777e80274736ac9a43f6929 (diff) |
-> Extension Node attribute support for FLT I/O
Extension node attributes are now read and stored as ID
props for the following Node types:
-Object Nodes
-Group Nodes
-LOD Nodes
-DOF Nodes
-Inline Light Point Nodes
The extension data is written back out on export.
Note that this commit only adds support for attribute extensions.
Completely new node types via the extension record are still
unsupported.
Diffstat (limited to 'release/scripts/flt_properties.py')
-rw-r--r-- | release/scripts/flt_properties.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/release/scripts/flt_properties.py b/release/scripts/flt_properties.py index 2c9e9d7667b..bc7c972ca66 100644 --- a/release/scripts/flt_properties.py +++ b/release/scripts/flt_properties.py @@ -227,6 +227,14 @@ def read_prop(fw,type,length): rval = fw.read_string(length) return rval + +FLTExt = { + '3t8!id' : 'Ext', + '4t8!sid' : '', + '5c!reserved': 0, + '6c!revision' : 0, + '7S!recordcode' : 0 +} FLTGroup = { '3t8!id' : 'G', '4s!priority' : 0, @@ -280,7 +288,7 @@ FLTInlineLP = { '7C!back color: b' : 255, '8C!back color: g' : 255, '9C!back color: r' : 255, - '10i!display mode' : 255, + '10i!display mode' : 0, '11f!intensity' : 1.0, '12f!back intensity' : 0.0, '13f!minimum defocus' : 0.0, @@ -305,15 +313,15 @@ FLTInlineLP = { '32f!lobe roll angle' : 0.0, '33f!dir falloff exponent' : 1.0, '34f!dir ambient intensity' : 0.1, - '35f!anim period' : 0, + '35f!anim period' : 2, '36f!anim phase' : 0, - '37f!anim enabled' : 0, + '37f!anim enabled' : 1.0, '38f!significance' : 0.0, '39i!draw order' : 0, - '40I!flags' : 813875616, + '40I!flags' : 277004288, '41f!roti' : 0, '42f!rotj' : 0, - '43f!rotk' : 0 + '43f!rotk' : 1.0 } FLTInlineLPDisplay = [35,36,37,41,42,43] @@ -587,6 +595,7 @@ FLT_Records = { 14 : FLTDOF, 1 : FLTHeader, 111 : FLTInlineLP, + 100 : FLTExt, 'Image' : FLTImage } |