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

Image may be NSFW.
Clik here to view.

Auto select the Mesh and print the mesh area with Python

Hi all, I want to write Python to automatically select a mesh and print the area of mesh. I try to use rs.command (" Selall"), but I cannot print the mesh area successfully. Is there any suggestion to...

View Article


Check if point is within a closed brep - Rhino Common or Rhinoscript

Hello All, How do I check if a point is within a solid brep using python? I know that grasshopper has a component called “Point in Brep", but I am scripting in Python 3 (Rhino WIP), and I only have...

View Article


Change View command

Hi All, I’ve made custom commands to change the cameraposition but these arent able to interrupt other commands such as setting a dimension for example. Steps in what I try to achieve: 1 Start...

View Article

Image may be NSFW.
Clik here to view.

Rhino 8: rs.AddPointLight

Hello; What this message mean? 1 post - 1 participant Read full topic

View Article

Kangaroo for grasshopper scripting

I am getting the error “1. Error running script: module ‘ghpythonlib.components’ has no attribute ‘KangarooSolver’” when using the code: author = “jason” version = “2023.11.09” import...

View Article


Image may be NSFW.
Clik here to view.

Vertical scroll bar

but the vertical scroll bar is missing in the script editor? 6 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Enable/Disable Shadows

Hi How can shadows be enabled/disabled using scripting? 3 posts - 2 participants Read full topic

View Article

Rhino python print automation

Hi. i’m trying to make an automatiob that help printing current view maybe Viewcaputuretofile has some problems i can’t control the line weights under 1px… any ways to control line weight when i using...

View Article


Excel Interop in Rhino 8 Script Editor (Python 2)

I am having trouble with the new script editor, running below code gives an error in Rhino 8 while it runs fine in Rhino 7? Any ideas? The error: IOError: System.IO.IOException: Could not add...

View Article


Image may be NSFW.
Clik here to view.

Make pins with holes

Can you help me with a plug-in that creates pins with holes? lp me with a script to do this, I would greatly appreciate it 12 posts - 5 participants Read full topic

View Article

Is there a version 6 quirk with AddText?

So I’m still trying to iron out the bugs in a VBScript script that was made for v4 and works fine in 7+ with minor changes but unfortunately the customer is on 6, which seems to have some oddities....

View Article

Image may be NSFW.
Clik here to view.

How do i properly point rhino to an exisitng Anaconda env?

First. thanks for getting python3 going huge leap forward. I use Anaconda quite a lot. can i not have rhino use my existing conda environments? meaning i have to double down on recreating those envs...

View Article

Image may be NSFW.
Clik here to view.

Is Rhino 8 C# really slow?

Hello, Just tried rebuilding a Rhino 7 C# component in Rhino 8 C#. It is really slow. Anyone know why? R7 is at the top (43ms), the R8 is at the bottom (227ms) The code is: private void...

View Article


Overloading BezierCurve constructor in ghpython?

I’m new to Rhino and Grasshopper, and exploring to see what I’ll run into if I try to use grasshopper to create a garment pattern draft. I’m using the rhinocommon python api, and hit the ambiguous...

View Article

Return focus to form

Hello everybody, I am very new in programming and sure that my question is a little bit silly… I have found this information about how to show a form using python scripting: Link I have created a...

View Article


Script to fix imported 2D geometry...?

I’m importing the file from Adobe Illustrator to Rhino. Illustrator UI has precision of 0.001mm. But AI stores data in points. Because of all the calculation and rounding - actual measures are off by...

View Article

Rhino 8 _ScriptEditor on Mac

When opening the _ScriptEditor, Rhino 8 will open with an earlier loaded .py script, which is nice but if the _ScriptEditor can’t find this .py file (because you renamed it or moved it to another map)...

View Article


Image may be NSFW.
Clik here to view.

Script that won't work in V7

I have this script, and I use packagemanager to make a plugin. I’ve updated the script for Rhino 8, and the script runs fine in V8. But, if I compile it with Script Compiler in V7, the command won’t...

View Article

Image may be NSFW.
Clik here to view.

Need help make surface parallel surface

I have two surfaces, surface 1 is created with midtop at 0,0,0 and lies on the OZX plane. How do make scirpt to rotate surface 1 according to surface 2 so that the two surfaces are parallel to each...

View Article

Rhino 8 C# IEnumerable instead of List?

Previously when you changed the C# Component input to type List Access, the data would come into the component as a List now it comes in as an IEnumberable. This seems fairly unusable unless you are...

View Article
Browsing all 4140 articles
Browse latest View live