xormenter / Blender-Anno-.cfg-Import-Addon

Parses Anno (1800) .cfg files and automatically imports and positions all models, props, particles and decals in the scene.
GNU General Public License v3.0
19 stars 4 forks source link

Add Anno Objects via Menu #12

Closed taubenangriff closed 3 months ago

taubenangriff commented 2 years ago

I thought it could be neat to create custom cfgs completely in blender by adding anno objects to the scene.

My implementation of this is just a draft with some quick default values, working the same way as for the feedbackobjects. I just did MainFile, Model and PropContainer atm.

image

Here is a sample cfg skeleton that I created with this:

<Config>
    <ConfigType>MAIN</ConfigType>
    <RenderPropertyFlags>134349184</RenderPropertyFlags>
    <Radius>0</Radius>
    <MeshRadius>0</MeshRadius>
    <Center.x>0.000000</Center.x>
    <Center.y>0.000000</Center.y>
    <Center.z>0.000000</Center.z>
    <Extent.x>0.000000</Extent.x>
    <Extent.y>0.000000</Extent.y>
    <Extent.z>0.000000</Extent.z>
    <Mass>1.000000</Mass>
    <Drag>1.000000</Drag>
    <MeshCenter.x>0.000000</MeshCenter.x>
    <MeshCenter.y>0.000000</MeshCenter.y>
    <MeshCenter.z>0.000000</MeshCenter.z>
    <MeshExtent.x>0.000000</MeshExtent.x>
    <MeshExtent.y>0.000000</MeshExtent.y>
    <MeshExtent.z>0.000000</MeshExtent.z>
    <Models>
        <Config>
            <ConfigType>MODEL</ConfigType>
            <IgnoreRuinState>0</IgnoreRuinState>
            <FileName />
            <Name>1</Name>
            <Transformer>
                <Config>
                    <ConfigType>ORIENTATION_TRANSFORM</ConfigType>
                    <Position.x>0.000000</Position.x>
                    <Position.y>0.000000</Position.y>
                    <Position.z>0.000000</Position.z>
                    <Rotation.x>0.000000</Rotation.x>
                    <Rotation.y>0.000000</Rotation.y>
                    <Rotation.z>0.000000</Rotation.z>
                    <Rotation.w>1.000000</Rotation.w>
                    <Scale>1.000000</Scale>
                </Config>
            </Transformer>
            <Materials />
        </Config>
        <Config>
            <ConfigType>MODEL</ConfigType>
            <IgnoreRuinState>0</IgnoreRuinState>
            <FileName />
            <Name>2</Name>
            <Transformer>
                <Config>
                    <ConfigType>ORIENTATION_TRANSFORM</ConfigType>
                    <Position.x>0.000000</Position.x>
                    <Position.y>0.000000</Position.y>
                    <Position.z>0.000000</Position.z>
                    <Rotation.x>0.000000</Rotation.x>
                    <Rotation.y>0.000000</Rotation.y>
                    <Rotation.z>0.000000</Rotation.z>
                    <Rotation.w>1.000000</Rotation.w>
                    <Scale>1.000000</Scale>
                </Config>
            </Transformer>
            <Materials />
        </Config>
    </Models>
    <PropContainers>
        <Config>
            <ConfigType>PROPCONTAINER</ConfigType>
            <VariationEnabled>0</VariationEnabled>
            <VariationProbability>100</VariationProbability>
            <Name>Props</Name>
            <Transformer>
                <Config>
                    <ConfigType>ORIENTATION_TRANSFORM</ConfigType>
                    <Position.x>0.000000</Position.x>
                    <Position.y>0.000000</Position.y>
                    <Position.z>0.000000</Position.z>
                    <Rotation.x>0.000000</Rotation.x>
                    <Rotation.y>0.000000</Rotation.y>
                    <Rotation.z>0.000000</Rotation.z>
                    <Rotation.w>1.000000</Rotation.w>
                    <Scale.x>1.000000</Scale.x>
                    <Scale.y>1.000000</Scale.y>
                    <Scale.z>1.000000</Scale.z>
                </Config>
            </Transformer>
        </Config>
    </PropContainers>
</Config>