×

工业设计互动平台

手机短信,快捷登录

微信登录,快人一步

QQ登录

只需一步,快速开始

Grasshopper教程基础篇(精华)GH菜单讲解之Edit(五)

发布于 2014-7-28 5 点赞 20 评论 22048 浏览

GH插件讲解(五)之Edit
2014-06-17

感谢各位关注。新加入成员可以查看之前的消息记录。由于用户基础不一,我们要由浅入深,先讲基础操作,再讲工程实例,再到深入GHA开发,以及各种复杂算法。期间可能会穿插着来讲,可以直接回复问题,我们会尽量去解答。您觉得有用,请将此微信号分享给能用得着的朋友。
Undo Ctrl+Z 撤销
Redo Ctrl+Y 重做
Cut Ctrl+X 剪切
Copy Ctrl+C复制
Paste Ctrl+V粘贴,此粘贴是粘贴到原来位置,并少许偏移
Paste in Place Ctrl+Alt+V此粘贴完完全全的原位粘贴
Paste In Centr  Ctrl+Shift +V此粘贴是粘贴到视口中心,比较常用
Delete 删除选中计算器,如果点到编组上面,会解散编组。
Select ALL Ctrl +A全选
Deselect All Ctrl+D,Escape取消选择
Invert Selection Ctrl+Shift +I(大写i)反选
下面几个比较有意思:
Grow Selection Ctrl+Shift+A,当选中某些电池后,按此键会选中所有与这些计算器链接的计算器
Grow Upstream  Ctrl+Shift +Left(左箭头)当选中某些计算器后,按此组合键,将选中这些计算器的输入端电池
Grow DownStream Ctrl+Shift +Right(右箭头)当选中某些计算器后,按此组合键,将选中这些计算器的输出端电池
Shift Upstream Ctrl+Left(左箭头)当选中某些电池后,按此组合键,将选中这些电池的输入端电池,并将视口重置到输入端电池的中心,与上面Ctrl+shift+Left的区别在于继续按左键则不会包含当前选中,+个Ctrl后可以连续将选中电池都添加到选择集内。
Shift DownStream Ctrl+Right(右箭头)对选中输出端电池,与上面类似。
下面是对计算器前后次序进行调整的:
Put To Back Ctrl+B移动到与其重叠的电池底端
Bring To Front Ctrl+F将选中电池移动到与其重叠的电池前端
Move Backwards Ctrl+Shift +B将选中电池移动到所有电池的最底端
Move Forwads Ctrl+Shift +F将选中电池移动到所选电池的最顶端
Align Selection Ctrl+Shift +W好像新版本一直不能用
Group Ctrl+G将选中计算器编组
Ungroup Ctrl+shift +G将选中计算器移除编组,真正的一次性解除编组应该是将选中编组按Del键。
顺便将编组右键菜单也说了:
编组实际上是一个很有用的东西,我比较喜欢把重要的输入输出端,以及关键电池用红色编组着重显示,这样每次这些电池是必看的。
第一个框是给此编组命名。
Select All是选中编组内所有电池
下面三个是编组的三种造型。双击编组空白处会自动切换这几种造型,看你喜欢什么啦。
Ungroup解除编组
Add to group,先选中组外的计算器,然后右键编组,可将计算器添加到此编组内。
Remove from Group将所选电池移出编组=Ctrl+Shift+G
Colour设置编组颜色
上面颜色条A是透明度调节,上面有两种,一种HSV色(上图)一种RGB色如下图:
还有一只笔,相当有用,这只笔可以拾取Windows里面任意地方的颜色。我们再做渲染的时候,可以用这支笔拾取效果图上的颜色来渲染犀牛内物件,效果很好。
另外最后两个方块:左边那个是默认颜色,无论你怎么调节,双击此块都会回到这个颜色,右边那个就是你正在调节的颜色预览。
菜单的最后一项,Make Colour Default将当前设置的颜色设置为默认颜色,那么此后你遍的组都会是这个颜色。
好了继续Edit菜单
Cluster打包,将选中计算器打包,与鼠标中键的打包按钮一样。(随后的会详细讲解打包)
Find F3,查找计算器,很不错。有关查找规则文章最后附的有来自David的讲解。
Create F4,相当于双击Canvas的空白处,输入计算器名字拖出计算器,这个设置计算器快捷键后(在栏目下,右键计算器设置)
用的最多。
这里面几个基本上都在鼠标中键菜单里面,下面讲解一下常用的鼠标中键菜单:
打包,跟Edit里面的一样,后面会详细讲解。
查找,跟Edit里面的一样。
设置,就是我们前几节讲了很久的Perference设置。
编组,给Edit里面的一样。
锁住文档,不计算,跟之前讲解设置菜单里面的Enable Solver一样。
计算,跟F5一个功能,将整个gh文档内电池重新计算。
这是对选中电池中有几何对象的显示操作,带着黑布的人头是蒙上眼睛,不显示,不带的是显示。经常用。(与Ctrl+Q配合使用)
这俩是对计算器的禁用和启用计算器。经常用,与Ctrl+E配合使用。
烘焙,将选中电池中输出端的几何物件烘焙到犀牛文档中。= Insert快捷键,烘焙到当前层。
点击此按钮,会将GH文档整个文档里面电池缩小到一个矩形画布上展示,用小手拖动里面的一个矩形框可以移动视口查看。如下图:
不知道此按钮的童鞋们注意了,这个功能必须mark一下。选中含有输出端含有几何对象的电池,点击此按钮犀牛文档会缩放到此几何显示!
不知道此功能之前,你是否在使用烘焙然后选择最近建立物件呢?
OK,今天讲到这里。
附Find输入翻译贴(快速输入必看):
我们来自江河梦小组(Scond Effect Group),工程用到gh,所以必须学习好GH插件,而大部分权威资料都来自国外,所以就组织组员翻译来自GH官方论坛的帖子,以便学习。下面是一篇David的帖子讲解有关gh热键的,由刘友生同学翻译。
http://www.grasshopper3d.com/forum/topics/popup-shortcutsPopup shortcuts
The double click popup windowfor inserting components accepts a number of different input formats. If youprovide a plain component name (or the abbreviation or a word used in thedescription) then you will see a list of potential matches, sorted from mostrelevant to least relevant:
双击弹出窗口用来插入计算器有许多不同的输入格式。如果你提供一个普通的计算器名称(或简称或一个词用于描述),那么您将看到一系列的匹配,从最相关排序到最小相关:
Some components and objectssupport initialisation codes, which means you can assign certain valuesdirectly from the popup box. You can do this by adding an equals symbol afterthe name and then the value you wish to assign. For example, the [Curve Offset]component allows you to specify the offset distance via the popup box by typing=5 after the offset command:
一些计算器和对象支持初始化代码,这意味着您可以直接在弹出框里指定某些值。为此,您可以在这个计算器名称后添加一个等于符号,然后输入你想要的值。例如,[曲线偏移)计算器允许您在弹出框里OFFSET后输入= 5指定偏移距离
Howeverthe popup box also supports a set of special formats that allow you to createspecific objects without even typing their names. As of0.9.0015 (which hasn't been released yet at the time of writing) you can usethe following shortcuts to create special objects. In the notation belowoptional parts of a format will be surrounded by square brackets and hashes (#)will be used to indicate numeric values. So #,#[,#]meansatleast two numeric values separated by a comma, with an optional second commaand third number.
然而弹出框还支持一些特殊的格式,允许您在没有打出它们名字的情况下创建特定的计算器。截至0.9.0015(在撰写本文的时候还没有发布)你可以使用下面的快捷方式创建特殊的计算器。方括号里的格式为可选部分,(#)将用于象征数值。所以#,#[#]意味着:至少两个数值由逗号隔开,第二个逗号和第三个数值为可选的。
A complete list of specialformats (not all of these are supported yet in 0.9.0014):
特殊格式的完整列表如下(0.9.0014版本可能有些不支持):
§  "∙∙∙
If the format starts with a double quote, then the entirecontents (minus any other double quotes) will be placed into a Text Panel.
§  如果格式始于一个双引号,然后内容(除去双引号任何其他),将创建一个含内容的PANEL板。
§  //∙∙∙
If the format starts with two forward slashes, then the entire contents will beplaced in a Text Panel.
§  如果格式始于两个斜杠,然后整个内容,将创建一个含内容的PANEL板。
§  ~∙∙∙
If the format starts with a tilde, then the entire contents will be placed in aScribble object.
§  如果格式始于一个字符,然后整个内容将被放置在一个标签计算器。
§  #,#[,#]
If the format contains two or three numerics separated bycommas, a Point parameter will be created with the specified coordinates.
§  如果格式包含两个或三个数字之间用逗号隔开,一个具有指定坐标的点参数将被将创建。
§  +[#]
If the format starts with a plus symbol followed by a numeric,then an Addition component will be created.
§  如果格式始于一个加号后跟一个数字(可选),然后加法计算器将被创建。
§  -[#]
If the format starts with a minus symbol followed by a numeric,then a Subtraction component will be created.
§  如果格式始于一个减号后跟一个数字(可选),一个减法计算器将被创建。
§  *[#]
If the format starts with an asterisk symbol followed by anumeric, then a Multiplication component will be created.
§  如果格式始于一个乘号后跟一个数字,一个乘法计算器将被创建
§  /[#]
If the format starts with a forward slash symbol followed by anumeric, then a Division component will be created.
§  如果格式始于一个斜杠符号后跟一个数字,那么将创建一除法计算器。
§  \[#]
If the format starts with a backward slash symbol followed by anumeric, then an Integer Division component will be created.
§  如果格式始于一个反斜杠符号后跟一个数字,然后整数除法计算器将被创建。
§  %[#]
If the format starts with a percent symbol followed by anumeric, then a Modulus component will be created.
§  如果格式始于百分号后跟一个数字,然后一个模数计算器将被创建。
§  &[∙∙∙]
If the format starts with an ampersand symbol, then aConcatenation component will be created.
§  如果格式始于一个&符号,然后连接计算器将被创建。
§  =[∙∙∙]
If the format starts with an equals symbol, then an Equality component will becreated.
§  如果格式始于等于符号,然后一个等于计算器将被创建。
§  <
If the format starts with a smaller than symbol, then a SmallerThan component will be created.
§  如果格式始于一个小于符号,然后一个小于计算器将被创建。
§  >
If the format starts with a larger than symbol, then a LargerThan component will be created.
§  如果格式始于一个大于符号,然后一个大于计算器将被创建。
§  [#*] Pi
If the format contains the text "Pi" with an optionalmultiplication factor, then a Pi component will be created.
§  如果格式包含“π”和一个可选的乘法因子,那么将会创建一个π计算器。
§  #
If the format can be evaluated as a single numeric value, then aSlider will be created with the specified initial value and sensible™ lower andupper limits.
§  如果格式为一个单一的数字值,那么将会创建一个指定初始值的滑块,上下极限由所给值判断出来。
§  #<#
If the format contains two numerics separated by a smaller thansymbol, a Slider with the specified limits will be created. The initial slidervalue will be equal to the lower limit.
§  如果格式包含两个数字组成一个小于符号隔开,一个被指定限制的滑块将被创建。滑块的初始值将等于下限。
§  #<#<#
If the format contains three numerics separated by a smallerthan symbol, a Slider with the specified limits will be created. The initialslider value will be the value in the middle.
§  如果格式包含三个数字并由小于符号隔开,一个被指定限制的滑块将被创建。滑块的初始值是在中间的值。
§  #..#
If the format contains two numerics separated by two or moreconsecutive dots, a Slider with the specified limits will be created. Theinitial slider value will be equal to the lower limit.
§  如果格式包含两个数值运算并由两个或两个以上的连续点隔开,一个指定限制的滑块将被创建。滑块的初始值将等于下限。
§  #..#..#
If the format contains three numerics separated by two or moreconsecutive dots, a Slider with the specified limits will be created. Theinitial slider value will be the value in the middle.
§  如果格式包含三个数字组成由两个或两个以上的连续点分离,一个与指定限制滑块将被创建。滑块的初始值是在中间的值。
§  #/#/[#]
If the format contains two or three numerics separated by forwardslashes, a Calendar object will be created. The order of value isday/month/year. If year is omitted then the current year is used. Note that asecond slash is required because #/# is interpreted as a number and thusresults in a Slider.
§  如果格式包含两个或三个数字组成由斜杠分开,一个日历对象将被创建。相当于日/月/年。如果年省略了将使用当前年。注意,第二个斜杠是必需的,因为# / #被解释为一个数字,从而导致一个滑块。
§  #:#[:#][am/pm]
If the format contains at least two numerics separated by a colon,a Clock object is created. Seconds are optional, as are am/pm suffixes.
§  如果格式包含至少两个数字并由冒号隔开,一个时钟对象被创建。秒、上午/下午后缀都是可选的。
Note that decimal places will beharvested from formats that indicate sliders. I.e. the format 0..2..10is not the same as 0..2..10.00,as the former will create an integer slider from zero to ten whereas the latterwill create a floating point slider with two decimal places from zero to ten.
注意,小数点后格式将影响滑块。即格式0. . 2 . .100. . 2 . . 10.00是不一样的,因为前者将创建一个整数滑块从零到十而后者将创建一个浮点滑块从0.0010.00
Views:507
  Permalink Reply by Luis Fraguadaon February19, 2013 at 1:25am
Thanks for this! May I requestthat this become the official Popup shortcut thread? Can we add to this all ofthe slider shortcuts and anything else that might exist?
感谢!我可以认为这是官方弹出窗快捷键吗?我们可以增加所有滑块和其他任何可能存在的快捷键吗?
  Permalink Reply by David Ruttenon February19, 2013 at 6:29am
Absolutely, better to have itall in one place. I just added three more shortcuts I just implemented (<,> and =) and also added some information about slider decimal places. Anyfurther changes to the popup shortcuts will be included here.
绝对,更好地在一个地方。我只添加了三个快捷键(<、>、=),还添加了一些信息关于滑块位小数。任何进一步的修改弹出快捷键都包含在这里--
David Rutten
david@mcneel.com
Poprad, Slovakia
如果您觉得本公共号对学习有用,那么请分享给能用得着的朋友,谢谢。
如果您有什么好的建议,或者问题那么请直接回复消息,我们有问必答。
精彩分享:
欢迎传播此微信号:SecondEffectGroup


欢迎下载本人所写插件,并提出建议,下载地址:
欢迎点击链接加入QQ群【中国RhinoGH插件社区1】:http://jq.qq.com/?_wv=1027&k=S0ALQZ
群号为:82367748
微信公共号文章同步微博地址:http://t.qq.com/hua7726/mine
阅读原文


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩回复

文明上网理性发言、请文明用语

惰性金属 | 实习生 | 发表于 2014-7-29 09:05:22
虽然未曾涉及过GH,但是对于出任何学习教程的工作者的敬意点赞
0 回复

举报

boshu0 | 实习生 | 发表于 2014-7-29 10:24:30
学习[s:136][s:136][s:136]
0 回复

举报

haalin917 | 设计助理 | 发表于 2014-7-30 14:20:30
楼主功德无量
0 回复

举报

GREAT123456 | 设计助理 | 发表于 2014-7-30 18:07:55
很不错,学习学习
0 回复

举报

freedake | 设计助理 | 发表于 2014-7-30 21:32:16
很多参数啊啊
0 回复

举报

imyas | 实习生 | 发表于 2014-7-31 16:11:33
回复好少。收藏了慢慢学习。。。感谢露珠分享
0 回复

举报

IDEO007 | 实习生 | 发表于 2014-8-1 10:27:00
还是觉得很深奥的样子:o
0 回复

举报

tuwenduo | 实习生 | 发表于 2014-8-4 14:33:52
此贴真的是个大宝贝,熟练以后无疑能加快使用GH的速度,微信号我已关注,感谢楼主,支持!
0 回复

举报

~~_胡杨~~ | 实习生 | 发表于 2014-8-7 09:19:05
楼主辛苦了
0 回复

举报

yanrui11123 | 实习生 | 发表于 2014-8-7 18:05:19
楼主辛苦,虽然一般工作只能用到一部分,但还是谢谢了
0 回复

举报

青鱼快飞 | 实习生 | 发表于 2014-8-7 20:48:22
好好学习
0 回复

举报

liuzenghui806 | 设计助理 | 发表于 2014-8-8 14:41:01
楼主辛苦了
0 回复

举报

水若寒 | 实习生 | 发表于 2014-9-22 19:29:09
mmdmdmddmdm
0 回复

举报

fannyf | 设计助理 | 发表于 2014-11-26 17:40:26
楼主大赞.,,要是能出视频就更加好了..但是会很麻烦,,其实打字也麻烦,,总之谢谢楼主了...
0 回复

举报

nangongsheng | 设计助理 | 发表于 2014-12-4 15:18:46
学习了[s:190][s:190]
0 回复

举报

Hung07 | 设计助理 | 发表于 2015-6-23 11:03:29
容易学吗
0 回复

举报

kerrylee | 设计助理 | 发表于 2016-10-3 03:30:32
支持一下。
0 回复

举报

1933hong | 实习生 | 发表于 2017-4-5 09:50:47
好好学习
0 回复

举报

fq8788 | 实习生 | 发表于 2018-1-30 11:16:47
微信图片都显示不了呢
0 回复

举报

jp999 | 实习生 | 发表于 2018-3-19 10:32:54
怎么图片都挂了。。
0 回复

举报

推荐学习