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

GetObject vs GetObjectEx

What’s the difference between GetObject vs GetObjectEx? 4 posts - 3 participants Read full topic

View Article


Save CPlane and Revert

How do I save off the current CPlane and then revert back to it after my script runs? 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Automate Removing Dimension Overrides

I’m working on a project where I need to remove the overrides for certain selected text objects. I’m able to remove the overrides by following the video in this post below: And yet another fun...

View Article

Verify Point on Object

How do I verify if a point is actually on a curve? Is there something similar to rs.PointCompare(point1, point2) but instead of comparing the 2 points to see if they are equal, it would compare the...

View Article

How to select all objects in file and move them using a script

Hello, I’m new to Rhino. I have several .3dm files containing groups of objects, and I’m trying to combine them together to one .3dm file using python script. I need to load each file’s group of...

View Article


Image may be NSFW.
Clik here to view.

Detect if Grasshopper Instance is RhinoCompute or not

I’m working on a plugin that writes out a file as it is loaded during Grasshopper initial boot up (via a “PriorityLoad()” method). However, I noticed that on some computers, it writes two files! After...

View Article

After block editing, it will call delete, why?

When i finish editting the block,it will trigger the delete objects event.Why?What’s something wrong with it? 5 posts - 3 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Capture View with Rectangle

Thanks to @liukov.dobriev and his script from this threat. Although I’m fully newbie to scripting, lately I was trying to modify it a bit it can capture selected view (Top/Front/Right). However, since...

View Article


NakedEdge for a Brep

Can’t find a method to find naked edges for a Brep. Essentially I’d like to find out indexes of edges that are naked. Probly there is feasible solution with DuplicateNakedEdgeCurves but it’s...

View Article


How to define LastCreatedObject

I’m trying to fillet two curves that have been offset through script and I’m having the hardest time defining them. Can I define them through the command LastObjectCreated and if so how would I go...

View Article

BUG: Python Script - rs.IsLine when a point is being tested

POSSIBLE BUG: Using Python Script. When using rs.IsLine(o) on a point object the following message is returned: See the attached files. Run the script and select the line, arc, or curve and it runs...

View Article

Assign blocks to layers

Is there a way to assign blocks as Layers? I tried it as a button. It didn’t happen. 3 posts - 3 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Command to trim excess or fillet?

I figured out how to select all of these in python but is there a way to get rid of the excess lines at the corners? 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Block to Layer

I want to convert the block structure of step file to Layer. I would like you to share the script file related to the solution of the issue. 6 posts - 3 participants Read full topic

View Article

SubDEdge Selection Cast to Mesh for Operations

I’ve started a script to adapt a subd edge. The first hurdle I’ve come across is I’m going to need to operate on the subd with the mesh class, casting it with...

View Article


Python Retrieve rectangle's size and vertex

Sorry for a newbie question here… How should I retrieve a drawn rectangle (from any plane) with its width and height in Python, and also its 4 vertex’s coordinates? (knowing I can do frame as polyline...

View Article

Forms.Dialog What is the best way to store last selected settings?

Hi all, I am writing a Eto.Forms.Dialog, which performs some operations on geometry, the user has a number of choices every time the Form is called (dropdowns and checkboxes). What is the best way to...

View Article


SplopSpaceMorph why doesn't work?

Hi, dear I’m trying to use SplopSpaceMorph to modify a brep. But it doesn’t work even ssm.Morph(cBrep) is true. I just got a new brep without morph. double surWidth = 0; double surHeight = 0;...

View Article

Function withou parameter

In one example scripts abt sorting certain panels I saw on net, its like this: dom=rg.Interval(0,1) def getkey(panel): panel.SetDomain(0,dom) panel.SetDomain(1,dom) ctr=panel.PointAt(0.5,0.5)...

View Article

Image may be NSFW.
Clik here to view.

IronPython losing connection to scriptcontext.doc

I have a simple Python script that is causing an error Grasshopper. I can get the same script to work by moving the line generating the error out the loop. This works: import rhinoscriptsyntax as rs...

View Article
Browsing all 5821 articles
Browse latest View live