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

rs.MeshVolumeMoments command in Python is missing

Hi, Writing in Python and having imported RhinoScript functionality, I cannot see the command rs.MeshVolumeMoments. Any idea why? (rs.VolumeCentroid is there though) Theofanis 2 posts - 2 participants...

View Article


Eto ProgressBar multi thread

Hello, i have a question, can i have a progress bar eto who show the progress of a function who make a task in Rhino. Eg: I have this code, who count from 0 to 10 every second in a eto, why the eto...

View Article


Is same object Python

hello!! is there a rhinoscript command to test if two objects are duplicate? 7 posts - 4 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

TextureEvaluator.GetColor(), Ray Differential parameters?

Hi , I’m trying to improve the results from the method: TextureEvaluator.GetColor( Point3d uvw, Vector3d duvwdx, Vector3d duvwdy ) So I assumed using the duvwdx, duvwdy ray differential parameters...

View Article

Evaluate SubD?

Hi all! With meshes we have .PointAt() and .NormalAt() methods. What about SubDs? Can we extract, say, a point in a face giving it the face index and the vertexes coordinate? And the opposite....

View Article


Find type of object in list with if statement

Hi! What is the correct way to find an object type in a list? None of these approaches seem to work. In the examples I am trying to find a plane with ‘selectedObjs’ containing a plane and a box. Code:...

View Article

Image may be NSFW.
Clik here to view.

AddLoftSrf problem

Hello Here is what I’m trying to do: 1.make some small circle but in different height. 2.make some different size circle but in same height. 3.two different kind circle loft. I don’t know how to make...

View Article

Select pipe route

Currently I am working on a script that select a pipe route of the connected members. I want to use the SelBox command near the connection point, but it does not select. I attached a file with the...

View Article


Image may be NSFW.
Clik here to view.

No result in python

Hello dear friends I’m a rookie in Python. I downloaded a formula as ready-made code, but when I run and specify inputs, I get no results as output. Is there anyone to help me? Thanks in advance....

View Article


Using MeshFromPoints Command in python scripts

Dear all, I need to use MeshFromPoints command in the python script. However, I cannot find it there. Is there any way to do that? 2 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Add Child Layer example does nothing

Either I’m not understanding what this script is supposed to do but it looks like the python script on this link does nothing? developer.rhino3d.com Add Child Layer Demonstrates how to add a child (or...

View Article

Macro/script help

Hi to all on the forum. I wonder if someone may be able to help. I’m wanting to create a Macro/Script to perform a small routine in Rhino. I wish to be able to pick an arbitrary point along a line or...

View Article

Image may be NSFW.
Clik here to view.

Script no longer working.....?

Mitch (Helvetosaur) wrote a script for me years ago and it’s never failed me until today. I keep getting the error shown below in the attached jpg file. Not sure if something with Rhino file format...

View Article


Scriptcontext.sticky on Mac problem

Hi @Pascal, i’m not sure if i’m missing something but i cannot get the scriptcontext.sticky to work under Mac using version 7.9. To repeat what i see, please run _EditPythonScript and type the...

View Article

Scripting ChangeSpace

Hi- Is it possible to bring an object into paper space without doing something like rs.command(-changespace)? I would like to script the creation of a section cut and then bring it into paper space....

View Article


Image may be NSFW.
Clik here to view.

I want to remove last item in during the loops

3 posts - 2 participants Read full topic

View Article

Hanging during execution

Why would this python code hang during execution? import rhinoscriptsyntax as rs from itertools import combinations, product f= [] a = [1 for _ in range(12)] b = [2 for _ in range(12)] c = [3 for _ in...

View Article


How to implement this code with recursive function

how to find the Product of All Elements in a list (t) using recursive function. import rhinoscriptsyntax as rs from itertools import combinations, product f= a = [1 for _ in range(12)] b = [2 for _ in...

View Article

ETO doesn't print to Visual Studio Code output

Greetings to all, to develop python code, I use Visual Studio Code, as it is very convenient to work with and plus there is a dark theme that saves my eyes. I use the print function a lot to output...

View Article

Intersection coordinates in Python script

Dear All, Can you please advise how to extract intersection coordinates from the following Python script? import rhinoscriptsyntax as rs startPoint = [1.0, 2.0, 0.0] endPoint = [4.0, 5.0, 0.0] line1 =...

View Article
Browsing all 5945 articles
Browse latest View live