测试版声明
目前有少数几段中有不确定的翻译,已用颜色标出,另外文中所有提及页数暂时均为英文版的页数
Introduction
You’ve just opened the third edition of the RhinoScript primer. This booklet was originally written as a workshop
handout for the students at the Architecture faculty of the Universität für Angewandte Kunst in Vienna. The
aim of the workshop was to teach them how to program Rhino in no more than four days and, counter all my
expectations, they did. Most of them had never programmed before so I had to make sure the text was suitable
for absolute beginners. I did not expect at the time that this proved to be the most successful aspect of the
primer. After the workshop, a slightly reworked version was made available to the public and it has helped many
non-programmers getting rid of the "non" since. Incidentally, if you do not succeed in learning RhinoScript within
a time-span of four days, do not feel bad about yourself. Remember that those students received additional
lectures and intensive support from someone who took two months to reach the same level.
This new edition essentially caters for two major demands; the release of Rhinoceros 4.0 and the superciality
of the old edition. RhinoScript has existed for many years, but has recently taken a big leap forward with the
development of Rhino4. Scripters of course want to take advantage of all the new functionality offered by this
release and new programmers don’t want to start learning an outdated language. I have tried to combine the
original aims of the primer with the requests for more in-depth articles, but it is always hard to judge the clarity
of a text when one is highly familiar with its subject matter to begin with. You will have to be the judge. But
always remember that learning programming -though fun- is no laughing matter so to speak. The ancient Greeks
already understood that hubris is a party spoiler and the best way to prevent this learning experience turning
into a classic tragedy, is to take it slow. Do not continue reading if you’re uncomfortable with past paragraphs.
Re-read when in doubt. Ask questions if necessary. Programming is not difcult
1
, but it requires a certain frame
of mind which some beginners nd hard to acquire. I know I did.
The one advantage I enjoy over authors of other programming books, is that I shall be teaching you to program
Rhino. Writing scripts for Rhino means you have an exceptionally powerful geometry kernel at your disposal
which enables you to achieve the most outrageous results with a minimum of code. Instead of boring you with
days-of-the-week and employee-salary-classes examples, I get to bore you with freeform surfaces, evolving
curves and inating meshes.
Hopefully, this third edition of the RhinoScript primer will help existing scripters get the most out of Rhino4,
while teaching regular human beings how to become scripters in the rst place.
Good luck!
David Rutten
Robert McNeel & Associates
1 Don't tell anyone...
简介
你现在打开的是第三版的
RhinoScript教程。这个教程最初是为维也纳应用艺术大学建筑系的学生写的一个研习
班讲义。这个研习班的目的是在四天内教会学生怎样在Rhino中编写程序,最后他们不负众望,他们成功了。他
们之中绝大多数人在那之前没有过编程的经历,因此我需要确认这个教程是适合初学者的。我当时并没有预料到
这一点,后来它被证明是这个教程最成功的一个方面。研习班结束之后,一个经过少量改动的版本被发行了,它
帮助了很多不会编程的人走进编程的世界。顺便提一句,如果你在四天内没有较好的掌握RhinoScript,也不要
难过。要知道那些学生是接受了额外课程和强力支持的,而给他们指导与支持的人花了两个月才达到了同样的水
平。
新版的教程主要是为了迎合两个需求;
一是配合 Rhinoceros 4.0 的发行,二是对旧版本进行深化。RhinoScript
已经问世多年,最近,伴随 Rhino4 的发展,它又得到了长足的进步。脚本编写者当然希望利用到该版本所提供
的新功能,编程初学者也不想学习过时的语言。我尝试了将本教程的最初目的与读者对更多深入文章的需求相结
合,但当一个人对它的内容非常熟悉时,就很难鉴定它的条理性了。因此你们就来做鉴定人吧。但要牢记,虽然
学习编程很有趣,但也必须认真对待,它可是一个正经事。古希腊人早已懂得骄傲自满是害群之马,防止一知半
解的最好方法是不要心急,慢慢仔细阅读。如果你对读过的段落感到迷惑,那就别急着读后面的,请带着疑问再
返回去读。如果必要的话,就问问别人。编程并不难,但它要求有一种特定的思维构架,这是很多初学者觉得比
较难养成的。我曾经就是这样。
比起别的编程书籍的作者,我享有一个优势,那就是我将会教你们在 Rhino 中编程。为 Rhino 编写脚本意味着你
有着异常强大的几何思维可供你任意支配,它将让你以最少量的代码实现最惊人的成果。接下来要困扰你们的将
会是自由表面,高级的曲线以及膨胀的网面,而不是工作日、工薪阶层之类的话题。
如果顺利的话,这个第三版
RhinoScript 教程将会帮助脚本编写者从 Rhino4 中尽可能的获益,也将教会普通人如
何开始脚本编写的道路。
祝君好运!
David Rutten
Robert McNeel & Associates
本教程中文翻译由 NCF 建筑设计工作室论坛参数化设计研究讨论室版块成员完成,内容为译者出于业余自学目
的联合翻译,有失偏颇之处在所难免,如果您对中文版的教程有相关疑问,请至该论坛参与讨论。
本教程原作者
David Rutten 先生由于工作安排原因暂未完成全部撰写工作,因此,此次中文翻译也止步于现有章
节。
感谢以下成员为翻译工作所做出的努力 (排名不分先后):陈辉 曹子恒 王禹 俞策皓
中文校订:俞策皓
NCF 建筑设计工作室 论坛
http://ncf.5d6d.com/