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

ShootRay Rotation

Hello, I am attempting to use the Rhino.ShootRay command in RhinoScript VB. I need the ray to do rotations in azimuth and elevation, but I cannot get it to rotate. I have tried to change the vector...

View Article


Image may be NSFW.
Clik here to view.

Saving a specific area of the viewport as an image

Hi, I’m looking for a way to save as a .jpg or .png file the elements that appear inside a specific area of the viewport and at a custom resolution . I was thinking about a Python script in...

View Article


Image may be NSFW.
Clik here to view.

BoundingBox problem

hello, i’ve got a problem with the rs.boundingbox(): I’ve a rectangle on the WorldCPlane, but my script doesn’t calculate the good bounding box: normaly the value of bbox[0] must be the value of...

View Article

Help with rs.pointarraytransfrom(x, rs.xformmirror())

Hello since my script surrounding rs.Pointarraytransform(x, rs.XformMirror()) does not work the way I would like it to, it would be amazing if you can point out the mistake I made. Ive tryed for days,...

View Article

Image may be NSFW.
Clik here to view.

Select Objects by type

I’ve got a list of Rhino.DocObjects how can I extract only curves and points of this list? I tried in Python with if rs.IsPoint(obj) or rs.IsCurve(obj) or rs.IsPolyline(obj): objetretour.append(obj)...

View Article


Image may be NSFW.
Clik here to view.

Randomize dimensions

hi there! i wonder if there is any way to play with the dimensions of the diamonds in this wall. I appreciate any help(: thanks in advance. 1 post - 1 participant Read full topic

View Article

Send Password to Application using a script

We using a customised software for our clients. Once the the software is installed on a clients PC with Windows 10 the software is open and shows a activation field. We would like to use a script to...

View Article

Rhino Script Syntax Layers

Any chance we can get Python commands for One Layer On One Layer Off I appreciate these can be done but one simple command would make life easier Layer State Manager And be able to return on/off/...

View Article


Pythonscript Rotate Object Azimuth and Elevation

Hello, I am using the pythonscript tool in rhino to create a command, so not rhinocommon. I am trying to create a line that rotates in azimuth and then rotates in elevation. The issue I am finding is...

View Article


Image may be NSFW.
Clik here to view.

Text Field

hi I need to run Text Fields Form(window) with python scrip in my plugin. please guide me in writing code . 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Help beginner python script (functions and classes)

Hello everyone! I am a beginner with Python for Rhino and I would need your help with the following script. I am trying to generate “Tooth” in-between two surfaces that I would later extrude, it would...

View Article

Image may be NSFW.
Clik here to view.

Importing ghpythonlib.components second time ERROR

Strange behaviour that I cant understand: In my script I got import ghpythonlib.components as ghc and when loaded for the first time it loads like this: * Loading Grasshopper core assembly... *...

View Article

Image may be NSFW.
Clik here to view.

Crash Grasshopper in sweep2(by start and end /Point)

in Rhino 7, 7.14.21362.1300 sweep2 in c# in run crash rhino and grasshopper but in Rhino 7 SR14 2021-11-23 (Rhino 7, 7.14.21327.17001 it is ok in Rhino 7 SR14 2021-11-23 (Rhino 7, 7.14.21327.1700 in...

View Article


# No (batch of course) Block Rename Tool?

Is there any way to do a batch block rename without resorting to python or grasshopper?? Basically I want to be able to do basic regex substitution. Something like: search “foo_someType_” and replace...

View Article

Bug? extracting rendermeshes from SubD recalculates them first

Hi @pascal I have started a script to extract and join all rendermeshes and when there are sub-d objects present then Rhino recalculates them all first, even if the objects are shaded. (And it prints...

View Article


Image may be NSFW.
Clik here to view.

"Unwelding" or splitting in Plankton

Hello, I am currently trying to better acquaint myself with coding with meshes by recreating the effects shown below: The logic basically creates a minimum spanning tree graph based off of a mesh and...

View Article

Image may be NSFW.
Clik here to view.

Realtime update

Happy New Year to all the Rhino users on the forum. I have a challenge for this year being new to Python and just feeling my feet now I want to write a script to do the following, please tell me if it...

View Article


Image may be NSFW.
Clik here to view.

Using cage edit while python transform of control object

Hi, I’m using python to adapt a control object (rebuilt circle) to a target curve, the object to modify is a torus. The steps are as follows. A torus is controled by a rebuilt circle ( 8 points degree...

View Article

Image may be NSFW.
Clik here to view.

Problem after compile script

hi i have example script wich doesnt work after useing rhinocompiler. i would be appreciated your help to solve this problem. 5 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Scripting FreeCAD from Rhino: FilletEdge case

I recently started working on a Rhino.Python script that accesses another CAD application / modeling engine via scripting without leaving Rhino’s GUI. The script is an alternative to _FilletEdge for...

View Article
Browsing all 5793 articles
Browse latest View live