Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4171

Overview of Python scripting in Rhino

$
0
0

I’m trying to get started with scripting Rhino, probably using Python, and I have so many questions. For example:

• What is the difference between Rhino.Python (which has documentation Rhino.Python Guides with Python) and PythonScript (in Rhino’s GUI)?
– There seem to be some names that are not helpful. For example, it took me a while to work out that rhinoscriptsyntax does not involve rhinoscript – it mimics it in Python. Why do some commands/methods appear in rhinoscript but not rhinoscriptsyntax?

• When do I want rhinoscriptcontext, scriptcontext or Rhino? Is there a list of the methods associated with each?
– I’m starting to suspect that methods accessed via “import Rhino” are in the RhinoCommon API, but how come the documentation RhinoCommon API - Redirect doesn’t provide Python?

• If I find a method or object etc in someone’s script, how do I search for the documentation on it? – do I need to know which API to look in?

You’re welcome to address those questions, but I have more – so really I would like to ask:
• how do I get started here? and
• are there clever ways to search the documentation?

I’m hoping for answers that go beyond Rhino.Python Guides with Python. (I looked there, and searched from there, for insight on “scriptcontext”, for example.)

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4171

Latest Images

Trending Articles



Latest Images