adding lock task workfiles when users are working on them

This commit is contained in:
Kayla Man 2022-09-09 13:25:12 +08:00
parent 26ae84df16
commit 4978981631
2 changed files with 2 additions and 1 deletions

View file

@ -505,7 +505,7 @@ def check_lock_on_current_file():
columnSpacing=[(3, 10)])
cmds.separator(vis=False)
cancel_command = "cmds.file(new=True);cmds.deleteUI('%s')" % reminder
ignore_command ="cmds.deleteUI('%s')" % reminder
ignore_command = "cmds.deleteUI('%s')" % reminder
cmds.button(label='Cancel', command=cancel_command)
cmds.button(label = "Ignore", command=ignore_command)
cmds.showWindow(reminder)

View file

@ -70,6 +70,7 @@ def _get_process_id():
os.environ["OPENPYPE_PROCESS_ID"] = process_id
return process_id
def is_workfile_lock_enabled(host_name, project_name, project_setting=None):
if project_setting is None:
project_setting = get_project_settings(project_name)