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

Grasshopper-Python: How to start a CMD-Window and send commands to it with...

@Tabak wrote: Hi there. Within GH via Python code I am trying to open a Command Prompt (Windows 7) and executing some commands in it. The only thing I manage to do is just to open the CMD window and...

View Article


How to get object's world coordinate

@davedufour1991 wrote: Hi! So, i recently started using Rhino and Python and i’m now hitting a wall. So here is my problem : I have to import many models, all different, that are stacking and i need...

View Article


Select item and run script

@onrender wrote: Hi, I am looking for way to combine the selection command with python script, that works with the left mouse button. So, I want to select an object and run the script. Posts: 2...

View Article

SaveRenderWindowAs Now saves only the RGB pass

@vlad.posmangiuluchia wrote: Hi, I used to use rs.Command ("_-SaveRenderWindowAs "+FileName) to save all of the passes inside the V-ray window. Since swapping to the new V-ray and Rhino 6 it seems to...

View Article

rs.OpenFileName() request

@Helvetosaur wrote: Can the default extension argument be made to accept a list of extensions instead of a single one? Like, say, filtering for .dxf, dwg, and .3dm? Or is this a Windows-controlled...

View Article


Plankton Mesh Library

@Amir_Habibi wrote: Hi @DanielPiker Since i got found not much information on plankton library and tried to figure out how some methods are used here are some of my struggle to clarification (using...

View Article

Noob alert - sort output with python

@CountryGolden wrote: Advanced apologize for my complete lack of knowledge here, I’ve been working through this with google and crtl-c crtl-v. I have a small script to watch a folder for 3dm files and...

View Article

Objects change to layer. Help me

@xiix.xoox wrote: i want change layer for object is selected by code python but i can’t. EX: i have text and text dot in layer default. I select text and move them to new layer (add layer and move). I...

View Article


Image may be NSFW.
Clik here to view.

GH Python Compiled Component Custom Preview Display

@dadandroid wrote: Hi I’ve been compiling GHpython components as instructed in the following post by @piac: Tutorial: creating a Grasshopper component with the Python GHPY compiler Developer GhPython...

View Article


Image may be NSFW.
Clik here to view.

Cumulative formula script

@ian.vanduivenbode wrote: Hi, I am trying to recreate an excel process in Grasshopper using a script. I was initially looking at foreach loops in a C# component but am struggling. To be honest i don’t...

View Article

How to rotate a block on the Y axis of the Gumball , with gumball aligned to...

@Bogdan_Chipara wrote: Hi, I can’t find a way to rotate, with python, a block on the Y axis of the Gumball, with Gumball aligned to object. BlockInstanceInsertPoint doesn’t return a vector… Any...

View Article

Image may be NSFW.
Clik here to view.

Rhino.Python API [Question]

@ivelin.peychev wrote: It’s probably me, but how come the simplest example taken from the API doesn’t work. 2018-05-29 21_27_46-rhinoscriptsyntax.png1225x545 22.5 KB What is that Prompt supposed to...

View Article

Image may be NSFW.
Clik here to view.

Autolabel_help

@pie.ventura wrote: hello, can someone help me? I think it’s simple but I’m tired and I can not. I would like to tag each object, but, closedpoly is impossible, why? lol a.jpg1206x626 491 KB prova...

View Article


RhinoScript: IsLayerVisible vs IsLayerOn

@Jarek wrote: hi @Dale, what is the difference between the two methods? Posts: 2 Participants: 2 Read full topic

View Article

Get object out of a set

@rainerhartl wrote: Probably a simple question: python script: c = set(a).intersection(b) print c…set([35]) I have a set with one value. How do i get this value out of the set? > Thats what i want:...

View Article


RhinoScript: getting AllObjects, including these in Block Definitions

@Jarek wrote: Hi All, I am trying to get the list of ALL objects in the current file, including the ones that make up the block definitions. Rhino.AllObjects does not return these. If there a way to...

View Article

DetailMeasured Property

@Alasdair wrote: I’m trying to write a python script that changes selected dimensions to be measured from the layout space. I can find out what detail dimensions have been measured from using: def...

View Article


Double-click on object invoking python script command?

@ivelin.peychev wrote: Hi, Assume we have a command (myBox.py) e.g. myBox(height,width,depth) to create a box. How can I invoke this command, to edit the box, by double clicking on the box? Thanks in...

View Article

Point from intersection event python

@flokart wrote: Hi all, how can i convert the intersection event to a point object ? Rhino.Geometry.Intersect.Intersection.CurveSelf(Curve,0.001) or better how can i use the result ?...

View Article

Image may be NSFW.
Clik here to view.

[Help] How to draw line segments while picking the points

@ivelin.peychev wrote: Hi, First a small complain, RhinoCommon, RhinoPython, and the other APIs are really not helpful for beginner programmers. Same goes for the examples. Very few comments not...

View Article
Browsing all 5804 articles
Browse latest View live