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

3D regular BoundingBox from python component

Hello, I currently don’t understand on how to get the 3D Bounding Box of a component. I’m sorry for asking so much. import rhinoscriptsyntax as rs import ghpythonlib as ghpy import Grasshopper as gh...

View Article


Vanilla Rhinocommon V6 vs. Plankton library

I was trying to make a little customization to the original MeshMachine code (by @DanielPiker) in python. The original code utilizes the plankton (by @will) library, which I managed to port into...

View Article


Image may be NSFW.
Clik here to view.

Find thickness of a complex object

Hey guys, does somebody know how to find thickness of a complex object (more surfaces joined and created a closed polysurface) like in image , a easy and efficent way image1146×609 8.53 KB 2 posts - 2...

View Article

Python create 3dm file and save/export objects in them

hello there, I want to make some kind of a database, but with rhino files. So,for example, in the current Rhino file I create 2 objects. When this custom command is executed, it should select the 2...

View Article

Check multiple splits with Rhino API

Hello, I would like to know if there is a way to check if the split has succeed with API. I use VB.Net The thing is when I split a surface with multiple Breps (even with a for each…), if it fails, I...

View Article


Access ActiveDoc from a panel

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Installing python plugin commands fails in rhino 6

The problem: Creating a rhi-file for python pluging commands fails to install correctly. The (probable) reason: Installing creates the folder and file in the correct place, but in the folder name the...

View Article

How to reparameterize a surface in Python?

Hello friends How do I make a surface in Python reparametrize Thankful 2 posts - 2 participants Read full topic

View Article


Python editor - Shift+Tab to dedent?

I could have sworn this worked before, but now it doesn’t. Am I imagining things? 3 posts - 2 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Python_How to solve this problem? expected Point3d, got list

Hello I’m trying to make a triangle pattern from points grid. But i have a problem like the picture. i need your help~ Please let me know what is the problem and how to solve this problem? python...

View Article

Image may be NSFW.
Clik here to view.

Ghpython Input name

Hello Is it possible when the value changed than the name of input changed? 0 >> Option1 1 >> Option2 2 >> Option3 … 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Degrees input

Hello In python how to add degrees in input? image839×509 35.1 KB 8 posts - 4 participants Read full topic

View Article

Gh_Component SDK mode very slow

Hello When i switch to Gh_Component SDK mode the calculation become very slow why? https://aws1.discourse-cdn.com/mcneel/uploads/default/original/3X/8/9/895acc03fd324d4885408b4bee5fc8086cd24e55.mp4 1...

View Article


Attribute User Text as Python dictionary

Hello! I am trying to retrieve all objects from the rhino document in order to get their Attribute User Text as a Python dictionary. No luck so far… What I have been trying is this: for rObj in...

View Article

Image may be NSFW.
Clik here to view.

RhinoScript from Guidebook doesn't work

The code from the guidebook keeps asking about my ‘favourite things’ without any grande finale Could you please check if it forks for you? I work with Rhino 4 Sub MyFavouriteThings() Dim strPrompt,...

View Article


Help with Layers in a Script

Here is a Rhino script that I have worked with. The goal of the script is to read a CSV file that has either a one line description or X,Y,Z coordinates. When it hits a description, it creates a layer...

View Article

Attribute User Text as Python dictionary

Hello! I am trying to retrieve all objects from the rhino document in order to get their Attribute User Text as a Python dictionary. No luck so far… What I have been trying is this: for rObj in...

View Article


Image may be NSFW.
Clik here to view.

Connecting to mysql database using python on Hostgator

Hi everyone, I am trying to connect to a mysql database on my Hostgator web server I followed the instruction in this link: ironpython.info Databases with Odbc - IronPython Cookbook However, i...

View Article

Script to isolate parent layer without effecting children?

i found some floating around the forum but they all turn off all the other layers and turn on all the child layers. i’d like to just isolate based off the parent layer leaving the on/off state of the...

View Article

String add parenthese to coordinates - help

Hi I’ve got a problem with this part of my python script (keep in mind - I mostly use python to make elobrated macros) In the begin I input numbers for it . lpp = 264500 LOA = 277000 beam = 46000...

View Article
Browsing all 5892 articles
Browse latest View live