Questions tagged [rhino3d]

A stand-alone, commercial NURBS-based 3-D modeling software with an extensive VBScript, .NET and C++ API. IronPython and VBS Editors are built in.

84 questions
15
votes
5 answers

C#.net multithreading

I am experimenting on optimizing some mathematical operations using C#.net within a package called Grasshopper (part of Rhino3D). The operation is quite simple but the list on which it has to be performed is big and may get much bigger. I am using…
4
votes
1 answer

Python message box shows only the first letter of my title and my message

I have a simple script in Python which I run in Rhino3D. It shows a message box as following : import ctypes # An included library with Python install. ctypes.windll.user32.MessageBoxA(0, "Your text", "Test", 1) Moreover, it shows only the first…
Tofuw
  • 908
  • 5
  • 16
  • 35
4
votes
2 answers

Export layers as obj from Rhino3d

The task Export layers as obj files from Rhino. The issue When using Python scripting, I run an export command. Instead of exporting the model, a dialog is presented in the interface. If I click the export interface, it works fine. However it brings…
Radio
  • 2,810
  • 1
  • 21
  • 43
3
votes
1 answer

Divide curve by chord height

I'd like to subdivide a curve into segments with equal chord heights. I know I can divide into equal chord lengths with the Divide Distance tool, but I can't find a height option. I've written some really dirty code that does it here. (Don't judge…
Ben
  • 12,614
  • 4
  • 37
  • 69
3
votes
1 answer

MissingMemberException: 'Guid' object has no attribute 'length'

I am trying to get the length of a curve but I am getting the message: MissingMemberException: 'Guid' object has no attribute 'length' The same script in C# works perfectly. What is the problem with the python translation? Here is the…
Arthur Mamou-Mani
  • 2,303
  • 10
  • 43
  • 69
2
votes
1 answer

Rhino.Python and .NET framework

What is Rhino.Python? I came across it and also knew that it can use classes from .NET framework. How different is it from the common version of Python? How mature and stable is this technology?
Jack_of_All_Trades
  • 10,942
  • 18
  • 58
  • 88
2
votes
1 answer

Multiple commands by one click

How can I run multiple commands using one shortcut? I'm gonna run dupfaceborder, offsetcrvonsrf, split, extrudesrf by specified distances like 50 times, is it possible to convert them into one command? I read about it and know it's possible using…
jen_sfz
  • 23
  • 4
2
votes
1 answer

How to interact with open Rhino3D application using Python script

I am currently opening Rhino and running Rhino command lines using subprocess.call() in an external python script. rhinoPath = "C:\\Program Files (x86)\\Rhinoceros 5\\System\\Rhino4.exe" rhinoCommandFilePath =…
Arkangus
  • 116
  • 8
2
votes
1 answer

Converting Python array to C# and returning values

I am converting a Python script to C# and I'm in need in some help. I just don't have any experience in Python really. These types of arrays are totally new to me. I'm having trouble with the second to last line, var posVec = dSorted[0][1];, as well…
greyBow
  • 1,298
  • 3
  • 28
  • 62
2
votes
1 answer

How to export vertex color baked from Grasshopper,Rhino3d’ analyses in game engines like Unity, Unreal or directly in the webXr in real time?

I am pretty new to this community. I was wondering how to export Vertex color of Karamba, Ladybug’s analysis (color mapping) from Grasshopper/Rhino 3D in order to create an AR application (with unity, unreal or other)? I am trying to visualize the…
Alberto Tono
  • 314
  • 3
  • 12
2
votes
2 answers

Infinite while loop inside while loop

I wrote my first lines (with the help of SO): import rhinoscriptsyntax as rs obj = rs.GetObject("Select a curve", rs.filter.curve) maxd = input("max offset: ") a = input("first offset: ") b = input("next offset: ") if rs.IsCurve(obj): i=0 …
2
votes
1 answer

Rewriting System for Python L-System

I have the following working code for Python I produced. It´s a rewriting system based on Lindenmayer. The Output C is: +-LF+RFR+FL-F-+RF-LFL-FR+F+RF-LFL-FR+-F-LF+RFR+FL-+ which I can interpret to draw a space-filling curve. C is the starting letter…
2
votes
1 answer

Running vbscript from another script without writing a file

I am currently running a new vbscript from my main vbscript by creating the 2nd script 'on the fly' from array of strings and writing it to external secondfile.vbs file, then using WshShell.Run "C:\secondfile.vbs" I need it to keep running while the…
Jarek
  • 29
  • 4
2
votes
1 answer

Node indexing from coordinates

I'm working in a FEA (Finite Element Analysis) procedure inside Rhino/Grasshopper using C#. I have lines(FDs) and mesh triangular faces (NFDs) as inputs, each one with their nodes coordinates. I'm trying to get these coordinates and resume them up…
2
votes
1 answer

convert list of arrays in python, to tree in grasshopper

I'm a beginner in Python and have a question about converting data structure, for using it in Grasshopper. As an output from my python code, I have a grid of cubes (GUID's), layered up in what I call 'generations'. Besides that, it outputs a grid of…
user2115063
  • 23
  • 1
  • 5
1
2 3 4 5 6