Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

glTF workflow: report object with more than 1 material #52

Closed
Vinc3r opened this issue Nov 26, 2019 · 1 comment
Closed

glTF workflow: report object with more than 1 material #52

Vinc3r opened this issue Nov 26, 2019 · 1 comment
Assignees
Labels
enhancement make life easier again

Comments

@Vinc3r
Copy link
Owner

Vinc3r commented Nov 26, 2019

No description provided.

@Vinc3r Vinc3r added the enhancement make life easier again label Nov 26, 2019
@Vinc3r Vinc3r self-assigned this Nov 26, 2019
@Vinc3r Vinc3r added this to the I have a dream milestone Nov 26, 2019
@Vinc3r
Copy link
Owner Author

Vinc3r commented Jan 21, 2020

for obj in [o for o in bpy.context.selected_objects if o.type == 'MESH']:
    if obj.data.materials and len(obj.data.materials) > 1:
        print(">1 material: {}".format(obj.name))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement make life easier again
Projects
None yet
Development

No branches or pull requests

1 participant