找回密码
 注册
搜索
查看: 24992|回复: 10

[心得体会] rhinopython调用GH里面的运算器

[复制链接]
发表于 2014-9-5 14:19:56 | 显示全部楼层 |阅读模式
如图,在rhinopython里面调用GH里面的运算器。
QQ图片20140905141505.jpg

评分

参与人数 1照度 +5 收起 理由
wikii + 5 感谢分享!

查看全部评分

发表于 2014-9-6 12:18:28 | 显示全部楼层
请问怎样导入ghpythonlib,是要在rhino里还是gh里安装module?我的gh里倒是装了ghpython的

点评

新版GHPY具有的模块,版本好像是0.603吧?  详情 回复 发表于 2014-9-6 12:19回复
回复

使用道具 举报

 楼主| 发表于 2014-9-6 12:19:30 | 显示全部楼层
回复

使用道具 举报

发表于 2014-9-6 12:23:37 | 显示全部楼层
楼主刚好在呀,我的也是0.603,但是没法在Python里面调用
回复

使用道具 举报

发表于 2014-9-6 12:32:29 | 显示全部楼层
月之眼 发表于 2014-9-6 12:19
新版GHPY具有的模块,版本好像是0.603吧?

and then,
scriptcentext 和 rhinoscriptsyntax是个什么关系,

点评

猫哥可以试下#coding=utf-8 import Rhino.Geometry as rg import scriptcontext as sc line=rg.Line(rg.Point3d(0,0,0),rg.Point3d(10,10,10)) #创建obj物体 sc.doc.Objects.AddLine(line) #实例化line对象.转  详情 回复 发表于 2014-9-6 13:29回复
scriptcentext貌似和rhino DOC差不多,我经常用来把BOJ物体转化成GUID显示在犀牛的视窗  详情 回复 发表于 2014-9-6 13:24回复
回复

使用道具 举报

 楼主| 发表于 2014-9-6 13:24:19 | 显示全部楼层
熊猫无敌 发表于 2014-9-6 12:32
and then,
scriptcentext 和 rhinoscriptsyntax是个什么关系,

scriptcentext貌似和rhino DOC差不多,我经常用来把BOJ物体转化成GUID显示在犀牛的视窗
回复

使用道具 举报

 楼主| 发表于 2014-9-6 13:29:27 | 显示全部楼层
熊猫无敌 发表于 2014-9-6 12:32
and then,
scriptcentext 和 rhinoscriptsyntax是个什么关系,

猫哥可以试下#coding=utf-8
import Rhino.Geometry as rg
import scriptcontext as sc
line=rg.Line(rg.Point3d(0,0,0),rg.Point3d(10,10,10))
#创建obj物体
sc.doc.Objects.AddLine(line)
#实例化line对象.转换成guid
sc.doc.Views.Redraw()
#刷新视窗
回复

使用道具 举报

发表于 2014-9-8 23:32:59 | 显示全部楼层
月之眼 发表于 2014-9-6 13:29
猫哥可以试下#coding=utf-8
import Rhino.Geometry as rg
import scriptcontext as sc

楼主是成都的?

点评

成都人。猫哥也是?在大水牛群里?  详情 回复 发表于 2014-9-9 00:51回复
回复

使用道具 举报

 楼主| 发表于 2014-9-9 00:51:10 | 显示全部楼层
熊猫无敌 发表于 2014-9-8 23:32
楼主是成都的?

成都人。猫哥也是?在大水牛群里?
回复

使用道具 举报

发表于 2015-5-2 07:37:38 | 显示全部楼层
才看到的好帖!
回复

使用道具 举报

发表于 2015-10-23 13:51:49 | 显示全部楼层
赞小月月……
回复

使用道具 举报

NCFZ微信公众号

手机版|小黑屋|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 ) 辽公网安备21021102000973号

GMT+8, 2026-11-23 20:02 , Processed in 0.048342 second(s), 29 queries , Gzip On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表