Jump to content

Import Asset Dialog reset


tokejepsen

Recommended Posts

Hey,

I've been looking at developing Asset class for the importer, and found it frustrating to restart Maya for any changes, so here is my suggestion to do this;

from ftrack_connect_maya.connector.mayacon import DockedWidget
from ftrack_connect.ui.widget.import_asset import FtrackImportAssetDialog
from ftrack_connect_maya.connector import Connector


ftrack_dialog = FtrackImportAssetDialog(connector=Connector())
DockedWidget(ftrack_dialog).show()

This will detach the dialog from the dock control, but I don't really mind.

If anyone has a better way of doing this, I would love to hear it :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...