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

Select objects whilst modal open

$
0
0

mrmagooey wrote:

Hi,

Is there a particular type of form modal that I need to use in order to be able to select objects in the Rhino viewports whilst the modal is open?

Currently by running a modal with either:

Rhino.UI.Dialogs.ShowSemiModal(MyForm())

or,

import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import Application, Form
Application.Run(MyForm())

..allows me to add objects to the Rhino viewport, and rotate the view, but I cannot select the objects.

The modal doesn't do anything as yet (displays a label), but eventually I was hoping to have selection events occurring in Rhino trigger actions in the modal.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4174

Latest Images

Trending Articles



Latest Images