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

Image may be NSFW.
Clik here to view.

How to auto get point on arc curve

@xiix.xoox wrote: how to auto get point on curve with condition right and bottom of curve. ass.PNG967×668 8.68 KB Posts: 5 Participants: 2 Read full topic

View Article


Please fix me the code for this layer?

@dangtungx wrote: I have collected the code below. It applies to quick selection of layers, with block objects Can someone rewrite it for me to apply to non-block objects thank you import...

View Article


Image may be NSFW.
Clik here to view.

Finding a point within the proximity of another

@DanBayn wrote: I’ve been trying a few things but so far no luck. Please take a look at this, then I will explain what I’m trying to do: image.png956×717 47.7 KB See how those highlighted points are...

View Article

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 Article

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


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

Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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


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

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

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

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


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

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


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

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


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

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

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