Starting Out

From The Foundry MODO SDK wiki
Revision as of 21:48, 21 February 2014 by Chris Hague (Talk | contribs) (Created page with "==First Steps in the API== The Python API is significantly more powerful than the previous Python scripting interface. This means Python users can create fully functional plu...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First Steps in the API

The Python API is significantly more powerful than the previous Python scripting interface. This means Python users can create fully functional plugins just like C++ users, but it also means Python scripters who want to take advantage of the speed and power need to interact with modo at a more fundamental level. There is a lot exposed at this level, and it can be overwhelming for new users. Hopefully, this brief introduction can get newer users started off on the right foot.

The heart of the Python API is the lx module. Looking at the different elements in the lx module is probably the best way to get familiar with the Python API, and the persistent interpreter will let you do this through Introspection. First let's open an interpreter. You can open the command history with the F5 key and change it to use the python interpreter through the viewport settings. The results tab will show you modo's responses to your inputs so you'll want to switch over to it.