V8 Regression: Select command

In V8, the behavior of Select seems to have changed.

When the command is run while an object is already selected, Rhino brings up a Select objects: prompt. In V7, this prompt did not appear.

Simple test macro: _Select _Pause

This is an issue as it breaks macros that previously worked well with no prior selection as well as pre-selected objects.

Is there a way to restore the old behavior, or a macro hack I could use to the same end?

1 Like

hi @ianis.lallemand thanks for reporting, I could reproduce this, I logged the issue here:

RH-80023 Select Pause macro behaves different from Rhino 7

2 Likes

Thanks. In the meantime, here’s a RhinoPython fix:


# -*- coding: utf-8 -*-

import Rhino as rhino
import scriptcontext as sc

def main():
    is_selection_empty = not sc.doc.Objects.GetSelectedObjects(False, False).GetEnumerator().MoveNext()
    if is_selection_empty:
        rhino.RhinoApp.RunScript('_Select', False)

if __name__=="__main__":
    main()

Apparently, the way it worked in Rhino was a bug and that has been fixed in Rhino 8.
So if you need it to work like in Rhino 7 your only way is using a workaround.

Yes, I saw the YouTrack discussion.

I understand the rationale for the new behavior but I’m not sure it is consistent with the way other commands deal with preselection. Usually, when a command does an action and the action requires a selection (e.g. loft), the selection step is ignored and the commands proceeds to perform its action.

Anyway, it’s not a big deal since I have an easy fix. Thanks!