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

Image may be NSFW.
Clik here to view.

Python - 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 Article


AddPipe History?

Eric M wrote: Is there a way to create a pipe around a curve that maintains history? Posts: 1 Participants: 1 Read full topic

View Article


Python/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 Article

Python 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 Article

Rhino.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 Article


Image may be NSFW.
Clik here to view.

Scripting 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 Article

Issue 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 Article

Networkx 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 Article


Bug 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 Article


List 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 Article

NormalObjects

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 Article

Waiting 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 Article

A 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 Article


Export 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 Article

Image may be NSFW.
Clik here to view.

Rhino 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 Article


Bug 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 Article

Image may be NSFW.
Clik here to view.

Setting material reflectivity through Python

Dan Bayn wrote: Maybe I'm just not seeing it, but is there a Python method to set material reflectivity? Thanks, Dan Posts: 3 Participants: 2 Read full topic

View Article


Python Compare List

djnelson75 wrote: This is actually a Python Question but hoping someone can help me here. I want to compare two list and return certain values depending on the condition. I thought this would work,...

View Article

Rhinoscript creates 5 default layers, how to disable?

Filip Rooms wrote: Dear community, Just a short question: whenever I run my Rhinoscript, default layer 01 to 05 are created, next to the layers I add myself. Can I disable that these 5 default layers...

View Article

Python IsCylinder needs a tolerance added

Dan Bayn wrote: The Rhinoscript method allows for a tolerance, and is effective at finding cylindrical surfaces. The Python method lacks the tolerance option, so the results are less effective....

View Article
Browsing all 4120 articles
Browse latest View live