Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4153

Different result from print

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 4153

Trending Articles