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

Rs.AddPolyline not culling duplicate points as per Help

Mitch Heynick wrote: I notice that the Python rhinoscriptsyntax does not automatically cull duplicate points as the Help indicates (Help which was copied over from VB essentially), if consecutive...

View Article


Is it possible to open a file in a zip file?

Jørgen Holo wrote: I made a zip file called "test.zip" of a small rhino file called "test.3dm" and put it on C:Then I tried this to see if it would open it: import rhinoscriptsyntax as rsrs.Command...

View Article


Scripting Brazil Materials

James Carruthers wrote: Does Brazil(or I guess it's the RDK?) have enough RhinoScript support that I could script the following: I have a bunch of 3D clipart in OBJ or other format, which imports with...

View Article

How to get/set named construction planes origin/angles numerically

Katsu wrote: Hello, I'd like to know about how to get/set "named" construction planes origin/angles numerically. I use python. Posts: 2 Participants: 2 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Bug rs.ZoomExtents() with rs.EnableRedraw(False)

Peter Schmidt wrote: Greetings,I have written the following script to set a specific layout as the current view then for each detail in the layout I call the rs.ZoomExtents() command. However I get...

View Article


Small Scripting Jobs (will pay, of course)

Kristen wrote: Hi All. Not sure if this is the done thing, but I'd love a couple of scripts written for me.I guess if you could provide a quote that'd be the starting point. I want a leader that...

View Article

Python – move a mesh using pythonscript

Hossam Magdy wrote: I want to move a mesh cube from its volume-centroid to the point 0,0,0 .. but I need it to be done fully automated by the python script without picking any thing from the screen .....

View Article

Python - creating a curve through points

Keith wrote: I am trying to create a curve which passes through specific point locations.In Rhino, the command is _curvethroughPt. What is the Python equivalent? I started out thinking it was...

View Article


Script is 4X! bigger than it needs to be, please help

Justin Jahn wrote: Hi, studying RhinoScript 101 by David Rutten, pg 58 'Geodesic Curve' After studying the script closely I deleted about 100 lines of apparently unnecessary codes, and discovered the...

View Article


Small probelm with Python/Rhinocommon Vector3f

Mitch Heynick wrote: One is supposed to be able to scale vector objects by simply multiplying them by a number: import Rhino vec=Rhino.Geometry.Vector3d(0,0,1) mult=2.0 scaled=vec*mult print scaled...

View Article

Rs.XFormRotation2 bug?

vittorio wrote: Hi SteveI have the below Python file saved with name matr.py import rhinoscriptsyntax as rs def a(): matrot=rs.XformRotation2(360/(10*40),(0,0,1),(0,0,0)) print matrot if...

View Article

Find discontinuities

Mitch Heynick wrote: Hi, I am trying to duplicate the function of Grasshopper's Discontinuity component with Python/Rhinocommon. (I know I can just script the component, but I'm looking at...

View Article

Plugin install folder?

Jørgen Holo wrote: Hi guys,I am trying to find a plugins install folder.But all I could find was this: import Rhino InstalledPlugInFolders=Rhino.PlugIns.PlugIn.GetInstalledPlugInFolders() print...

View Article


Join curves in similar direction

Damon wrote: I've written a Rhinoscript that given two lines, the script will join them if (a) they share an end point and (b) the angle of the tangent vector at their shared end point is less than a...

View Article

Why is Python showing the first calculations but not the last?

Jørgen Holo wrote: Rhino shows the 20 or so first calculations, then suddenly jumps to the end of the calculations.Why is that? import rhinoscriptsyntax as rs import random import time...

View Article


Small problem with Python/Rhinocommon Vector3f

Mitch Heynick wrote: One is supposed to be able to scale vector objects by simply multiplying them by a number: import Rhino vec=Rhino.Geometry.Vector3d(0,0,1) mult=2.0 scaled=vec*mult print scaled...

View Article

Image may be NSFW.
Clik here to view.

Lintypes - where is the pattern information stored?

Mitch Heynick wrote: I can find pretty much all of the info needed to construct a particular linetype from the document linetype table - EXCEPT the length of the segments... Where is that info stored?...

View Article


Avoid multiselection dialog when picking closed seam edge?

Mitch Heynick wrote: Hi all, When using RhinoGet to pick a surface edge: msg="Pick a surface seam edge" filter=Rhino.DocObjects.ObjectType.EdgeFilter rc, objref =...

View Article

Looking for trim by rectangle tool

Przemek wrote: I'm wondering whether you've seen script that would trim curves by rectangle/window select. I'm pretty surre I've seen it somewhere , but now I can't find it. Posts: 2 Participants: 2...

View Article

Rs.CurveLength Help needs update

Mitch Heynick wrote: @dale The Python rhinoscriptsyntax help page for rs.CurveLength is missing the descriptions for the two additional arguments segment_index and subdomain... (they can be stolen...

View Article
Browsing all 4174 articles
Browse latest View live


Latest Images