xml convert

Started by kokia, Aug 04, 2015, 03:00 PM

Previous topic - Next topic

kokia

hello guys is there any thing to convert createobject statments to xml?
if there is plz give me and convert this to xml.plz
CreateObject(526,1,Vector(-470.653, -1885.77, 322.61),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(526,1,Vector(-470.709, -1890.08, 322.61),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(526,1,Vector(-477.235, -1885.85, 322.36),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(526,1,Vector(-482.656, -1891.59, 323.06),255).RotateToEuler(Vector(0, 7.44204e-010, 0),1)
CreateObject(526,1,Vector(-482.675, -1891.31, 323.06),255).RotateToEuler(Vector(0, 7.44204e-010, 0),1)
CreateObject(526,1,Vector(-482.791, -1891, 323.06),255).RotateToEuler(Vector(0, 7.44204e-010, 0),1)
CreateObject(526,1,Vector(-482.624, -1890.67, 323.06),255).RotateToEuler(Vector(0, 7.44204e-010, 0),1)


kokia


Thijn

Those rotations are small enough to ignore, so just convert the positions like so:
<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
<item model="526" name="beachball">
<position x="-470.653" y="-1885.77" z="322.61" />
<rotation format="axisangle" x="0.000000" y="0.000000" z="0.000000" angle="1.000000" />
</item>
</itemlist>
Just keep adding Item elements.