http://www.grasshopper3d.com/forum/topics/popup-shortcutsPopup shortcutsThe 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 #,#[,#]means;atleast 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 . .10和0. . 2 . . 10.00是不一样的,因为前者将创建一个整数滑块从零到十而后者将创建一个浮点滑块从0.00到10.00。
Views:507
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?
感谢!我可以认为这是官方弹出窗快捷键吗?我们可以增加所有滑块和其他任何可能存在的快捷键吗?
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
欢迎下载本人所写插件,并提出建议,下载地址:
举报