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

Iteration over non-sequence of type NoneType

@crackkeys2 wrote: Hello, i get this error “Iteration over non-sequence of type NoneType” all the time, and i dont know why. I know that the problem lies in the line 78 but i am a beginner and copied...

View Article


Image may be NSFW.
Clik here to view.

Rhinocommon NodeInCode doesn't work without starting grasshopper

@lando.schumpich wrote: Hey @piac i fiddled around with nodeInCode today and i cant recreate this: Using the NodeInCode namespace Do you need grasshopper opened in order to access a component from...

View Article


Dummy export question

@ricardo.eira wrote: I have a dummy question, Why does not this command work? import rhinoscriptsyntax as rs id= rs.GetObjects("") filepath= “”“C:\Users\partcad\test.3dm”"" s=rs.Command("_Export_SelID...

View Article

Script for Rhino and Keyshot(V-Ray)

@woojung.seok wrote: Hi, guys. I need your help. I have experience rendering a Jewelry model with a rhino and a K-shot. and i have a problem. I have to do various stone renderings about one Jewelry...

View Article

Scripting - ExtrudeCrv ToBoundary

@Stroopwafelandcoffee wrote: I’m wondering if it is possible in any way to script the ToBoundary function of ExtrudeCrv. The only topic about this I could find was this one where the best solution...

View Article


Image may be NSFW.
Clik here to view.

[Python][RhinoScriptSyntax] Questions:

@ivelin.peychev wrote: Question 1: What is the difference between this: image.png957x380 13.8 KB and this: image.png987x400 16.4 KB NOTE: If they are different shouldn’t they be described differently...

View Article

PEP-ping Python Examples

@ivelin.peychev wrote: Is it just me or other also think <> in IronPython examples in RhinoCommon to be very weird looking. I’m not a programmer but I’ve always used != and if I haven’t used DS...

View Article

Image may be NSFW.
Clik here to view.

Getting Point coordinates [python]

@ivelin.peychev wrote: I usually get coordinates with point.X, point.Y, point.Z, but it doesn’t work in the following code: import scriptcontext as rs import Rhino.Geometry as rg import...

View Article


Increasing vs Decreasing Interval and Transformation

@somnarchbulist wrote: Hi i’m creating a box with random intervals and whenever i have a DECREASING Interval my translation doesn’t work properly. I guess i am missing a piece of information about...

View Article


Scripting - rhinocommon join surfaces

@Stroopwafelandcoffee wrote: I found a Brep.JoinBreps There is also a Curve.JoinCurves. But I need Surface.JoinSurfaces, or if that isn’t possible I need a way to convert surfaces to Breps. Why is...

View Article

Image may be NSFW.
Clik here to view.

How to enter spacebar into a command in python

@siemen wrote: I’m trying to automate the Text object command using python and am running into 2 issues which I think are related to the same problem. I don’t know how to enter a spacebar with the...

View Article

Restoring snapshots in Python

@axa wrote: Hello all, I’m trying to write a script that restores different snapshots (elevation of clipping plane and object visibility) and saves a screencapture of each snapshot to file. I’ve found...

View Article

Frist time run Python

@ricardo.eira wrote: Hello, Whenever rhino start, and is called the first python script, and rhino takes a little time to execute. This only happens in the first script, after this it is almost...

View Article


Image may be NSFW.
Clik here to view.

Command line option not updating

@siemen wrote: Ok so I changed the script from this link: Add command line options such that the Getpoint keeps repeating until I Esc out of it. I also removed all options except for the integer...

View Article

Numerizing vertices in V6

@brt1 wrote: i used this script by clement greiner in V5 to numerize mesh vertices. in V6 it doesnt work anymore. any suggestions for alternatives? Posts: 3 Participants: 2 Read full topic

View Article


Image may be NSFW.
Clik here to view.

Beginner: How can I output lists in python

@lesan wrote: Hello, I do have a very basic question about the Python-component in Rhino 6. How can I output lists from the grasshopper-component, atm I’m just printing strings: import...

View Article

Image may be NSFW.
Clik here to view.

Python Death Clock

@Dancergraham wrote: There is just over a year to go on the Python 2.7 death clock pythonclock.org Python 2.7 Countdown Python 2.7 will retire in 2020. Learn more and see the countdown here. Have...

View Article


Rhinocommon: How to update DimStyle in document. Rhino 6

@victor.amc wrote: Hi, I am just looking to format some dimension objects. Sounds like the best thing to do is just to assign an instance of a DimensionStyle; however, I am having troubles...

View Article

Color code

@ricardo.eira wrote: Hello, I use RhinoScript into c# and I have the color code problem rs.ObjectColor(surface, [150,0,0]); For some reason the color code is rong, what is the rigth code for this...

View Article

Prompt user to unselect objects?

@Bogdan_Chipara wrote: I have many objects selected and I want to deselect some of them and create two groups. group1 the ones which are still selected group2 the ones I just deselected Something like...

View Article
Browsing all 5743 articles
Browse latest View live