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

-_RunPythonScript crashes in V5

@jdhill wrote: I am experiencing consistently-repeatable crashes with 5.14.522.8390, specifically when interpolating strings within _-RunPythonScript. That seems crazy, but I’ve completely reinstalled...

View Article


Can I control Environment rotation with a script?

@Holo wrote: Hi, I have tried to find the settings to control an Environment rotation through scripting (Ideally I would like to make a panel with some sliders for fast manipulation, but I can not...

View Article


Insta-scripting possible?

@hanscad wrote: Sorry if this is a dumb question or already discussed. Very often, I do operations that I’ll need to do exactly twice. I’ve become well-accustomed to just doing it twice, but please...

View Article

Rhino.AddPoint as World Co Ordinate value

@RogerD wrote: Hi I am re visiting some old scripts and as you can see below I used to add a point in World co ordinates in the following fashion pulling Dim 1 from an ini file pt2 = "Point" & " "...

View Article

Image may be NSFW.
Clik here to view.

Exploding RhinoCommon HiddenLineDrawing segments

@Helvetosaur wrote: So once I have computed my HiddenLineDrawing, I have a collection of segments which are stored in .Segments… hdp=Rhino.Geometry.HiddenLineDrawingParameters()...

View Article


Message: unable to convert 8de8acb9-2bf3-4f90-a848-c03254349161 into Curve...

@kggadhavi wrote: import rhinoscriptsyntax as rs import math class MyPolygon: def __init__(self, radius, sides): self.radius = radius self.sides = sides #variable theta theta = (2 *math.pi)/self.sides...

View Article

What is Guid in Rhino IronPython?

@kggadhavi wrote: I would like to know what is Guid in IronPython in Rhino. I am new to python scripting in Rhino and want to know basic building blocks of the python script. Posts: 3 Participants: 2...

View Article

I am not able to rotate my Cylinder at 90 degree ant help please?

@kggadhavi wrote: #import rs script import rhinoscriptsyntax as rs import math #define a center point base=rs.GetPoint(“Base of Cylinder”) bPt = base #define the height of Cylinder height =...

View Article


Image may be NSFW.
Clik here to view.

Rename "RunPythonScript" in Undo

@spb wrote: Is there a way to set the “RunPythonScript” to a custom string so scripts can be distinguished from each other in the Undo Multiple window? Thank you, Steve Posts: 1 Participants: 1 Read...

View Article


Filtering Mesh edges sharing 2 faces - Sandbox Topology, EdgeAdjacency or?

@Federico_Giacomarra wrote: HI i’m trying to filter the edges of a mesh to get those which share 2 faces. (basically getting the interior edges of a mesh) I tried with sandbox, MeshTopologyEdgeFilter...

View Article

Image may be NSFW.
Clik here to view.

Orient Objects flat on CPlane / labeling

@Willy_Werkel wrote: Hey, I could use some help creating a macro which rotates and orients all polysurfaces I have on the grid. In addition to this I would like to have the surfaces labeled on the...

View Article

Python script print multiple looped object while scaling

@calgre wrote: import rhinoscriptsyntax as rs #x = input mesh for i in range(0,1000000): E = rs.ScaleObject(x,rs.MeshVolumeCentroid(x),(i/100,i/100,i/100),True) if rs.MeshVolume(E)[1]*(0.87) >=...

View Article

C# call REST client with x-api-key within grasshopper

@p.d.siedler wrote: Hi there, I was wondering if anyone has done a REST api call with a x-api-key using a c# component in grasshopper? If yes could you guide me to an example, if no any any idea where...

View Article


Image may be NSFW.
Clik here to view.

Object Label Script

@Dave_Perry wrote: Need a script which will label objects in a specific orderobject label example.3dm (230.0 KB) Select start point Select direction Input label description Input start number Label...

View Article

Rhinoscript Command blnEcho not working properly when scripting Export and...

@SherifTarabishy wrote: The title says it all. I am scripting Export and Import commands from GHPython. But the blnEcho option when scripting those two does not work the same like when scripting other...

View Article


Export .stl file

@panda wrote: Hi,everyone How export .stl file using c# in grasshopper? Posts: 1 Participants: 1 Read full topic

View Article

How to call the CreateParameter method in C#

@sherbetjuice wrote: Hi, I’m quite new with C# scripting, and I’m trying to create my own .gha component from VS. I wish to have variable inputs by clicking the little “+” on the component (something...

View Article


RhinoCommon - shrinking Brep faces

@Helvetosaur wrote: Having some issues here with shrinking a single-face Brep here (V5, for compatibility reasons)… Using brep.Faces.ShrinkFaces() does indeed work, however it does not “shrink to...

View Article

AddTweenCurves function is missing (Python)

@korne wrote: Hi, It seems that the AddTweenCurves function is missing. If i check the Curves.py document, AddTweenCurves and ChangeCurveDegree are not there. Is it possible to update the...

View Article

SelChain with preselected curve

@AleksandarSM wrote: Hello, is there a way to use preselcted curve for SelChain command? I made script for SELCHAIN command like this -SelChain _ChainContinuity=_Tangency _GapTolerance=0.15...

View Article
Browsing all 5877 articles
Browse latest View live