algorithmic modeling for Rhino
Hi Philip,
Are you aware of these Keyword entries:
Panel=Hello World!
Add=4
Division=2
If not the you can read more here: http://www.grasshopper3d.com/forum/topics/initialization-code-what-... and see a fairly comprehensive list of initialization code enabled keywords in the 0.8.0010 features.
BTW slider=50 gives you integers and slider=50.00 gives you real numbers to 2dp
If so, are you looking for further shorthanded keywords?
Yes, I want shorthanded keywords!!!!
It is a headash to write ADDITION=+3 insted of +
and it is quite faster to find component in layout (3 clicks) + make inpur (4 clicks) instead of Ad...3 - 11 cliks.....
btw slider=50 gives me slider with integers. to make rounded i have to write slider=50.0
I did something not quite as requested but close (I hope).
If the text inside the popup search starts with the following characters, then the appropriate component is created with the text after the special character evaluated as a value for the second input (except for Text Panels, as they don't have a second input):
" → Text Panel
// → Text Panel
+ → Addition
- → Subtraction
* → Multiplication
/ → Division
\ → Integer Division
& → Concatenation
% → Modulus
So you can type:
//Hello world
or
"Hello world
to get a panel with specific content.
I also made it so that when the text typed evaluates to a number (no expressions allowed, it has to be a single number), a slider is instantiated. So typing:
8
results in an integer slider and typing:
8.00
results in a floating point slider with two decimal places.
--
David Rutten
david@mcneel.com
Leusden, Holland
David, one more ask. I forgot about Scribble component.
can you make something like
// Hello world! /35 - for scribble with 35 letter size?
But // already indicates a Text Panel, not a Scribble object.
--
David Rutten
david@mcneel.com
Leusden, Holland
Enough gay banter. Tilde it is. But I'm not adding the size code, it's just too weird. I'll need to come up with a better way to modify font, size and content of Scribbles.
--
David Rutten
david@mcneel.com
Leusden, Holland
I can add a menu item that displays the search box. Then you can assign a shortcut to the menu item at will as I'm nearly done with the custom menu-shortcut mechanism.
--
David Rutten
david@mcneel.com
Leusden, Holland
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by