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

Python BoundEvent's not firing

mrmagooey wrote: I'm trying to register some Python functions to the Rhino.RhinoDoc event handlers, eg: import Rhino import rhinoscriptsyntax as rs def deselect_test(a, b): print "hello"...

View Article


Script Bookshelf Maker - problems

Free Frezer wrote: Hello! There was a problem with the script Bookshelf Maker.Based on this video, (http://www.youtube.com/watch?v=eWvNrCvMGvc), I learned that the script is able to manipulate the...

View Article


Lost my python script

Willem Derks wrote: Hi, Can it be that the python editor saves script before or after a run?I had a bluescreen crash while running a script and after a reboot the python file is "empty"ExportCombs.py...

View Article

Image may be NSFW.
Clik here to view.

Sweep2 problem with rhinocommon?

Tingwei D wrote: hey everyone, it seems the sweep2 in rhinocommon pyhon (right one in image) can not workproperly the result always different to the one I made in Rhino straightway(left one in...

View Article

Needed: rs.CheckNewObjects()

Mitch Heynick wrote: Like vb Rhinoscript has... Thx, --Mitch Posts: 1 Participants: 1 Read full topic

View Article


Adjust curve Curvature at start

powerpp wrote: Hello, I need to adjust start/end - curvature of an existing curve. Is there a way to do so? Thanks,Philip Posts: 1 Participants: 1 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Fastest way to get polyline curve parameters

powerpp wrote: Hello, I need all parameters at a polylines edges. I tried to get all parameters at all curvepoints with pars = [rs.CurveClosestPoint(curve, pt) for pt in curve_points] My testcurve is...

View Article

JoinSurfaces() creating an invalid object from valid surfaces?

Josh wrote: Hi, I have a surface and a polysurface, and when I call rs.JoinSurfaces() as below, the resulting object fails the IsObjectValid() check. When I join the same two surfaces interactively...

View Article


Python ExplodeBlockInstance method is hanging my Rhino

Dan Bayn wrote: Some background information first: We import STEP files created in Solidworks, and it is important that the object name used in Solidworks comes through to Rhino. In V4, you could...

View Article


Why are scripted redraws so sloooooowwww...?

Mitch Heynick wrote: I have a medium complex mesh model - about 400K polys total with 500 different parts. My dynamic display is great - I can spin it as fast as I can move the mouse and no...

View Article

Sc.doc.Materials (Materials table) - I don't get it

Mitch Heynick wrote: I have a file that has perhaps 25 materials in it - listed in the material tab. If I call sc.doc.Materials to get the material table it is 440 indices long... How is that...

View Article

Python advice

Willem Derks wrote: Hi community, I'd like some advice and insight about working with python outside Rhino. For a upcoming project; I'm going to have Grasshopper/Rhino interact with a hardware setup...

View Article

OffsetPointOnCurve

Rhino User X wrote: [I know very little about Rhinoscript]. I found the perfect Rhinoscript here. But I am getting the following error: Source: Microsoft VBScript runtime errorError: Variable is...

View Article


Objects By Layer Wildcards?

djnelson75 wrote: In Python does the ObjectsByLayer support wildcards like "S-Wall*" getting all layer like S-Wall-Int? Posts: 2 Participants: 1 Read full topic

View Article

Next named view scrip

South Korean space agency wrote: Hello everyone,In some case at my work,I use the named view function very often.The animation effect when I switch between different views are very useful.and looks...

View Article


Image may be NSFW.
Clik here to view.

Distribute bloc on point and along spline

antho wrote: Hi I'am rookie on the forum, and it's the first time I'am trying to create script on rhino.Here is the purpose : I want to distribute a bloc on a point and along a spline, then I want to...

View Article

Image may be NSFW.
Clik here to view.

More transformation/display molasses experiences

Mitch Heynick wrote: So, now I have my file with all 160 objects in it, each composed of multiple parts (so that the parts can have different render colors/materials). There are over 8000 mesh objects...

View Article


Image may be NSFW.
Clik here to view.

Export creates ":" symbol in the path name - can't save file. Screenshot...

Yuri wrote: I'm trying to export all the layers in separate files using the attached script.For some reason it adds "::" character in the file name. Windows can't save file with ":" in the filename.I...

View Article

Creating commands/macros with Python

Ian Clark Smith wrote: Note: Though my question primarily arises from the lack of RhinoScript in Rhino for Mac, I've chosen to post in the Scripting forum because any solutions or discussion should be...

View Article

Bug in ExplodeHatch

Jørgen Holo wrote: Hi There is a bug in rs.ExplodeHatch(id,True) Message: Delete() takes exactly 2 arguments (1 given) Posts: 3 Participants: 2 Read full topic

View Article
Browsing all 4120 articles
Browse latest View live