I extended @Pascal s script by a single line that prints the current DisplayMode:
print ('Aktiver Anzeigemodus:',sc.doc.Views.ActiveView.ActiveViewport.DisplayMode.LocalName)
Simple thing.
When I run the script from the ScriptEditor, the result in the command area is:
Aktiver Anzeigemodus: Arctic
When I run the same script from a button or shortcut by _-RunPythonScript “T:\Desktop\CycleDisplayModes.py”, this is the result:
(‘Aktiver Anzeigemodus:’, ‘Arctic’)
Hmm?
Are there different Python engines in use?
I need clarification.
CycleDisplayModes.py (1.8 KB)
11 posts - 3 participants