[AppleScript] 纯文本查看 复制代码 #coding=utf-8
#作者:月之眼
import rhinoscriptsyntax as rs
obj = rs.GetObject("需要间隔选取控制点的曲线", rs.filter.curve)
if obj:
rs.EnableObjectGrips(obj)
grips_count = rs.ObjectGripCount(obj)
count = rs.GetInteger("间隔数",2,1,grips_count-1)
for i in xrange(0,grips_count,count):
rs.SelectObjectGrip(obj,i)
grips = rs.SelectedObjectGrips(obj)
贴一个rhinopython的脚本,可以执行间隔选择控制点
|