Quantcast
Channel: Scripting - McNeel Forum
Browsing all 5745 articles
Browse latest View live
↧

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 Article


Rhino.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 Article


Set 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 Article

Image may be NSFW.
Clik here to view.

Similar 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 Article

ObjectName

@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 Article


Hook 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 Article

Bug: 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 Article

Quit 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 Article


Help: 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 Article


Scrip 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Python: 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 Article

Save 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 Article


Image may be NSFW.
Clik here to view.

Grips 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 Article

GH/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 Article


Manipulate 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 Article

Modify 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 Article


Lock 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 Article

Python: 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 Article

How 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
Browsing all 5745 articles
Browse latest View live