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

What method can I use to apply a JPG image to a surface?

What method can I use to apply a JPG image to a surface (Python)? 1 post - 1 participant Read full topic

View Article


Object Centroids?

How do I get object centroids? This returns zeros. I tried a bunch of things but still get zeros. I totally know it’s completely wrong, but I don’t know how to figure it out: def...

View Article


Python Import Named Objects from an External Rhino File

Hi All, Wondering if it is at all possible to import a given named object(s) from an external file (always the same file path) into a current file with python? I haven’t used much outside of...

View Article

Writing to a single element of a nested array

Dear forum members, I am once again struggling with my rhinoscript and have already searched the whole internet for a solution of the following problem. I need to store data in a nested array. The...

View Article

Image may be NSFW.
Clik here to view.

Display Properties Within Python

Hi everyone, part of a custom script that I am writing in Python I was wondering if there is a way to control the display properties within Python itself. What I mean is switching on some of the...

View Article


LandArchTools for Landscape Architects

Some scripts that I use daily as a Landscape Architect, I can’t imagine using rhino without them anymore so I’m releasing them for others to use. I don’t know if there are many LA’s in here but...

View Article

Image may be NSFW.
Clik here to view.

Addpictureframe problem

Hey everyone, I’m facing this problem when I’m using Rhinocommon. But when I use rhinoscriptsyntax everything is OK. The problem is when radius of circle is 1 in both way everything is ok, [Python =...

View Article

Update FilePath Texture Material

Hi everyone, I attached a python definition as I am struggling to understand how to update the filepath of the textures loaded in a rhino material. Does anyone have any idea? Thank you!...

View Article


Get trimmed and twisted picture frame information

I need to get information about pixels in a picture frame inserted in Rhino. I already know how to do this on an external image. (System.Drawing.Bitmap.FromFile) There is some method in Rhino.Geometry...

View Article


Can I import rhino viewport in grasshopper?

I created my custom view, changing some property settings in rhino such as basic sky color and named it custom_view. (not named view) Instead of setting it as current viewport in rhino, is there any...

View Article

Image may be NSFW.
Clik here to view.

Groups/ungroup geometry in C# &python?

Help for Groups geometry in C# &python? IMG_20210524_154036_607902×166 20.8 KB group.gh (14.1 KB) IMG_20210524_154044_8431227×350 60.1 KB Python import ghpythonlib.components as ghc a=ghc.Group(x)...

View Article

Start Trigger Component with Python

Hello. Anyone knows how to start a Trigger component with GhPython? Thank you. 4 posts - 3 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

rs.OffsetCurveOnSurface extends resulting offset beyond the surface trimm

Dear all, i am having trouble with the rs.OffsetCurveOnSurface command in combination with a trimmed surface. The command is supposed to extend the resulting offsets to the edge of the surface. Yet I...

View Article


GhPython/RhinoCommon Decal Placement

Is it possible to use the Decal Methods in the RhinoCommon library to update decal application based on a variable point position? I am struggling to find documentation and the Decal constructors...

View Article

DelaunayMesh component fails from python in Version 6 SR34 / Version 7 SR6

Hi, This is a minimal example showing how the DelaunayMesh component is no longer working correctly from Python (_EditPythonScript context) in current versions of Rhino 6 (Version 6 SR34) and 7. I...

View Article


Image may be NSFW.
Clik here to view.

Rhino Python ResetScriptEngine - No module named Grasshopper after...

It works fine when Rhino first load but I encountered module not found error after ResetScriptEngine. So in an attempt to get the Grasshopper module to load, I launched Grasshopper, it works again. My...

View Article

Accessing the Bevel command in a script

Hi! I am trying to use the Bevel command in Grashopper for beveling mesh edges. The command is not directly available in GH but I was trying to call it using a GhPython script but I don’t seem to be...

View Article


Assign Custom Linetype to Curves with Python

Hello, Is there a way I can assign a custom/default Linetype to a Curve, both created with RhinoCommon inside ghpython? Thanks 4 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Using locals() duplicates function arguments

Hello here! Here is a screenshot of the issue: image770×605 21 KB And a copy of the code: import rhinoscriptsyntax as rs def TestLocals(argument_A = 0, argument_B = "True"): argument_A = 1 argument_B...

View Article

Image may be NSFW.
Clik here to view.

Help for Mesh. MergeAllCoplanarFaces API(IN GRASSHOPPER)

HI i need merge Mesh. MergeAllCoplanarFaces API(IN GRASSHOPPER) for Mesh(or SubD) In Python C # or Rhinoscriptsyntax,…??? Is there a way for MergeCoplanarFaces Work in grasshopper as well as this...

View Article
Browsing all 5745 articles
Browse latest View live