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

[Python] Make Rhino View have focus

@Dow wrote: Hi All, Given a Rhino View object, how do I make it the focus in the GUI? Specifically, my goal is to give focus to the first floating window in the project. views =...

View Article


AddPolyline VBscript V5

@JimCarruthers wrote: This is a stupid simple question but I haven’t touched VBScript in so long I’m a bit lost. I’m trying to simply feed Rhino.AddPolyline known points. Trying to simply pass an...

View Article


Is it possible to select only 1 group?

@siemen wrote: I’d like to ask the user for selecting 1 group (and one group only) of objects and then continue the script. I guess I could ask the user to select 1 object which is part of a group and...

View Article

[Wish][python] single/multi line comment

@ivelin.peychev wrote: Hi, is it possible to change slightly the color of multi-line comment compared to single line comment? Thanks in advance. Posts: 1 Participants: 1 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Python Rhino.Geometry Line list from script

@esolomon1221 wrote: import rhinoscriptsyntax as rs import scriptcontext as sc import Rhino import csv a = [] # new. correct because global scope def CSVlist(): sc.doc = Rhino.RhinoDoc.ActiveDoc...

View Article


Image may be NSFW.
Clik here to view.

Help: Fastest move camera and update view and rs.Redraw() bug?

@Holo wrote: Hi guys, I am working on Holomark3 and really want a good way to manually control the camera and target and update the view in the same speed as rs. Here are my results from this test:...

View Article

[python] cannot delete hidden clipping planes

@ivelin.peychev wrote: Why doesn’t the following work? def del_clips(): clips_ids = [clip_id for clip_id in rs.AllObjects() if rs.ObjectType(clip_id) == rs.filter.clippingplane] print len(clips_ids)...

View Article

[python] Finding closed curves inside a closed curve

@ivelin.peychev wrote: Is there any method to find all closed curves fully inside a closed curve? i.e. not intersecting, not touching. All curves are planar. Posts: 5 Participants: 3 Read full topic

View Article


[python] index of absolute maximum value in a list

@ivelin.peychev wrote: I know how to get the index of the maximum value in a list. mylist = [-10,0,1] idx_max_value = max(xrange(len(mylist)), key=mylist.__getitem__) #>>> 2 However, I need...

View Article


Help. Rhino Script Syntax in Python. "GetObject()" filters

@kirichenko.mp4 wrote: Where can I find a comprehensive description on using GetObject() filter parameter? As far as i understand rs.GetObject("", 4) will filter curves. What about other objects?...

View Article

Image may be NSFW.
Clik here to view.

[python] Finding closed curves inside a closed curve [advanced]

@ivelin.peychev wrote: For the challenge lovers. solving this [python] Finding closed curves inside a closed curve Scripting Is there any method to find all closed curves fully inside a closed curve?...

View Article

How to check if a point is on a mesh?

@p1r4t3b0y wrote: Hi everybody, I’m currently looking for a pythonic way to check, whether a point is directly located on a mesh or not. Any suggestions? Thanks. Posts: 3 Participants: 3 Read full topic

View Article

Saving PDF from Python script. No raster?

@john.eric.oakes wrote: Is there a way to get the surfaces to print? Also, if there is a way for me to save the file without having the save dialog pop up and having to click ok it would be helpful....

View Article


Rhino.ViewDisplayModeProperty got VERY SLOW

@Jarek wrote: hi @Dale, Remember this fix to display mode methods? https://mcneel.myjetbrains.com/youtrack/issue/RH-51112 Since the fix, the method become VERY slow to use. It is fine to change a few...

View Article

Image may be NSFW.
Clik here to view.

Incorrect/mismatched input type

@esolomon1221 wrote: I’m confused as to why the input seems to be a collection but shows up in python as a single value. Python script and GH definition shown below. ghPythonInputError.png1024×768 108...

View Article


Image may be NSFW.
Clik here to view.

Truss script in python

@daniel.c wrote: Hello, Im kinda new to scripting with python and I would like to convert my messy GH script into python. What I want to do is to convert truss geometry below into python script....

View Article

[Python] Rename exisiting Named View

@Dow wrote: Hi, New user here, attempting without success to rename an existing Named View. Focus_Test_2.3dm (680.9 KB) from scriptcontext import doc if __name__ == "__main__": for viewInfo in...

View Article


Image may be NSFW.
Clik here to view.

Help: how to tell if a mesh face is triangle or quad?

@Holo wrote: Hi guys, if I coerce a mesh and print the face info I get a list of the vertices, but I can not len(face) to see if they are 3 or 4 vertices. And if i print them then they show up with...

View Article

Image may be NSFW.
Clik here to view.

Bug in Rhino's Rhino Python Editor

@eduszh wrote: Hello developers @piac @DavidRutten, Recently I have encountered the issue in Rhino Python Editor. So the issue is that my print command will not print content in the console screen...

View Article

Image may be NSFW.
Clik here to view.

Chr(10) adds a space after new line

@Asterisk wrote: Option Explicit Call Main() Sub Main() Dim txt txt = “-1-” + chr(10) + “-2-” & chr(10) + “-3-” Rhino.AddText txt, Array(0, 0, 0) End Sub results in: image.png816×652 2.79 KB...

View Article
Browsing all 5892 articles
Browse latest View live