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

ObjectPrintWidth slow but safe

3 posts Mitch Heynick (Helvetosaur) wrote: I have the following (python or equivalent in vb rhinoscript, works about the same): import rhinoscriptsyntax as rs objs = rs.ObjectsByType(4) for obj in...

View Article


Distinguish two almost-identical objects

2 posts Mitch Heynick (Helvetosaur) wrote: There are three very simple objects in the attached file, two of which are copies and one of which is a mirror image of each other. Assuming there could be...

View Article


Hidden pointcloudpoints visible again

1 post powerpp wrote: Hi, I am hiding some points in a pointCloud using a pointcloud enumerator.Thenthe pointcloud is updated using scriptcontext.doc.Objects.Replace(old_pcloud, new_pcloudj)This works...

View Article

Working with .SAT file format

3 posts Kaveh_Allahdin wrote: Hi everyoneI was wondering how it is possible to import and work with.sat(acis) file formats and work with them in combination with rhinocommon.I 've got some .SAT file...

View Article

VBscript modify multiline dottext

2 posts NicodeM (NdeM) wrote: I try to get in vbscript a multi line text string out of the text dot is that possible? I found out that is was possible to put them in. See row below,...

View Article


Python in grasshopper_how to add point from python to grasshopper

2 posts elena (Liu_Xiang) wrote: I have a python script to generate point matrix. But when I have python in grasshopper . it not return physical point in rhino. How could I import rhinoscriptsyntax as...

View Article

How to set import options for stl in vbscript

4 posts miguel (miguelv) wrote: Hello, I am trying to import stl files in vbScript using Rhino.Command "_Import c:\filename.stl"The problem is that a window "STL Import Options" pops up. How can I...

View Article

Exit rhino from script/command file

2 posts Enrique (edemeer) wrote: Hi! I have a script in Rhinoscript for automating/batching some computations in rhino remotely. I use in my script Rhino.DocumentModified "False" to avoid the prompt...

View Article


Exporting dxfs by script issue

1 post James Carruthers (JimCarruthers) wrote: I've got a long-time-used script that exports curves to DXF, I believe though a "Rhino.Command" statement. The last time I ran it I suddenly started...

View Article


Create list for user to choose from

1 post ethank wrote: I'd like to make a list of choices, say between 10 cars, and present that to the user in the rhino command area to choose from so that my python script can then use that user...

View Article

Integer Division

5 posts hstehling (hanno) wrote: Hi, I just stumbled over some unexpected behaviour and thought I'd share it here. Background: The standard division operator / behaves differently in python 2 and 3....

View Article

PrevSelectedObjects not working?

11 posts Spanker Leach (Charles) wrote: Hi, in a script I want to get the object that was used by dimangle.But it doesn't return the object:...

View Article

Leader Text Function

1 post djnelson75 wrote: So I think the LeaderText() is broken in python. It won't set the text to a new value.In trying to look under the hood. It looks function try's to set the geom.TextFormula if...

View Article


How to set width of listbox

2 posts Bill Knighton (bill_knighton) wrote: Is there a way to set the width of a dialog box like rhinoscriptsyntax.ListBox ? I am using python. I've tried giving it a long title and making the first...

View Article

How to change the degree of the curve in rhino python

5 posts elena (Liu_Xiang) wrote: I trying to use. But when I change the degree to 30 or 40. the curve did't change. rs.AddCurve( ( Pt1,Pt2,Pt3 ), degree) Any idea how to change the degree of the curve...

View Article


How to understand this error and debug

2 posts elena (Liu_Xiang) wrote: If i meet the following error in rhino python.How should I understand it , how to debug and check it? Runtime error (KeyNotFoundException): KeyError

View Article

Python script to scale, copy and move to created layer(s)

3 posts Randy Gregory (rhinorudi) wrote: I need help with a script. I have looked at the sample script "CopyObjectsToLayer'. I have a script that copies & scales the object. I can create the...

View Article


"MergeSrf" RhinoCommon Equivalent

2 posts Anders Holden Deleuran (AndersDeleuran) wrote: Is there a RhinoCommon equivalent to the Rhino command "MergeSrf"? I have dug around and found brep.MergeCoplanarFaces(). However this seems to...

View Article

Python: Flatten an irregular list of list of list

6 posts Miguel Rus (Miguel) wrote: HI, Is there any quick/easy way to flatten a list in python? I've searched but so far all the solutions are messy or use an external module. Any ideas? -M

View Article

Wish Python rs.Import( fliename) rs.Insert(filename,options)

1 post vittorio wrote: Hi SteveCan you add a new method rs.Insert(.....) rs.Import(......) ?Ciao Vittorio

View Article
Browsing all 4171 articles
Browse latest View live


Latest Images