# RhinoScript / RhinoPython

**URL:** https://cn.discourse.mcneel.com/c/rhinoscript-rhinopython/56.md

[最新版本](https://cn.discourse.mcneel.com/latest.md) · [分類](https://cn.discourse.mcneel.com/categories.md) · [標簽](https://cn.discourse.mcneel.com/tags.md)

---

## [RhinoScript / RhinoPython 的專屬討論版面](https://cn.discourse.mcneel.com/t/rhinoscript-rhinopython/76)

<div class="topic-metadata">

**Author:** [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**回覆:** 1\
**Last updated:** [2014年一月2日 04:15 UTC](https://cn.discourse.mcneel.com/t/rhinoscript-rhinopython/76 "2014-01-02T04:15:27Z")

</div>

RhinoScript 是以 VBScript 為基礎的指令碼語言，可以使用 Rhino 提供的 Script 函式庫將重複性作業流程自動化，提高工作效率。RhinoPython 是 RhinoScript 的後繼指令碼語言，以 RhinoPython 撰寫的指令碼可以在 Rhino for Windows 與 Rhino for Mac 跨平台使用。 如果你具備英文的溝通能力，RhinoScript 與 RhinoPython 的…

---

## [關於 TextObject 參數自動設定的使用](https://cn.discourse.mcneel.com/t/topic/1607)

<div class="topic-metadata">

**Author:** [@angel](https://cn.discourse.mcneel.com/u/angel)\
**回覆:** 2\
**Last updated:** [2020年二月4日 15:38 UTC](https://cn.discourse.mcneel.com/t/topic/1607 "2020-02-04T15:38:41Z")

</div>

! \_-TextObject aa\_8 0,0,0 \_Height=5.000 \_Rotation=0 \_Font=Arial \_Italic=No \_Bold=No \_HorizontalAlignment=Center \_VerticalAlignment=Top \_CreateGeometry=Curves \_GroupOutput=Yes \_AllowSingleStrokeFonts=No \_LowerCaseAsSmallC…

---

## [新人求解，关于插件开发](https://cn.discourse.mcneel.com/t/topic/1460)

<div class="topic-metadata">

**Author:** [@1668082946](https://cn.discourse.mcneel.com/u/1668082946)\
**回覆:** 13\
**Last updated:** [2019年三月14日 06:19 UTC](https://cn.discourse.mcneel.com/t/topic/1460 "2019-03-14T06:19:58Z")

</div>

我现在有一个mesh，贴了图，需要把mesh上指定坐标点的贴图颜色和法向量取到，请问有什么办法或思路

---

## [OffsetCurveOnSurface（）函数案例文件错误](https://cn.discourse.mcneel.com/t/topic/1424)

<div class="topic-metadata">

**Author:** [@NARUTO](https://cn.discourse.mcneel.com/u/NARUTO)\
**回覆:** 1\
**Last updated:** [2018年十一月19日 10:36 UTC](https://cn.discourse.mcneel.com/t/topic/1424 "2018-11-19T10:36:41Z")

</div>

OffsetCurveOnSurface（）函数自带的案例文件有个小错误。“point = rc.GetPointOnSurface( surface, “Through point” )”中的rs写成了rc。谢谢

---

## [rs.AutosaveInterval() 函数BUG](https://cn.discourse.mcneel.com/t/topic/1418)

<div class="topic-metadata">

**Author:** [@NARUTO](https://cn.discourse.mcneel.com/u/NARUTO)\
**回覆:** 2\
**Last updated:** [2018年十一月21日 03:38 UTC](https://cn.discourse.mcneel.com/t/topic/1418 "2018-11-21T03:38:17Z")

</div>

rs.AutosaveInterval() 函数具有一些BUG，运行案例文件会出现错误，像这样 开发者把“AutoSaveInterval”这个属性中的Save小写了，所以会出现这个错误。Rhino5和Rhino6中都会有这个问题。 修改了一下代码。 import rhinoscriptsyntax as rs import Rhino import System def AutoSaveInterval(minutes…

---

## [Rhino开发教程](https://cn.discourse.mcneel.com/t/topic/1292)

<div class="topic-metadata">

**Author:** [@gxyanjiaju](https://cn.discourse.mcneel.com/u/gxyanjiaju)\
**回覆:** 5\
**Last updated:** [2018年三月5日 08:50 UTC](https://cn.discourse.mcneel.com/t/topic/1292 "2018-03-05T08:50:18Z")

</div>

有关于Rhino C#开发方面的一些官方教程或比较好的教程吗？请帮忙推荐一下。我自学老是在门口转悠，不得要领。

---

## [RhinoPython的AddSubCrv函数示例文件问题](https://cn.discourse.mcneel.com/t/rhinopython-addsubcrv/1158)

<div class="topic-metadata">

**Author:** [@NARUTO](https://cn.discourse.mcneel.com/u/NARUTO)\
**回覆:** 3\
**Last updated:** [2017年七月16日 05:38 UTC](https://cn.discourse.mcneel.com/t/rhinopython-addsubcrv/1158 "2017-07-16T05:38:29Z")

</div>

大家好 RhinoPython的AddSubCrv函数示例文件有个单词写错了的小错误 \[圖片\]

---

## [GetSettings函数帮助文件错误](https://cn.discourse.mcneel.com/t/getsettings/1042)

<div class="topic-metadata">

**Author:** [@NARUTO](https://cn.discourse.mcneel.com/u/NARUTO)\
**回覆:** 1\
**Last updated:** [2016年十二月21日 06:08 UTC](https://cn.discourse.mcneel.com/t/getsettings/1042 "2016-12-21T06:08:27Z")

</div>

Hi KelvinC rhinopython中的rhinoscriptsyntax.GetSettings函数的帮助文件案例有个小错误。少写了一个“：”符号 \[圖片\] 谢谢 ——NARUTO

---

## [RhinoWIP中ZoomSelected函数案例遇到错误](https://cn.discourse.mcneel.com/t/rhinowip-zoomselected/1004)

<div class="topic-metadata">

**Author:** [@NARUTO](https://cn.discourse.mcneel.com/u/NARUTO)\
**回覆:** 1\
**Last updated:** [2016年十月12日 07:08 UTC](https://cn.discourse.mcneel.com/t/rhinowip-zoomselected/1004 "2016-10-12T07:08:06Z")

</div>

Hi KelvinC 我在使用RhinoWIP中ZoomSelected函数自带例子时遇到了错误，导入的模块名字少写了一个S。 import rhinoscriptsyntax as rs obj = rs.GetObject("Select object", select=True) if obj: rs.ZoomSelected() 如图： \[圖片\] ——Naruto

---

## [RhinoWIP中使用函数自带例子遇到错误](https://cn.discourse.mcneel.com/t/rhinowip/935)

<div class="topic-metadata">

**Author:** [@NARUTO](https://cn.discourse.mcneel.com/u/NARUTO)\
**回覆:** 2\
**Last updated:** [2016年六月24日 08:58 UTC](https://cn.discourse.mcneel.com/t/rhinowip/935 "2016-06-24T08:58:28Z")

</div>

在用rhinopython使用AddInterpCrvOnSrfUV这个函数自带的例子时遇到错误。 surface\_id在案例中被写成了surface\_d，还有一个是v1被大写了。这个问题在rhino5.0SR13中也存在。 谢谢! \[圖片\]

---

## [调用rmtl文件赋予给选取对象如何写？](https://cn.discourse.mcneel.com/t/rmtl/878)

<div class="topic-metadata">

**Author:** [@Alen\_Russ](https://cn.discourse.mcneel.com/u/Alen_Russ)\
**回覆:** 4\
**Last updated:** [2016年三月26日 13:31 UTC](https://cn.discourse.mcneel.com/t/rmtl/878 "2016-03-26T13:31:32Z")

</div>

您好， 犀牛5 想调用一个保存好的rmtl后缀的材质文件赋予给选取对象用犀牛代码如何写？犀牛本身巨集命令代码可以写吗？或者说调用RS脚本代码或py怎么写？

---

## [【范例】选取视窗中显示在最前面的物件(Python & RhinoCommon)](https://cn.discourse.mcneel.com/t/python-rhinocommon/660)

<div class="topic-metadata">

**Author:** [@Jorin](https://cn.discourse.mcneel.com/u/Jorin)\
**回覆:** 1\
**Last updated:** [2015年五月22日 14:10 UTC](https://cn.discourse.mcneel.com/t/python-rhinocommon/660 "2015-05-22T14:10:51Z")

</div>

这个问题是前段时间通过 E-Mail 为用户解答的问题，拿来给大家参考： 因为 Rhino 中组织管理物件是通过物件类型和物件 GUID，没有哪个现成的函数能够通过显示顺序来抓取物件，所以这就需要自己写这样的功能。 思路很简单，求取正在使用中工作视窗中所有显示的物件最近点和这个工作视窗摄影机位置点的距离，距离最近的物件必然就是显示在最前面的物件。 我用 Python 调用 RhinoCommon 的函数写了一个简化版的例子，…

---

## [gh脚本如何用代码实现CurveBoolean](https://cn.discourse.mcneel.com/t/gh-curveboolean/435)

<div class="topic-metadata">

**Author:** [@huaxiamengqing](https://cn.discourse.mcneel.com/u/huaxiamengqing)\
**回覆:** 1\
**Last updated:** [2014年十一月3日 15:04 UTC](https://cn.discourse.mcneel.com/t/gh-curveboolean/435 "2014-11-03T15:04:45Z")

</div>

想在gh里面实现这个命令，就是选择区域里面一点来回去边界！

---

## [Rhino Python Script 官方帮助文件中文译本](https://cn.discourse.mcneel.com/t/rhino-python-script/448)

<div class="topic-metadata">

**Author:** [@Jorin](https://cn.discourse.mcneel.com/u/Jorin)\
**回覆:** 0\
**Last updated:** [2014年十月26日 13:40 UTC](https://cn.discourse.mcneel.com/t/rhino-python-script/448 "2014-10-26T13:40:32Z")

</div>

今天正式推出 Rhino Python Script 官方帮助文件中文译本，大家可以通过下面的页面在线查阅 Rhino Python Script 各个函数的用法了。 http://bbs.shaper3d.com/pythonhelp/index.htm 阅读过程中发现译本中的错误，请发送邮件到 jorin@shaper3d.com，或直接在这里回复，以便修正。 版权归 Robert McNeel & Associates…

---

## [【教学】可变电阻控制几何体形态(GH+C#+Arduino)](https://cn.discourse.mcneel.com/t/gh-c-arduino/430)

<div class="topic-metadata">

**Author:** [@Jorin](https://cn.discourse.mcneel.com/u/Jorin)\
**回覆:** 0\
**Last updated:** [2014年十月10日 06:19 UTC](https://cn.discourse.mcneel.com/t/gh-c-arduino/430 "2014-10-10T06:19:35Z")

</div>

很多同学对硬件控制 GH 很感兴趣，正好今天有同学自己写程序连外设遇到点小问题，那就正好解答问题顺带做个教程了。这位 Zzzz 同学的帖子如下： http://bbs.shaper3d.com/thread-24815-1-1.html Read me 本教学中的例子，用 Grasshopper 的 Firefly 插件做是非常简单的，但是这篇教学不用Firefly，而是用C#写脚本来实现。 如果不是对C#程序感兴趣，只是…

---

## [在Mac下用Eclipse和Rhino For Mac搭建RhinoPython编辑运行环境](https://cn.discourse.mcneel.com/t/mac-eclipse-rhino-for-mac-rhinopython/281)

<div class="topic-metadata">

**Author:** [@Jessesn](https://cn.discourse.mcneel.com/u/Jessesn)\
**回覆:** 0\
**Last updated:** [2014年五月5日 08:36 UTC](https://cn.discourse.mcneel.com/t/mac-eclipse-rhino-for-mac-rhinopython/281 "2014-05-05T08:36:34Z")

</div>

Rhino for mac 测试版发布已经有一段时间了，并且经常在更新，但直到目前为止，RhinoForMac并没有像Rhino for windows一样具备一个python的脚本编辑器，可以让我们半自动的填充代码，检查语法错误，高亮显示代码等等。 现在我们就在Eclipse for mac这个著名而强大的第三方编辑器中搭建RhinoPython的编辑环境，方便我们在mac下写Python脚本。 第一步，安装Rhino for m…

---

## [跟我读 『RhinoPython 101』“系列视频教学](https://cn.discourse.mcneel.com/t/rhinopython-101/307)

<div class="topic-metadata">

**Author:** [@Jessesn](https://cn.discourse.mcneel.com/u/Jessesn)\
**回覆:** 1\
**Last updated:** [2014年六月23日 06:16 UTC](https://cn.discourse.mcneel.com/t/rhinopython-101/307 "2014-06-23T06:16:21Z")

</div>

Hi All 我们从 Rhino 5 开始增加了新的脚本语言-RhinoPython。RhinoPython 是一个强大的脚本语言，能运行于 32位与64位的 Rhino 5，以及即将上市的 Rhino OSX, RhinoPython脚本可以无损跨平台运行，且编写及其灵活，语法非常简洁。 为了让所有有心想尝试 RhinoPython的用户，McNeel 公司在推出 RhinoPython的同时就发布了配套教学 - RhinoP…
