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

Image may be NSFW.
Clik here to view.

Create a new layer naming issue via a python script

I love how I can run the alias that calls this script and just type in the name…just so long as it is one word. Is there any way to modify this script so that pressing the tab key when entering a name...

View Article


Access to Current Value of ric.GetObject.AddOptionList

Greetings. Through EditPythonScript within Rhino 7, I added an option which consists of 3 options while providing possibility for curve selection. I am further able to reach out to these options and...

View Article


Use Ironpython in Rhino8

Hello, How can I make my Python scripts work on Rhino8? They are written using Ironpython, since they are supposed to work on Rhino6/7. I would like to force Rhino8 to use Ironpython as well, without...

View Article

-viewCaptureToFile strange beahvior

Hi, I’m using python’s rs.command() in Grasshopper to automate some viewCaptureToFile exports. I seem to have everything setup properly, and Rhino’s Command line gets all the way to Save file name (...

View Article

Pls help with batch

You have a batch script, but it’s not perfect. You need it to delete everything except the specified paths, but it currently deletes everything. How can it be modified to delete everything except...

View Article


Rhino 8 Script editor question

hello, is there a short cut for formatting the code (auto indentation) ? (i’m on Windows) thx 1 post - 1 participant Read full topic

View Article

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


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.

The script automatically creates screw holes

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

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? 5 posts - 3 participants Read full...

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