Version 6 SR18 Python Hatch
@Alasdair wrote: Some of my python scripts for hatches have broken after updating to SR18. For example: import rhinoscriptsyntax as rs object1 = rs.GetObject() object2 = rs.GetObject() pat =...
View ArticleMaterial name to match Layer name
@soccerbatman wrote: Hi everyone, I have been trying to make a script that materials names match their layers names. Here is what I have and it does not work: import rhinoscriptsyntax as rs def...
View ArticleIs it possible to have a py script always running?
@Bogdan_Chipara wrote: Hi, Simple example: Let’s say I have one polyline and each time I change it the script will create an offset of it. Almost as grasshopper does it, but I don’t want to do it with...
View ArticleAccessing Advanced Options via runscript
@gustavo.uzcategui wrote: Hi, Is it currently possible to access (read and change) the Advanced Options in Rhino 5 via scripting (RhinoScript, c#) ? I am trying to modify or disable some options...
View ArticleExtending the recursion limit in GHPython?
@p1r4t3b0y wrote: Hi folks, I’m running into a problem with a Python script that I’m currently working on, where after a couple of iterations, it exceeds the recursion limit somehow!? By iterations, I...
View ArticleAutomatically recomputing dictionaries in GHPython
@aononye wrote: Hi, I have data stored in a dictionary and for every parameter change instead of the dictionary to update automatically, I have to manually recompute. Is this from my end or is this a...
View ArticleConvert from List to 3D Array C#
@rawitscher-torres wrote: Hey Guys, I need to be able to re convert the 3D Array output of a C# scripting component (which seems to "flatten"it out by defualt ) back to its original form as input for...
View Articlers.GetRectangle problem
@Bogdan_Chipara wrote: Hi, I run he script below and pick the points in the order mentioned in the rhino file attached. The rectangle gets printed, but when i try to run something on it like...
View ArticlePython doesn't work, help me fix the code, Thanks
@rhinoceros.adv wrote: Hi everybody I followed the video tutorial but did not return the desired results Can someone fix the code for rihino 6? Thank you Link python:...
View ArticleImporting multiple images as a material
@rheinason wrote: Hi there Just wanted to see if anyone has had any luck creating a script for importing a set of image textures as a material. An example would be creating a new material by importing...
View ArticleGrasshopper to Python | Code translation
@Tia wrote: Hello, I just started working with python, grasshopper and processing/java at school… and yes, I’m slightly confused, to say the least. Anyhow, I am trying to recreate a grasshopper code...
View ArticleIdentifying Duplicate Curves between 2 lists
@a.nigam wrote: Hello everyone, I’m trying to solve what would seem like a straightforward problem but can’t seem to get it to work. I’m trying to find duplicates between 2 lists of curves. The first...
View ArticleEditPtOn equivalent in scripting
@dmitrey15 wrote: hello, what will be equivalent for Rhinoceros command EditPtOn in Python (for the selected Object)? I see the possibility to get the points by rs.CurveEditPoints(Object) , but how to...
View ArticleHow to return a value from a script running inside another script?
@DanBayn wrote: I’d like to get the opinion of the Python gurus as to the correct way to handle this. I think I might be over-complicating it. Say I have Script A that returns a value. Could be a...
View ArticleRebuild Macro
@resolve wrote: I’m trying to map a custom button to rebuild surfaces. I’ve got curves working with: ! _-Rebuild _Degree=3 _Pointcount=4 _Enter This doesn’t work with surfaces though. Do i need to...
View ArticleAre there any function in Rhino Python Scripting syntax to handle Ngons?
@Goswin wrote: Ngons are great! thanks for adding them ! Are there any functions in Rhino Python Scripting Syntax to handle Ngons? Or do I have to use Rhino Common?...
View ArticleAlign camera with a curve
@cosmas wrote: Hey all, Is there any way to align the axis of a camera with a straight line that you preset? Is there a preexisting command or script available for this? Thank you. Posts: 3...
View ArticleSelect solid points and edit points at the same time
@cosmas wrote: One more for today, if I can. If you have a solid overlapping a curve that was maybe used to created it, is there a script that would allow you to select both objects and turn on their...
View ArticleConvert Text to Leader
@Rickson wrote: Any quick way to convert a piece of Text to a leader? Posts: 7 Participants: 3 Read full topic
View Articlerhinoscriptsyntax.BoundingBox not accepting python sets
@Willem wrote: Hi, @stevebaer I suppose: I just found that a python set object is not accepted as itterable in rhinoscriptsyntax.BoundingBox geometry.py starting at line 343: bbox =...
View Article