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

Open an .rmtl file and apply it to a layer?

Is it possible in python to open an .rmtl file and apply it to a layer? And, if so, how? 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

How to set the environment texture amount on material?

I want to set the amount of the environment texture. Can I do that in python? And, if so, how? (I’ve figured out how to set most of the other settings I need.) import rhinoscriptsyntax as rs import...

View Article


Image may be NSFW.
Clik here to view.

Command for settling an object on the ground

Is there any Rhino command, Macro or script that can settle an object on ground above world origin? And also, I would like to ask what is the command for placing an object to the world origin, I mean...

View Article

Image may be NSFW.
Clik here to view.

The script automatically creates screw holes

I look forward to helping 4 posts - 3 participants Read full topic

View Article

Rhinoscriptsyntax.command vs commandprompt

Hi all, I’m wondering if there are any background differences between pythons rhinoscriptsyntax.command() function compared to write in the command promt straight away. I have MadCam installed and...

View Article


Image may be NSFW.
Clik here to view.

Error executing Python script from alias

I’ve got a Python script that I’m trying to run from an alias. When I attempt to use the alias, I get an error. Is there something obvious here that I’m doing wrong? 15 posts - 5 participants Read...

View Article

Macro - object creation using existing selection for required inputs

Trying to set up a macro to create a circle using the 2Point method. This requires 2 clicks in the creation process to define the end points of the circle’s diameter. I would like to be able to...

View Article

Breakpoints being skipped when debugging OnPushButton or click events

Every time I put a breakpoint on code triggered by a mouse click event the breakpoint is ignored when debugging. Unfortunately this leads to a crash, and because I cannot step through I don’t know...

View Article


Image may be NSFW.
Clik here to view.

Python3 stuck when running PyTorch in Rhino8 Script for second time

I have installed and run PyTorch in the Rhino8 Python3 script successfully. For the scripts that need to load datasets or train the model (without any bug), the script editor will get stuck when I run...

View Article


EditListBox and OrderListBox in Rhino 7

Hello, In Rhino script 6 it was possible to create controls allowing you to add, delete and move the entry of a list....

View Article

Please help python code not working properly with objects

I have written code to divide the curve into short segments according to the entered quantity and approximately at a ratio of the next line equal to the previous line multiplied by the entered ratio....

View Article

Image may be NSFW.
Clik here to view.

Geometric symbols and tolerances creation of a Feature Control Frame

help to create a Feature Control Frame Hi, I want to ask if there is a way to create this kind of specifications inside rhinoceros. The requirement is that the part assembly must pass an axis through...

View Article

rs.WindowPick

Hi, Strange behavior of the rs.WindowPick() If you try to make very narrow and vertical selection e.g. rs.WindowPick((0,0,0) ,(1,1000,0), select=True) it will select random objects. 1 post - 1...

View Article


Rhino 8 C# Script component multiple problems

Hello, I’m not sure where to start with this one. Bought a Rhino 8 licence on day one, super excited to try out the new features. On opening a Rhino 7 .gh file with c# components killed Rhino 8, not...

View Article

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


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
Browsing all 5938 articles
Browse latest View live