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

Object Date Modified

@Ncik wrote: G’day everyone, I’m trying to develop a QA process to identify parts that are un-finished. A clue to this is to highlight parts that have not been modified in a while. (probably a colour...

View Article


Enable HistoryRecording with macro. How to turn on?

@leex wrote: Hi How to turn on before starting a command and then turn it off after completion? Posts: 4 Participants: 3 Read full topic

View Article


How to get raw code content of another python script

@yun.sung wrote: @piac Is there a way for a python script to get the raw code from another python script? Similar to how GhPython.Assemblies.CodeGeneration.GenerateComponentCode works? The output...

View Article

Urllib2 problem

@mahaidong wrote: import urllib2 req = urllib2.Request(‘https://developer.rhino3d.com/’) response = urllib2.urlopen(req) print response.info() html = response.read() print html it can work on windows,...

View Article

Bug in rs.AddHatch()?

@Holo wrote: Hi, if I run a simple script to hatch a closed curve in a new document then no hatch is generated if a hatch type isn’t defined. BUT if I make a normal hatch with a solid fill first, then...

View Article


Huge file rvb

@Vito wrote: Hi! I have a small problem (actually is quite big for me) I was hired recently and I’m supposed to be the only developer (the previous one quit). I have coded in C# even for Rhino but...

View Article

How do I add a library to RhinoPython?

@shepherdpg wrote: I am interested in learning how to access non-standard python libraries from within RhinoPython (not GH Python). Specifically I am trying to use the PIL library, but I am assuming...

View Article

Error: write EPIPE

@Erdem wrote: Hello everyone, I installed Visual Studio after discovering PyCharm. A much more comfortable way to code. I followed all of the instructions here. The problem is that when I run a python...

View Article


LayerSelected?

@wynott wrote: Is there any way with python to know what layers the user has selected/highlighted in the Layers tab? I.e. select a layer and do stuff to it, rather than having to make a layer current...

View Article


How do I add the "Metal" material to an object with python?

@Jack_Minardi wrote: I would like to be able to add the “Metal” material to an object and then change some of the metal material properties (like “Polish”). To accomplish this in the Rhino UI: Select...

View Article

Image may be NSFW.
Clik here to view.

GHpythonlib.compornent Processing is not executed even though there is no error

@y.yamakaze.k wrote: comp12552×1462 344 KB comp22560×1430 514 KB offset.gh (8.0 KB) I wrote a program like the picture to execute the grasshopper offset component with GHpython, but the process is not...

View Article

Eto.forms.GroupBox.TextColor

@onlyforpeace wrote: hi! i search to undertsand how i can use the documentation of Eto. I think it will help me to understand how the python syntax would be done! i found how i can change the color of...

View Article

Image may be NSFW.
Clik here to view.

RhinoCommon 'SnapToLocked'

@Helvetosaur wrote: Having a brain fart here - how do I get Rhino.ApplicationSettings.ModelAidSettingsState.SnapToLocked to return the Boolean value of the current state? What I get is this:...

View Article


Image may be NSFW.
Clik here to view.

Close blockEditor with rhinoscript

@timcastelijn wrote: Hi There, I am trying to create a new block editor with rhinoscript. To prevent interference with the existing block editor (dialog) I want to close it with rhinoscript....

View Article

OBJ to to string

@sam.degeyter wrote: Has somebody an idea how to use the obj-description of an object in a python script. At the moment I export it to an obj file and read it from there but this is a time consuming...

View Article


Get end points of line

@eric.bunn wrote: I know I can use GetObjects to get all the curves in a selection but want to drill down further. I would like to determine if the curve is a line and get its end point coordinates....

View Article

Current Layout Python

@onlyforpeace wrote: (topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) Posts: 1 Participants: 1 Read full topic

View Article


Incremental Save File Version Selection

@Erdem wrote: As I’m evaluating R7 WIP, I don’t feel ready to completely move to V7 and save my files in that format, so I wanted to save my files as V6 files. I am using some macros to save my files...

View Article

Help with script: adding prefix to numbering script

@kleerkoat wrote: (topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) Posts: 1 Participants: 1 Read full topic

View Article

Popupmenu examples for python?

@kleerkoat wrote: does anyone have any good examples of using this? especially having the selection run a command like this rvb i have. thanks. Option Explicit 'Call PopUpCPlanes Sub PopUpCPlanes()...

View Article
Browsing all 4114 articles
Browse latest View live