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

How to use alias for object snap during RunPythonScript

When I enter an alias with macro for an object snap such as _CenterSnap while import rhinoscriptsyntax as rs rs.GetPoint() is waiting for input, The "Center" point picking option is available only...

View Article


Image may be NSFW.
Clik here to view.

Add .exe to Python Rhino PlugIn

Hello there! (watch out a newer to python rhino plugin dev) the main issue I am trying to distribute a small Plug-in for Rhino made by commands written in Python. Now, my commands call .exe with...

View Article


Python learning

Where can I learn python? 3 posts - 3 participants Read full topic

View Article

RhinoCommon Multipipe

Heyo, I can’t seem to find any method to create a multipipe through rhinoCommon. Does anyone know where this is or if it’s too new to be added to rhinocommon? Thanks! 1 post - 1 participant Read full...

View Article

Image may be NSFW.
Clik here to view.

Surface parameters from meshing

Hi, I have to mesh a trimmed NURBS surface (1) and need the surface parameters of each vertex (2). This can be done via the Mesh.CreateFromBrep and Surface.ClosestPoint operation. However, this is...

View Article


Offset Polysurface problem

Hello, Is there an equivalent function to Grasshopper’s Cap Holes Ex in RhinoCommon? I only found Brep.CapPlanarholes. I am trying to create a solid offsetted Brep using a GH custom component, calling...

View Article

How to change display mode using script?

Hello, I’m new to Rhino. I am trying to write a python script that changes the display mode to user-chosen display mode (by display mode I mean “rendered”, “wireframe” etc. I tried to use some script...

View Article

Advantages and Differences - Rhino.Python vs RhinoScript

Rhino.Python (Python Script) vs RhinoScript (VB Script) Are there any differences between these two? Is there any advantage in using one over the other? 5 posts - 3 participants Read full topic

View Article


GetObject - ESC to Cancel

In PythonScript when using the GetObject method the user could simply cancel out using the ESC key. In RhinoScript (VBS) this does not work. How do I allow the user to press the ESC key to cancel? 1...

View Article


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

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

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


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

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. 1 post - 1 participant Read full topic

View Article
Browsing all 4117 articles
Browse latest View live