How to catch points with a black color value in Rhinopython?
@Bianchi wrote: I'd like to identify points or text dots that have a black color or RGB (0, 0, 0). How do I go about identifying them? I have used rs.ObjectColor, but it returns Color [Black] or Color...
View ArticleRhino.MeshVolume
@J11 wrote: I am new to scripting. I found a script on a forum. It compiles data from a Rhino file and exports it to excel. I have used it successfully but altered the script to calculate the volume...
View ArticleSet DetailView using NamedView
@flecheria wrote: HII have a list of NamedView and a list of DetailView.I'm trying to set every DetailView with one of the NamedView and assign a scale.I've tried different solution but nothing seem...
View ArticleSimilar code behaves different in C# and VB - How to fix?
@RIL wrote: Hi all scripters out there, I tried port a code snippet from C# by @fraguada into VB script component in Grasshopper, but the VB code doesn't seem to accept the Breps or Geometry that the...
View ArticleObjectName
@J11 wrote: When I save a file as csv file the object name is the same as in the selection menu. However, when i use the rhino.objectname command, the object is named object_1, object_2 etc. I am...
View ArticleHook Class running so laggy!
@panda wrote: Hi,everyone!I have written a MOUSE_EVENTS class which has successfully response the mouse_event in grasshopper,the code is running so laggy!What caused this problem?You can see the...
View ArticleBug: PropertyListBox
@Jess wrote: Hi RMA, the rs.PropertyListBox i.e. Rhino.UI.Dialogs.ShowPropertyListBox does not like utf-8 characters like Ä Ö Ü and so on. Here a python example: # -*- coding: utf-8 -*- import Rhino...
View ArticleQuit process that takes too long
@AleksandarSM wrote: Hello, I made command that works in the loop - finds and unrolls the largest surface within each polysurface, but the command sometimes hangs ( rhino becomes non-responsive )...
View ArticleHelp: Select set of mesh faces
@Holo wrote: Say I have a small mesh cube, now how can I run a script and select mesh face 1,3 and 5? Thanks! Posts: 7 Participants: 2 Read full topic
View ArticleScrip needed: export 3D curves to a text file?
@gustojunk wrote: Hi All, I'm trying to come up with a way to export 3D curves to Modo. The modo team said that they coudl script an import on their end if I have a text file of selected 3D curves....
View ArticleHow access UserDictionary in Python?
@RIL wrote: OK, I didn't sleep last night because the following drives me nuts: How can I access the UserDictionary with PythonScript of : a Rhino object selected by the user, or a Brep, or Geometry...
View ArticlePython: Select text with same height
@timglobal wrote: Hello everyone, I'm fairly new to scripting in python, but so far its cool.I was working with an urban plan and needed to select some text of specific height. I looked around the...
View ArticleSave macro steps in seperate file
@onrender wrote: Hello, I would like to ask if it possible to save certain macros in separate file or I should use scripts that store macros? Regards,Andras Posts: 3 Participants: 2 Read full topic
View ArticleGrips in script
@onrender wrote: Hi, Today I went trough some of the scripting functions and I found the Grips. Is the same grips than in Revit the Arrow handles? revitelemental.blogspot.co.uk Shape Handles (Dragging...
View ArticleGH/VBScript - Replace Block Definition while keeping Instances?
@RIL wrote: Q: Is it possible to keep Block Instances while updating (replacing) the Block Definition, and then re-reference the Instances back to the (updated/replaced) Block Definition again? In the...
View ArticleManipulate object grips while python script is running
@Bogdan_Chipara wrote: I would like to run a script which at one point will stop and let the user manipulate the grips of a simple line. Once done, user hits enter, and the script will calculate the...
View ArticleModify grips via gumball while a script is running?
@Bogdan_Chipara wrote: I want to start a python script, pause and let the user modify some grips of a line using gumball, and than start again. Posts: 2 Participants: 2 Read full topic
View ArticleLock curves script
@onrender wrote: Hi, I tried the following script from the Python 101 but did not work. Could you tell me why? I have created several curves and Run the script but nothing happened. import...
View ArticlePython: How to find all groups?
@Michael_Meyer wrote: Hi..., how to find and traverse all groups with Python? group = sc.doc.Objects.FindByGroup(number) I play with FindByGroup(number), but what is number? 0,1,2,3 or 0, 2, 4,5, when...
View ArticleHow use Python make _ProjectToCPlane command?
@Alen_Russ wrote: Hello, I have not fine _ProjectToCPlane command in Python, How can I do for this? Thank you. Posts: 2 Participants: 2 Read full topic
View Article