algorithmic modeling for Rhino
There is an ongoing debate in my office between those who like to organize their definitions with hidden wires for the sake of cleanliness, and those who hate them because it makes definitions hard to debug. In order to sidestep any drama, I made a little script that lets you switch all the wires in a document between "Hidden" and "Faint." It will leave all wires set to default alone.
Download it here: WireDisplayToggle.gh
Comment
As I wrote in a another thread talking about the ability to hide the wires in a definition, I think such feature make sense when considering Education activities.
https://www.grasshopper3d.com/forum/topics/hiding-wires?id=2985220%...
I regularly try to teach GH to non experts and the visual complexity of elaborated definitions is a pain sometimes.
Being able to show a cleaned version of a complex definition to focus on the approach before going into more detailed explanations would be very helpful.
So if I understood well, such feature would be a strong spaghetti problem ;o)
May I suggest another approach to see if this would a less intrusive option.
Would it be possible to add an option in the general setting/or else to change the way the wire are displayed in the UI. I mean the colours or the transparency...
If I could modify that parameter in order to match the background colour visually cleaning the definition during a presentation would a fairly easy step.
Thank you in advance for any answer.
Regards
R.Santos
Thanks Andrew for the starting point!
I forked this post, here:
http://www.grasshopper3d.com/profiles/blogs/toggle-wire-display-for...
here is the gh file:
I'd like to know how to attach a shortcut-key to the toggle...
Hi,is any way to switch the wires between "default" and " Faint"?
Just to followup, if you haven't noticed, it is impossible to pan around the canvas while you're click-dragging, so my usual workaround has been to zoom out/in until I reach my destination. Is this the typical solution to connecting far-away components? I imagine that one could click the "nub" of the variable to be input -- it becomes active (maybe it glows) -- and then their mouse is free to pan, zoom, etc. until they reach the other component where they can click the desired nub for connection. Et Voila! But, this might be simplistic and it is definitely unnecessary... but interfaces like Grasshopper's already accommodate multiple mean to achieve the same end.
same for right clicking - it matters where on a component you click.
ahh - you've got icon view on. Try double-clicking the icon - double clicking where it says "showfaintwires" won't do a thing.
Thanks, Andrew. The "Create User Object" method worked just fine. I am still lost when it comes to editing the source code. I have re-downloaded the *.gh file and tried double-clicking it, and for whatever reason, the code C# editor won't display. This is bizarre since it has worked in the past with similar components...
...right-click the name (where it says WDT) and choose edit source.
Surely I must be looking in the wrong location because I can't seem to find 'WDT' anywhere as an option. Again, forgive me if any of this is painfully ignorant. I am a beginner when it comes to GH development, but I do have a few years of experience programming. Hopefully I can learn the idiosyncrasies of Grasshopper so that I don't keep getting in my own way... Thanks again!
Hi William - if you want to save the object as a user object, you can select it and choose "Create User Object" from the file menu. If you want to edit the code for the script, right-click the name (where it says WDT) and choose edit source. Double-clicking the component should also work.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!