Skip to content

Automate import via python script #47

@tnindd

Description

@tnindd

I want to automate the process of importing the ldr file and exporting it to another file. I tried the following line for importing:

bpy.ops.ldraw_exporter.import_operator(ldraw_path="d:\\test.ldr", studio_ldraw_path="C:\\Program Files\\Studio 2.0\\ldraw")

But I receive two errors:

missing LDCfgalt.ldr
missing 

======Import Complete======

Part count: 0
elapsed: 0.03504189999875962
===========================

{'FINISHED'}

I can switch off the colors by adding the additional parameter:

use_alt_colors=False

Which removes the first "missing" error but the second remains. And switching off the color-option seems not a professional way of solving this error.

How to correctly solve these errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions