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

Is GetMultiple() returning a wrong value?

$
0
0

Hello!
Could you please run this short script:

import Rhino
go = Rhino.Input.Custom.GetObject()
go.GetMultiple(0, 0)
result = go.CommandResult()
print result

Even if I press ENTER or SPACE, ‘Cancel’ is returned. Same as when ESC is pressed.

According to the RhinoCommon docs,
https://developer.rhino3d.com/api/rhinocommon/rhino.input.getresult?version=8.x
pressing ENTER should return ‘Nothing’, which I would need, because my command should exit when ESC was pressed, but continue when ENTER was pressed.

Testing on R7 here.

Thanks!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles