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

SetUserText is not in the undo stack

@KeithR wrote: SetUserText is not in the undo stack - will this be added in V6 Does SetObjectText get added to the undo stack ? Keith Posts: 1 Participants: 1 Read full topic

View Article


Arguments of Rhino Macros....where can I look those up?

@Mr_Sinter wrote: Hi all, I need to know what arguments those Rhino Commands take.... "_-TextObject" takes arguments like "_GroupOutput=_Yes _FontName="{}" _Italic=_No _Bold=_No ", but how can I look...

View Article


Get tangent vector on either side of a G0 joint

@Helvetosaur wrote: Having a brain fart here - best way to get the tangent vectors on both sides of a G0 continuous "kink" in a curve? Easy enough if it's a polyline or the equivalent, but what if...

View Article

Short Question: Get GUID of Brep

@Mr_Sinter wrote: Hi all, how to get the guid of a brep object?I have to extract the guid of a brep object ().... Is it with pythons "getattr"-method? Kind regards,Mr Sinter Posts: 2 Participants: 1...

View Article

Math Broken in python ? :)

@julz wrote: Hello, just, why the math is broken there ?not havy but i need to understand why...thanks from Rhino.Geometry import Vector3d from Rhino.Geometry import Point3d from math import pi from...

View Article


Image may be NSFW.
Clik here to view.

Export Properties to Excel with Layer & Sublayer References

@adams-m wrote: Hi all, I've written a short script to export the areas & centroids of a number of surfaces/polysurfaces to excel in a formatted table - this is currently done with the object...

View Article

Filter for and delete all of a specific kind (polysurfaces) from Document

@Mr_Sinter wrote: Hi all, after a baking operation from Grasshopper, I get a mix of curves and polysurfaces baked_curves = Grasshopper.BakeDataInObject("Final_curve") ("Final_curve" is a curve element...

View Article

Excessive command history reporting during scripted "UnrollSrf"

@Helvetosaur wrote: If I run the attached MultiUnroll script on Windows Rhino, and I select 5 cubes and 5 spheres, the command line reports: Command: RunPythonScript Select surfaces to unroll: Select...

View Article


Convert Rhino 5 --> Rhino 4 file?

@krsnadas wrote: This is somewhat of a "deprecated" question, but I need to batch convert a number of 3dm files that are saved as Rhino 5.0 files to Rhino 4.0 files. How do I go about this? Posts: 3...

View Article


Python rs.LayerIds() wish

@clement wrote: @Alain, i´ve just found out that rs.LayerIds() returns ids of layers which have been deleted. def LayerIds(): "Return identifiers of all layers in the document" return [layer.Id for...

View Article

How to create a plane surface that is more that 5 points?

@ludicris wrote: from Rhino.Geometry import NurbsSurface, Point3dfrom scriptcontext import doc surface = NurbsSurface.CreateFromCorners( Point3d(5, 0, 0), Point3d(5, 5, 5), Point3d(0, 5, 0),...

View Article

How to create a solid (volume) from surfaces without using the mouse to...

@ludicris wrote: I know I could use the rhino command to select all and then _createsolid or _join to get by in certain occasions. But what if I just want to select a few not all surfaces that have...

View Article

Image may be NSFW.
Clik here to view.

Rs.OffsetCurve() problem

@603419608 wrote: Hello everyone,I encountered a strange problem.When I use rs.OffsetCurve () function is offset a polygon, rs.OffsetCurve () function does not offset negative.When the function...

View Article


RhinoScript Editor: Live Reload or Refresh?

@kleerkoat wrote: I'd like to use an external editor (Atom) to write RhinoScripts, does the built in editor for WIndows have a live reload or file refresh? ty Posts: 3 Participants: 2 Read full topic

View Article

Decoding binary bitmasks (bitflags)

@Helvetosaur wrote: Is there any function or an easy way to "reverse-engineer" a bitmask such as used in Rhino's object types? For example take the number 60 and decode it into 4+8+16+32? Thanks,...

View Article


Image may be NSFW.
Clik here to view.

Rs.OsnapMode() returns incorrect values

@Helvetosaur wrote: According to the Help, rs.OsnapModes returns or sets osnaps according to the following bitmask table: However, if I check for example just "Knot" osnap, the method returns 128 and...

View Article

Rhino Python nested iteration to list, won't print

@Nathaniel_Price wrote: import rhinoscriptsyntax as rs lst = [0,10]pts = [] for x in lst: for y in lst: pt = rs.AddPoint(x,y,0) pts.append(pt) print(pts) anyone know why this prints instead of...

View Article


Image may be NSFW.
Clik here to view.

Atom on Mac not autocompleting when Rhino is not running?

@ohmarinus wrote: Hey guys, I've got it all running, executed the terminal commands and have checked if all the packages are correctly installed. I'm using Yosemite and Atom for Mac and installed the...

View Article

Creating simple bridge structure in a recursive script Python for Rhino

@A.Milton wrote: Hi Everyone I'm new to the forum and also new to scripting in Rhino, in fact I have only been able create very basic geometry using Python for Rhino. About my project and what I want...

View Article

Scripts + interactive command line (REPL) in Rhino how?

@ZmeiGorynych wrote: Hi, I'm just learning Rhino and really loving it. I'm a coding kind of person, so am writing Python scripts to do everything I need, with the occasional embedded macro when that...

View Article
Browsing all 5743 articles
Browse latest View live