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

Get all materials in scene (Python)

@dick.lelyveld wrote: Hi all, I want to list all materials in the scene, so I can select a material from a list and assign it to a selected object. I tried the following code, to no avail: import...

View Article


Rendering through Python

@Mat_S wrote: Is there a way to use rhino api to do something like SetFlythroughAnimation without needing to render an active view? Ideally I would like to make a camera, then attach it to a curve,...

View Article


C# About ObjectTable Class

@hk11 wrote: I have a question about ObjectTable class. When I want to use a method of ObjectTable Class. I can’t new a ObjectTable like below. How I can do?Please help… Posts: 2 Participants: 1 Read...

View Article

Image may be NSFW.
Clik here to view.

C# Grasshopper: How to Get a Pixel of a Rhino Viewport without using...

@asp2150 wrote: I am using a GH script to create a custom raycast tool that will allow me to dynamically control the vector direction of each pixel in projected into the scene. I am using Rhino and GH...

View Article

How does the Python debugger running?

@onlyforpeace wrote: Namaste!! when i click on step into, or step over it seams the same, what is the difference? how can i do without it go inside function? some times, it’s ok, but some times no…...

View Article


Image may be NSFW.
Clik here to view.

Need PythonScript to trim curve

@pcsv17 wrote: Hello, have two closed curves on one layer and i need to trim the internal lines with python. example.png699×483 7.01 KB Kind regards from germany Sven Posts: 3 Participants: 2 Read...

View Article

Image may be NSFW.
Clik here to view.

Curve growth on multiple curves with perpendicular vector?

@henamico wrote: image.png1868×910 340 KB Hello, I am a beginner and trying to make curve growth on the sphere’s wireframe curves. It is not happening on multiple curves and grows only to the Z...

View Article

Rotate XYZ rotation of texture mapping in python or macro

@dick.lelyveld wrote: Is there a way? Thanks. Posts: 1 Participants: 1 Read full topic

View Article


Different results for Rhino.ExplodeCurves() vs Command Line Explode

@shanew06 wrote: I have a curve object. When I run a python script to explode the curve using Rhino.ExplodeCurves() I get two segments. However when I use the Command Line function Explode, I get...

View Article


Export object description as txt

@Dancergraham wrote: Hello, The properties panel has an object description button which shows as shown below for a curve. I would like to save this info via a script, but can’t find any way to get...

View Article

Image may be NSFW.
Clik here to view.

Calling C++ DLL in Python

@15951991225 wrote: I want to know how to call C++ DLL in python. I write a sample C++ DLL. I want to call CallDll.dll on python. 6649d85fea0ece31b6b4f85b5521dbf.png601×502 38.7 KB I do not know what...

View Article

Automatically number objects?

@rhinoceros.adv wrote: Automatically number objects with a given prefix Sorry, it did not work. please help me. thank you import rhinoscriptsyntax as rs def AutoNameObjects(): msg = "Select objects to...

View Article

Script to connect wooden boxes?

@rhinoceros.adv wrote: I have 2 python files. Used to link the fingers (Connect wooden box) Unfortunately it runs on Rhino 6 not as perfect as the video tutorial. I did not detect the error. Someone...

View Article


Opening a new instance of Rhino in Python

@matthewaustin233 wrote: Trying to get a rhino window to send a command to open a new instance of rhino opening a particular file. All the commands in Rhino.RhinoDoc seem to just do it within the...

View Article

Reverse the normal direction of many surfaces?

@rhinoceros.adv wrote: Is there a way to find multiple polysurface showing the reverse and flip them over? If each object is selected, the command will be used Flip, Dir Dim strObject strObject =...

View Article


Creating a gap in a curve

@maxz wrote: Hi all, I am working on a Rhino Python script, intended to prepare a file for cnc cutting. I know there is dedicated software to do this, but I would like to keep it within Rhino, just...

View Article

Connecting Curves to Random Points Loop

@bseckler wrote: Hey, so I’m very much a beginner when it comes to python scripting, and I’m trying to create a loop for a grid of points where I can created curves that will be randomly generated...

View Article


Line transform

@heavenly_diana2000 wrote: I have written a code for a polygon that encompass such lines similar to star. I could transform polygon in every point with changing Plane.Origin, but I couldn’t use this...

View Article

How to resize or set sizes of an object

@mike15 wrote: Does rhinoscriptsyntax provide a method to set an object’s X, Y and Z size, as one would do interactively with BoxEdit? I’m looking for something like this: aObjects = rs.AllObjects()...

View Article

Rhino.GetSettings alternative in RhinoPython?

@ivelin.peychev wrote: Hi, Could anyone help me with something? What is the alternative of Rhino.GetSettings() in Python? And Rhino6, in case it is old thing? Thanks in advance. Posts: 2 Participants:...

View Article
Browsing all 5892 articles
Browse latest View live