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

Image may be NSFW.
Clik here to view.

Aligning Detail views with regard to model coordinates on a layout

Hello, I couldn’t find a topic that exactly address the subject I’m having trouble so I’m starting a new one, sorry in advance if I miss. The gist here is to move a DetailView within a Layout from the...

View Article


Create custom objects "Type" with attributes

Hello Is there anyway in C# to create a Rhino object type? By this I mean creating any geometry whether a curve, polyline, box, sphere etc. that has a “Type” attribute, in this case just a preset...

View Article


Issue: rs.XformCompare() returns unexpected value

Hi, The documentation states rs.XformCompare(xform1, xform2) should return “0 if xform1=xform2”. When I run the snippet below, I sometimes get return value 0 from when the matrices are not identical...

View Article

Segment Methods / coercerhinoobject

Using RhinoScript (Python). Is there documentation somewhere that shows what you can do with subobjects? Specifically, if I have a curve and use coercerhinoobject, I can further select the subcurve by...

View Article

I want remember the position of the panel,Who can help me

I want the position of the panel can remember the position of the last move. The next time it appears in the last position The position can also be memorized when the panel exits directly # -*-...

View Article


Image may be NSFW.
Clik here to view.

I want to realize the function of DCL in rhino

Panel position can be memorized,The demonstration is the function of DCL in Autocad -- coding: utf-8 -- import Eto as e import rhinoscriptsyntax as rs import Rhino import scriptcontext as sc class...

View Article

Close ETO form and cancel script

Hi, I have an ETO form to input data to my script, however if I use the “Cancel” button the ETO form closes but the python script is still active and I have to use the “esc” button to close the...

View Article

Dividing within functions

Here’s an interesting one…Using python script. I have code that references another module. Whenever I perform division in a function that is local to the current module it returns the result (float)...

View Article


Batch processing files with a space in their path

I’m hoping to create a script that can search a folder for all files ending in .obj and apply ReduceMesh to them (I have a large number of files to do this to). So far my script is as so: import os...

View Article


Section cut in rhino python script - could you help me on this

import rhinoscriptsyntax as rs St = rs.GetObjects(“select 3D object”) p1 = rs.GetObject(“p1”) p2 = rs.GetObject(“p2”) rs.UnselectAllObjects() rs.SelectObjects(St) rs.Command("Section _SelId " +...

View Article

Image may be NSFW.
Clik here to view.

Data type of GhPython

I want to know why I call the galvanic cell in Python to change the type of output result. Can’t the documents of Grasshopper and Rhino communicate? 14 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

About Reference Classes

I modify the type of registration But it still has no effect 19 posts - 3 participants Read full topic

View Article

Python help, how to set a value above definitions

Hi guys, a noob Python question here. My scripts are becoming more complex and need better control. I have a few definitions in the script and need to have some variables that are accessible above...

View Article


Named positions

Hi, Is it possible to program Named Positions in python, if so are there any examples and where are the functions located as I cannot find anything about them in Rhinoscriptsyntax. 1 post - 1...

View Article

Text Field

Will Text Fields be developed to include more geometrical functions, could do with distance between two 3D points( no curve required), Named Positions all update based on point movement. At present I...

View Article


Rhino Code Editor WIP Rhino 8

Hi, Is there any way to increase the font size in the Rhino Code Editor, as very small and not very clear to my old eyes. The Code Log is fine. 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Brep / dupfaceborder

Using rhinoscript / python. Run the code in the attached py file. Select the left rail, the right rail, then the profile curve. You will see the brep that is created along with the two polysurfaces...

View Article


Image may be NSFW.
Clik here to view.

Is it possible to set color overlay for breps per Layout Detail viewport?

Hi there! I am looking for a script method to assign a (random) color overlay to an object, that is only rendered in a specific layout Detail View and different per Brep. I can’t use object Object...

View Article

Renumber Layouts

2022-09-26T13:08:00Z UTC Hi everyone, I’ve been diving deeply into using layouts in Rhino 7. They are rather efficient for my workflow; however, some things could be improved. I am looking for an...

View Article

Issue:"ValueError:does not exist in ObjectTable" at InstanceDefTableEvent

Hi there, I use the script below to check difference between Oldstate and NewState at Rhino.RhinoDoc.InstanceDefinitionTableEvent. When I first open the model and then run the script, everything works...

View Article
Browsing all 5938 articles
Browse latest View live