ExtrudeSrf Direction
@Nikolaos_Beratlis wrote: I start with a solid object, when I use the Dir command all normals are pointing outwards. I then explode the object and get a collection of surfaces. For some surfaces the...
View ArticleRemembering values : problem with undo
@Graham_Knapp wrote: I have a Python script which does some stuff and remembers which state it is in after doing the stuff. I then use scriptcontext.sticky to remember what state the file is in. The...
View ArticleExtractSrf into different name surfaces
@Nikolaos_Beratlis wrote: When I have a cube and I extract the 6 surfaces, all surfaces have the same name as the original object. Each surface has an ID which a 30 character long name including...
View ArticleOpen a specific Rhino file in a new instance/window via Python
@Helvetosaur wrote: I know how to open a new file in the current running Rhino, but I don’t remember how (or if possible) to open a file in a new Rhino instance (Windows) or window (Mac)… TIA, --Mitch...
View ArticleArchivableDictionary write to / read from document
@clement wrote: @stevebaer, @piac, i have a large set of values from a form like integers, floats, boolans etc. which i am trying to write to and read from a Rhino document. Is there a way to...
View ArticleI need a simple script
@Dennis_N wrote: Hello everyone. I need to make a simple script that loads a model (lightwave format), executes a couple of commands on it, then saves it as iges format. I need it to go through...
View ArticlePick and Drag with Python?
@Jess wrote: Hi all, @stevebaer, is there a way to simulate control point dragging with Python? Means picking a (temporary) point and move it to a new location with a single mouse click? What I’m...
View ArticleMove Object using BoundingBox measurements
@J11 wrote: Hi, Fairly new to scripting. This seems like something I should be able to accomplish on my own, but I’m struggling to solve. I’m trying to move a group of object in the X axis. I’d like...
View ArticlePython Command - Import created module: expected an indent block
@Colby_Evans wrote: I’m having an issue with creating a command; once I import a module that I have worked on, it throws an expected indent block message; while not having the import, lets the command...
View ArticleHow to create single line text object in Python?
@siemen wrote: Hi, I’m looking into making a python script where I click on a point and it automatically creates the curves of a number in a single line font. I do this now manually with the “text...
View ArticleMessage: 'module' object has no attribute 'CreateColor'
@markgtaber wrote: When I run the following I get an error message. import rhinoscriptsyntax as rs rs.CreateColor([50,50,50], g=None, b=None, a=None) Exception Occured Message: ‘module’ object has no...
View ArticleHelp with creating a script
@Severin_Goidinger wrote: I would like to add a command to create a rectangle by area with fixed proportions (in the golden ratio). I did that little script in grasshopper, but I’d find it much more...
View Articlers.GetBoolean() including a text field?
@Jack_Minardi wrote: Here is the offending line of code: reverse = rs.GetBoolean("Reverse?",(("Reverse", "no", "yes")), (False)) Which produces the following UI: My question is: what is the textbox...
View ArticleDisplay UserTexts of an object when clicking on it
@BaptisteC wrote: Hi everybody, I’m using a pretty big model as sort of a database in which I store my clients data in userTexts. I have scripted some python code to display a group of usertext values...
View ArticleOffsetting multiple curves in both directions - script
@Jonas_Riis_Jensen wrote: Hello I need a script for offsetting multiple curves in both directions. Does anybody have one or is anyone able to create one for me? I’m using Rhino for Windows. Thanks in...
View ArticleVray for Rhino scripting question
@Jun_Wang wrote: Hi talented people! the question comes in two steps: is there a complete documentation somewhere of how to call VRay functions directly from rhinoscript C# or rhinoscript python? Or...
View ArticleScale of detail view scripting
@onlyforpeace wrote: hi! is there a rhinoscript command can keep the detail view scale. i need to measure a distance between two points derectly in detail view. for these i need to have the scale of...
View ArticleMove Object using Object Name
@J11 wrote: I’ve used Rhino for a long time, but I’m fairly new to scripting. I’m trying to automate a process of opening a file, importing another file and moving the imported part to a new location...
View ArticleUsing more than one filter with RhinoGet.GetOneObject
@Colby_Evans wrote: Not sure if I am not looking in the correct place, but I have not seen anything that can show me how to utilize more than one filter for RhinoGet.GetOneObject() This is one of the...
View ArticleBug in rs.ExplodeMeshes
@wattzie wrote: I have noticed a small bug in rs.ExplodeMeshes: The help file states the input parameters are: mesh_ids Required. String, Guid, or list of Guids. The identifier(s) of the mesh...
View Article