roy's comment and uses import instead of from..import

This commit is contained in:
Kayla Man 2023-05-31 20:02:05 +08:00
parent debd40b119
commit 11728bae0e
2 changed files with 5 additions and 14 deletions

View file

@ -227,7 +227,7 @@
"type": "action",
"sourcetype": "python",
"title": "Set Frame Range(Read Node)",
"command": "from openpype.hosts.nuke.startup import custom_popup;from openpype.hosts.nuke.startup.custom_popup import get_main_window;custom_popup.CustomScriptDialog(parent=get_main_window()).show();",
"command": "import openpype.hosts.nuke.startup.custom_popup as popup;popup.CustomScriptDialog(parent=popup.get_main_window()).show();",
"tooltip": "Set Frame Range for Read Node(s)"
}
]