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

[Python] Make Rhino View have focus

$
0
0

@Dow wrote:

Hi All,

Given a Rhino View object, how do I make it the focus in the GUI? Specifically, my goal is to give focus to the first floating window in the project.

views = scriptcontext.doc.Views.GetViewList( True, False )
        for view in views:
            if( view.Floating == True ):
                # MAKE THE FOCUS
                print "found floating: ", view.MainViewport.Name

Any help would be greatly appreciated

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles