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

Image may be NSFW.
Clik here to view.

Rhinoscript HSL to RGB (BUG?)

@Miguel wrote: Hi, I wanted to know why is there a division by /240 in rhinoscript image.png791x146 5.01 KB in Rhinocommon the values go from 0 to 1. I dont understand where is the 240 coming from. Am...

View Article


Getting geometrybase from guid

@Mat_S wrote: I am trying to use the rayshoot method on some objects in a rhino scene. geometry = rs.GetObject ("Pick object") intPt = Rhino.Geometry.Intersect.Intersection.RayShoot(ray, [geometry],...

View Article


Image may be NSFW.
Clik here to view.

Game Controller "Inputs" library for IronPython?

@RIL wrote: Is there any Inputs libraries for Game Controllers (Microssoft in my case) that is known to work for PythonScript and GhPython (or VBScript for that part)? If so, how and where to install...

View Article

Image may be NSFW.
Clik here to view.

Script Launcher Script?

@jeff_hammond wrote: has anyone made a python script that does somthing like : call the script then it will show a list of all the scripts in such&such folder..click the one you want and it runs....

View Article

Script for perpendicular lines in defined points

@Nosorozec wrote: Dear colleagues, Can somebody create small script, which generates perpendicular lines 5mm long (or 10mm long in case of midpoint line) in exact defined points with direction inwards...

View Article


Image may be NSFW.
Clik here to view.

'module' object has no attribute 'SaveFileName'

@Ncik wrote: G'day everyone, I developed a script to export attributes to a CSV file. All worked well. Copy and paste the functional part to a Command, save, close rhino, open rhino, run command as...

View Article

Query an object location

@Adara_Azeez wrote: I'm using Python for Rhino, and I was wondering if there is a way to query a position of an object using its name or GUID. Thanks Posts: 2 Participants: 2 Read full topic

View Article

How to exit a script on error?

@LeoPedersen wrote: I'm working on some very long Rhinoscripts which automate madCAM toolpath generation. I'd like to include error checking and have my scripts stop automatically when the required...

View Article


ArrAxis Question for RotateObject - in Python

@Dean_Goldman wrote: What is the proper syntax for choosing the ArrAxis in the context of rs.RotateObject? My script is stuck producing the default Z-axis rotation, where I want to be able to control...

View Article


Select all objects in a scene

@Adara_Azeez wrote: I understand that rhino has a "select object" command that can be used in Python. However, it then prompts the user to physically click on the object. I was wondering if there was...

View Article

Image may be NSFW.
Clik here to view.

Changing ObjectPrintWidth of Object with 'AttributedGeometry'

@Bianchi wrote: I am trying to change the object print width of a Line/LineCurve object. My program creates the line segment, and then attempts to change the object's print width through the suggested...

View Article

Make2D in RhinoCommon?

@Helvetosaur wrote: I know Make2D has made it into Grasshopper in the WIP - has the functionality been exposed directly in RhinoCommon yet? (I didn't find it...) Thanks, --Mitch Posts: 3 Participants:...

View Article

Custom logging reports wrong line number?

@bmartin wrote: Hello, For designing a special product, we have many (over 20) of Python scripts. To simplify trouble shooting, we use the logging Python module. Because it was difficult to control...

View Article


Image may be NSFW.
Clik here to view.

Rayshoot not recognizing empty geometry

@Mat_S wrote: I am trying to use rayshoot to detect if the geometry is in a location or not. However, the method is not recognizing the geometery and seems to be using a bounding box. I attached the...

View Article

Trying to select

@cadguy wrote: arrsurface = Rhino.GetObject("Select Single Surface, Note: Single Extracted Surface...", 8) If IsNull(arrCurves) Then Rhino.DeleteLayer "Work" :Exit Sub I can't grab a surface from a...

View Article


Trying to understand parameters for Shear transformation

@Helvetosaur wrote: I am not able to wrap my head around setting up a shear transformation... The xform wants a base plane and 3 "scale" vectors... Base plane, OK, but how do the scale vectors work?...

View Article

RunPythonScript not using ipy64.exe with Rhino 64-bit

@Nathan_Clero wrote: Hi everyone, I wrote a first script (RunScript.py) calling a DLL that runs in IPython to be Rhino compliant. To test it I used ipy.exe and it worked well (it enters and read the...

View Article


Reverse mesh vertex normals

@Goodriver wrote: I am trying to reverse a mesh vertex normals via python, but I can find no method for that. I wonder if there is a way to do it using Rhino Common. I think I can get the mesh...

View Article

Script trigger

@onrender wrote: Hello, At the moment I am doing a research for a script and I have a question how can I tell Rhino to trigger a script after I press specific commands. For example.: I press Move,...

View Article

ETO Form - OpenFileDialog Example

@KeithR wrote: Is there an example form using ETO 's OpenFileDialog class in Python ? thx, Posts: 2 Participants: 1 Read full topic

View Article
Browsing all 5793 articles
Browse latest View live