poopipe is right, don't bother with Regex. The python code for this is pretty easy. The only issue was I had to paste your Json text in to an online linter before Python could read it. https://jsonlint.com/ import json #open file for reading
data_file = open("C:\Users\monst\Desktop\data.json", mode='r') #load the json file…
Doh!, sorry guys for this noobs mistakes! haha But I've tried with your feedback and doesn`t work :( the error which 3ds max gave me was: The same error gave the Listener: "Traceback (most recent call last): SyntaxError: invalid syntax (<input>, line 132)" And in my IDE(Visual Studio Code), the pylynt says the same:…
Yea QT designer is great, coding a UI by hand is for the birds... This blog post from 2014 has some great info that is still relevant. http://www.losart3d.com/?p=828
It's because the interpreter/linter in Visual Studio Code doesn't know of the existence of the MaxPlus/pymxs module, those modules only exist in the Max specific interpreter. You can change the settings for this somewhere to point to it I'm sure but I'm not a Max user and don't have it installed (nor did I know until now…
Hi @EspiSensei You're importing the pymxs module but you're not using it! I assume you went to the documentation and saw rt.customScript() and assumed it would work, but you first need to define the rt object. This is the line I believe you need:rt = pymxs.runtime Place it somewhere before line 5. This will load the pymxs…
Hi guys! i have a little doubt about custom functions (its a dle, this function call a C++ script), the sintax in maxscript is the following: local customScriptOK = customSript theObjs thePath settings:customScriptSettingsFile log:customScriptLogFiletheObjs = #(obj1,obj2)
thePath = "C://" this script you can call like…