MarcoA
October 7, 2020, 4:44pm
#1
Finally 3dsMAX got IFL working (well you are not using my most ok code, instead the tricky one, but at least it work…
-> this code here is better (since it don’t care about max version but isntead call python build directly) :
Much More Sexy:
So if user use Python 2 in 2021, this still should work
fn getMaxscriptListFromPythonList pythonList =
(
maxscriptList = #()
if SMTDFunctions.getMaxVersionAsInteger() >= 2017 then -- Python wrappers added in 2017
(
--check Python Version
local py_imp = python.import "sys"
local Py_Vers = ((py_imp.version) [1]) as integer --First give me version
--Depending of Py version
Case Py_Vers of
(
2: (bi = python.Import("__builtin__"…
But at least the tricky code work…finally inside deadline , thank you.
then QuickDraft is still brokhen is this build, for more info read here :
QuickDraft do not work in deadline 10.9.2 returning error, Deadlinecommand not found in PATH.
That’s due to lines :
if not os.path.isfile(deadline_command):
raise Exception(“deadlinecommand not found in PATH”)
Since ‘isfile’ require the extension, it will never work…
Quick fix, until official one, is to remove this line (# comment) on ‘Repositoryroot\events\DraftEventPlugin\DraftQuickSubmission’
2 Likes
I was having this issue with QuickDraft, had a ticket open with @Justin_B and @zainali who sent over this OS independent fix.
Disappointed to see 10.1.10.6 has no application updates just AWS features
QuickDraft_OS_independent_version.py (3.9 KB)
This fixed .py file had an error and needed a colon added on line 25:
elif platform.system == "Linux" or platform.system == "MacOS":
Now when I try to use QuickDraft, I get this error message:
UnboundLocalError: local variable 'deadline_command' referenced before assignment
My post from a few days ago:
Has been working for me but I haven’t tested on Mac.
I am still running into this with 10.1.12.1, are there plans for an official fix?
I have currently updated [Repo]/events/DraftEventPlugin/DraftQuickSubmission/QuickDraft.py:
24c24,28
< deadline_command = os.path.join(deadline_binpath, "deadlinecommand")
---
> if os.name == 'nt':
> deadline_command = os.path.join(deadline_binpath, "deadlinecommand.exe")
> else:
> deadline_command = os.path.join(deadline_binpath, "deadlinecommand")
>