SketchUp中多面双向拉伸的Ruby插件如何编写代码?
在看到群里有一个咔咔su专业建模师的人有这款插件,本人愚笨,只编写了前面一段代码,后面的不会了!希望高手帮忙下!
model = Sketchup.active_model
model.start_operation "Push "
entities = model.active_entities
ss = model.selection
if ss.empty?
UI.messagebox("No selection.")
return nil
end
if not ss.first.kind_of? Sketchup::Face
UI.messagebox("Please select face(s).")
return nil
end
model = Sketchup.active_model
model.start_operation "Push "
entities = model.active_entities
ss = model.selection
if ss.empty?
UI.messagebox("No selection.")
return nil
end
if not ss.first.kind_of? Sketchup::Face
UI.messagebox("Please select face(s).")
return nil
end
没有找到相关结果
已邀请:
0 个回复