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

Create a new floating viewport and change its display mode

@Dongyeop_Lee wrote: I’m trying to create a python code using RhinoCommon to do multiple Rhino commands at once. NewFloatingViewport Projection Perspective MaxViewport Zoom Extents SetDisplayMode Mode...

View Article


Image may be NSFW.
Clik here to view.

Grashopper Python TCP Socket Communication Freezing/Not Responding / Delayed

@avishek wrote: Grasshopper Socket2357×1148 347 KB server_TCP.py (1023 Bytes) GHPython_Socket_TCP_Client.gh (2.7 KB) Hi all, This is a small trouble I am having when I am trying to communicate with a...

View Article


Maybe a bug

@Smart3D_net wrote: Hi, I don’t understand if there is a problem in Rhino.Propertylistbox method. try the following code: Call Main() Sub Main() Dim propbox Dim arritems,arrvalues arritems =...

View Article

Image may be NSFW.
Clik here to view.

Python Value list input value read

@Jonas-Blazinskas wrote: Hi All, Is there a way to read value list inputs “highlighted in yellow” instead of outputs once plugged in into python script? Posts: 3 Participants: 2 Read full topic

View Article

Sorts matrix of points along the curve from its starting point

@massimo.grieco wrote: Hello everyone, I am a new member of the forum, first of all I want to thank the developers and all the users for their genius and advice and for the passion you dedicate to...

View Article


Minor bug in AddLayer if parent and no color

@Holo wrote: Hi guys, for some reason this doesn’t make B a child of A: import rhinoscriptsyntax as rs rs.AddLayer("A") rs.AddLayer("B", parent="A") but this does: import rhinoscriptsyntax as rs...

View Article

Rhinoscriptsyntax make a layer child of another

@revink wrote: Hi, I have a file with multiple layers and I want all of these to become children of new layer I am creating, is there a way to do this with rhinoscriptsyntax? It seems you can check if...

View Article

Command Result Copy Paste

@Ralf-AnrA wrote: Hello, I want to automate a function with the button editor. Therefore the result of e.g. command _Area is to be copied to the clipboard. Then the value is to be inserted into the...

View Article


Python imported files not reloaded after edit? Win 6 SR21

@jet wrote: I have python scripts that import a library script in the same directory that are working as expected. However, when I move a function from a script to the library (so I can use it in the...

View Article


Rhinoscriptsyntax help pages search function working?

@Helvetosaur wrote: Is it just me, or is the search function not working on the rhinoscriptsyntax help pages? https://developer.rhino3d.com/api/RhinoScriptSyntax/ Nothing happens here when I type a...

View Article

Rhino Common API Use

@onlyforpeace wrote: Hello… i search to show up a window with the list of layout selectionable, with 3 buttons, one “yes”, one “No”, and one " new layer". with python, i searched in the help, and i...

View Article

Image may be NSFW.
Clik here to view.

Getting the keys and values of a dictionary in the original order as a list

@Erdem wrote: Hello and a nice week to everyone, I am trying to extract the keys and values of a dictionary (which has 20 keys and their values), into two separate lists in the order that they appear...

View Article

Select Group Code Only

@eric.bunn wrote: Is there a way to select a group by name with code only. I do not want to pick from a dialogue box. I have the names and want to select with python code only. Thanks Eric Posts: 6...

View Article


Dir Equivalent in Rhinoscript

@eric.bunn wrote: Is there an equivalent function to the Dir command in Rhino 5. I want to check the line direction and flip it if need be. Posts: 4 Participants: 2 Read full topic

View Article

Linetype Scale in CustomGetPoint DynamicDraw() Event

@dks5254 wrote: Hello, I am working on a script that has a custom getpoint function, where the drawing function has a patterned line using the function: “DrawPatternedLine(self: DisplayPipeline, from:...

View Article


Help with script, AutoLabel at centroid

@kleerkoat wrote: I’ve got a script here and i’m trying to get it to place the labels at the curve centroid. Right now it places it at the crvstart i think. How would I go about doing...

View Article

How to selected the top surface in polysurface

@TheLionMad wrote: I have multi object are polysurface type. I want select the top surface in polysurface. Posts: 4 Participants: 3 Read full topic

View Article


Help with Selecting Objects by Boundary and Group

@kleerkoat wrote: I’ve got a script here that will take a bunch of closed curves, select internal curves and group them together. I’d like for it to select text as well and group it with the boundary...

View Article

Mesa within GhPython

@arch.3mar wrote: Hi guys, I was wondering if Mesa for the agent-based modelling (ABM)could be used within GHpython yet? as far as I see it is based on Python 3 but GhPython is still 2.7 or at least...

View Article

Need Help: Export Layers to individual Files in ACIS .sat format - Automate...

@kurwanapkin wrote: So i took this script https://wiki.mcneel.com/developer/scriptsamples/exportlayerobjects and changed the second “.3dm” to “.sat” But now i need to manually hit enter each time to...

View Article
Browsing all 4141 articles
Browse latest View live