mirror of
https://github.com/allankoechke/ADN-3dsMax-Explode-Geometry.git
synced 2026-11-30 09:22:10 +00:00
20 lines
544 B
Python
20 lines
544 B
Python
'''
|
|
Based from Sublime3dsmax : http://cbuelter.de/?p=535
|
|
Removed unecessary Sublime portions of the script
|
|
'''
|
|
import os
|
|
|
|
import tomax
|
|
|
|
MAX_NOT_FOUND = r"Could not find a 3ds Max instance."
|
|
RECORDER_NOT_FOUND = r"Could not find MAXScript Macro Recorder"
|
|
|
|
def run(cmd):
|
|
if not tomax.connectToMax(): # Always connect first
|
|
print (MAX_NOT_FOUND)
|
|
return
|
|
if tomax.gMiniMacroRecorder:
|
|
tomax.fireCommand(cmd)
|
|
tomax.gMiniMacroRecorder = None # Reset for next reconnect
|
|
else:
|
|
print(RECORDER_NOT_FOUND) |