Default path for saving scripts in Python editor
Mitch Heynick wrote: I keep my script library in a folder in my Dropbox. In the Python editor options, I have set that folder path, and eliminated the default path :...
View ArticlePython Primer Example error
m_ziolo_86 wrote: Hello, I am in the course of learning script example from Rhino 5 Python Primer regarding recursion. I have a function written as below: def AddArcDir(ptStart, ptEnd, vecDir):...
View ArticlePython rs.ObjectLayer() - option to return full layer path
Mitch Heynick wrote: Right now it returns only the top level layer name, it would be handy to have the full path. This was already discussed awhile back here... so there are workarounds, but again it...
View ArticlePython - move layer set under new parent layer
Mitch Heynick wrote: OK, lets say I have a set of hierarchical layers/sublayers (leave them empty for now), and I want to create a new parent layer and move the entire existing layer hierarchy under...
View ArticleAddPipe History?
Eric M wrote: Is there a way to create a pipe around a curve that maintains history? Posts: 4 Participants: 3 Read full topic
View ArticlePython/Rhinoscriptsyntax layer/sublayer-related "issues"
Mitch Heynick wrote: Issue #1: With a new blank file containing just one layer "Default"... In vb Rhinoscript, run the following code: Option Explicit Call TestAddSubLayer() Sub TestAddSubLayer()...
View ArticlePython ExplodePolysurface method changed
Dan Bayn wrote: Not sure if this was intentional or not, but I noticed when using the ExplodePolysurface method in Rhinoscript that the exploded surfaces would maintain their layer assignments but in...
View ArticleRhino.ExtractRenderMesh odd behavior
Jarek Bieda wrote: I have noticed some inconsistency between how the command and rs method work.With the command, no matter what types of object I preselect (mix of curves and objects that actually...
View ArticleScripting lots of rotations and memory consumption
Mitch Heynick wrote: I'm creating a small animation and for that I need to rotate things a lot of times - I have like 150 objects and they rotate around a center as well as around themselves, and the...
View ArticleIssue with IEnumerable(GeometryBase)
Djordje wrote: Been trying to use the CreatePatch method, but got stuck on its first parameter: IEnumerable(GeometryBase). Seems like @stevebaer already gave an explanation on this issue in here.Still...
View ArticleNetworkx 1.8.1 on Rhino 5
Mmous Ann wrote: Dear Friends,Now I am trying to use network 1.8.1 with rhino python, but I keep having an error massage: Message: The method or operation is not implemented. Traceback: line 23, in...
View ArticleBug in SplitCurve creating 3 curves instead of two
Wattzie wrote: Hi, I have a mesh and I am trying to split the outline of the mesh into two curves. This seems relatively simple using rs.splitcurve however this code:...
View ArticleList every object in current document
Sébastien Mennetret wrote: Hi, I'm seeking for a way (with python) to list every singl object in document, even if there locked or hided or located in hided layers. Any clues ? Regards, Posts: 3...
View ArticleNormalObjects
James Carruthers wrote: I've got a script that uses the NormalObjects function to perform a script on the first/only visible, unlocked (and with other functions) planar surface in a file. It seems to...
View ArticleWaiting for user input with aliases
Peter Hennessey wrote: Hi, this is more a questions about aliases than scripting, but this seems like the place for it. I am trying to work out if there is something that will work in an alias to...
View ArticleA script for starting a line at 0
Cosmas Demetriou wrote: Good morning colleagues, So I could like an alias for starting a line at 0 in whatever view you happen to be in, so I wrote the following macro: line startofline=0 ... but it...
View ArticleExport 20-30 Rhino files to Version 4
Randy Gregory wrote: Just to say, i am usually on a Mac, but can do Windows if that works. I am wondering if I can have a script to copy a folder of Rhino 5 files as version 4 files. I have about 30...
View ArticleRhino python editor - help for XFormRotation2
Mitch Heynick wrote: ...is incomplete... should be something like: Returns a rotation transformation about an axis angle_degrees = number: rotation angle in degrees rotation_axis = vector3d...
View ArticleBug in ReadViewportsFromFile
Jørgen Holo wrote: I try to read the viewports from another file, but it doesn't work perfectly. It does read in the active viewports, but none of these new names, NOR any of the other views stored in...
View ArticleInstance Length , Volume Details
Aashiq Hanif Ahamed M wrote: Hi Am successfully reading Length (Curves) , Volume & Surface Area (Surface/Poly surface) from .3dm files using rhino vb script. But In-case of files having Scaled...
View Article