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

Image may be NSFW.
Clik here to view.

Put Python eto in a python file

Hi everyone, I am trying to put everything of eto script in a python file so that i can call them back as a module when needed However, rhino is terminated when i am changing the value of sliders on...

View Article


Mesh called back from pickle, not work for rs.projectcurvetomesh

Hello all, I saved a mesh as a .dat file using pickle and call back to a python component in rhino however, I found that the rs.projectcurvetomesh function does not accept the mesh file but when i...

View Article


Image may be NSFW.
Clik here to view.

Python, GetOneObject - CustomGeometryFilter Exception

import Rhino import rhinoscriptsyntax import scriptcontext #offset_object #soft_edited_curve object, objref = Rhino.Input.RhinoGet.GetOneObject ( "Pick Curve to Offset and Soft Edit" , False ,...

View Article

Arc Orientation, clockwise or counterclockwise

How can I get the orientation of an arc with Python? like rs.ArcOrientation() Thanks 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

The same script works in Rhino Python Editor yet not in GhPython Component

Hello! A Rhino/GH frequent user but python newbie here was working on a Python script that could fix broken text objects(for example one text object “33.6” breaks into two objects “33” & “6”; the...

View Article


Image may be NSFW.
Clik here to view.

ObjectColor nukes usertext

G’day everyone, A user has exposed my poor scripting skills. I’m just beginning the debugging and can’t see anything that looks to be responsible. A surface has thickness usertext attributed to it,...

View Article

Turn string from usertext into plane object

Dear all. any suggestions how is can turn the string of a plane object into an actual plan object again? import rhinoscriptsyntax as rs objects = rs.GetObjects(message="Select polysurface ",...

View Article

InvokeOnUiThread Python Example

I’m trying to run the r.RhinoApp.RunScript method to insert a block from an event handler. I am attempting to use r.RhinoApp.InvokeOnUiThread() function based off of other discussions I have seen in...

View Article


Image may be NSFW.
Clik here to view.

Preview of line between two points picking

Hello, is it possible with python to have the dinamic preview of line when we pick the second point? like when you create a line in rhino… i would like to create blacks lines, with in entry the X...

View Article


Image may be NSFW.
Clik here to view.

Rhino Scripts Errors in Rhino 6

Dear Sir, This is to inform that im facing problem while clicking on assign materials when working in Rhino 6 Software as the below attached errors are getting displayed repeatedly and as a result...

View Article

rs.IsPointOnPlane?

how can i test if a point is on a plane, is it with a distance equal to 0? Python Script please… rs.IsPointOnPlane not exist? 6 posts - 4 participants Read full topic

View Article

How to optimize PDF printing? SaveAS or -Print?

Hi guys, we need to optimize our PDF printing and are looking into options. When I use Print I want Rhino to use the layout as default file name, not Rhino’s filename, so I have a script that uses...

View Article

Image may be NSFW.
Clik here to view.

GHPython: Construct Multiple Layered Data Tree by Filtering

Hi everyone, I’ve looked very hard to try and solve my challenge, and found a lot of good posts. But I cannot find this issue or tips to solve it. I want to build a data tree with about 4 layers. In...

View Article


Image may be NSFW.
Clik here to view.

PythonEditor Wish: Double click written command to open help

@wim and @pascal when I type in python editor I often wish to quickly go the help for that command to see options and read up on the function. This help automatically pops up once “(” it typed behind...

View Article

rs.WindowPick() randomly isn't "grabbing" some objects that completely fall...

Sorry for the quality - had to keep it under 20MB. The gist of an issue is there. It randomly won’t “pick” some objects. Rotating those sometimes fixes it. But that makes no sense in any regard. Also...

View Article


Can somebody show example/syntax for ObjectTable.FindByWindowRegion Method?

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_Tables_ObjectTable_FindByWindowRegion.htm 2 posts - 2 participants Read full topic

View Article

Switching back to Topview

Hi there, I am able to activate a pageview without any problems. If I want to switch back to the topview I cannot find any documentation for that. I know that it’s in sc.doc.views but I am stuck here....

View Article


Call Clipper from Python script

Is there a way of calling Clipper’s OffsetPolyline from a Python script, without using rs.Command()? Thank you 3 posts - 2 participants Read full topic

View Article

Rhinoscript EVAL function

I found a partial description of Rhinoscript’s EVAL function here: https://wiki.mcneel.com/developer/scriptsamples/eval BUT, I cannot seem to find any formal documentation of EVAL, such as input...

View Article

The most common tools used

Hello, I have a question: Is it possible to extract the data from rhino of tools that i use the most? I have connected an xbox 360 controller to my pc using JoyToKey - and would like to figure out the...

View Article
Browsing all 5743 articles
Browse latest View live