K
K
Konstantin Malyarov2019-09-28 13:53:38
Python
Konstantin Malyarov, 2019-09-28 13:53:38

How to add to layout.path in addon?

This part will add the button, but how to add the path element? (import directory)

def draw(self, context):
        layout = self.layout
        
        row = layout.row()
        row.operator("msp.obj2part", text = "MPS")

ANSWER:
strip = context.scene.render
layout.prop (strip, "filepath", text = "")

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question