Grasshopper

algorithmic modeling for Rhino

Hi All,

As the title says. Any handy keyboard shortcuts available in the Python component script editor? In particular, a way of executing the script without having to get your hands off the keyboard would be really sweet (as in, hitting the "Test" button). I did try searching both here and on the Rhino Python forum first without much luck.

Thanks,

/Anders

Views: 1508

Reply to This

Replies to This Discussion

Hi Anders,

I'm studying this. I'll let you know more in a little.

Thanks,

- Giulio
________________
giulio@mcneel.com

Done. The next release will allow to use F5 to Test and Ctrl+F5 for Apply&Close.

Thank you for reporting this wish.

- Giulio
________________
giulio@mcneel.com

That's most excellent Giulio, much appreciated! Looking forward to the next release.

Best,

Anders

Just piggybacking my own thread with a further request for the Python script editor. It would be great if one could "collapse" or "close" all the functions and classes within a script (equivalent to hitting all those little minus signs in boxes) using a button or keyboard shortcut:

I guess you (Giulio) is not in charge of developing the Python component any more, but perhaps Steve (or whomever is developing it now) is listening in.

Edit: Added a wish on the McNeel GitHub: https://github.com/mcneel/ghpython/issues/45

One thing to add up...

I just find [CTRL + /] stand for comment (uncomment) code...

A reminder for someone who is also struggling on this problem...

But for C# script component:

we have the similar shortcut configuration in Visual Studio (:))

[ctrl K + ctrl C] for comment

and

[ctrl K + ctrl U] for uncomment

Nice find Yijiang! I usually just wrap everything in triple block quotes, but this is definitely faster for quickly commenting something out. Too bad it won't work with Scandinavian keyboards that do not have a numeric keypad (/ is the shift mode of the 7 key). How did you figure this out if I may ask? Wonder if there are more hidden shortcuts yet to be discovered :)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service