If you don't see any error messages, you're good to go. We should be done! Fire up NodeBox and try an include pymunk to see if it loads. > ln -s ~/Library/Application\ Support/NodeBox/pymunk/libchipmunk.dylib. > cd /Applications/NodeBox/NodeBox.app/Contents/MacOS/ įinally, NodeBox needs access to libchipmunk. > cd ~/Library/Application\ Support/NodeBox My pymunk is in /Library/Python/2.5/site-packages/, so I'll: This will install an egg (which I normally hate dealing with, but that's another story.) If you don't want the egg, just copy the pymunk directory into your site-packages. Once you've downloaded and uncompressed the pymunk source, cd into it's directory and build chipmunk using: Pymunk (at the time of writing) includes it's own copy of the Chipmunk source code, making this whole process rather easy. This may not always be the best solution, so you'll have to pick what's right for your needs. This allows me to run the pymunk examples from the command-line (which use PyGame and Pyglet) but still use it from NodeBox. You can make NodeBox use your system packages instead of it's own by sym-linking ~/Library/Application\ Support/NodeBox to your site-packages directory of choice (ex., /Library/Python/2.5/site-packages)įor this exercise, I'll be adding pymunk (Python bindings for the Chipmonk physics library) to NodeBox using option #3: Installing pymunk globally and sym-linking from NodeBox's package directory.You can install packages into your system site-packages directory and sym-link them from NodeBox's directory.You can import sys in your NodeBox code and manually modify the sys.path value to add your existing packages.You can install your packages into NodeBox's path, ie., ~/Library/Application\ Support/NodeBox/ - meaning that you can use them from NodeBox, but not from other scripts.NodeBox includes it's own Python build, which is nice for portability and reliability, but it uses a custom sys.path that doesn't look for Python packages you might already have installed on your system. For a quick look at what it can do, check out the NodeBox gallery. It's a bit slow to run complex animations in, but you're coding in Python, you get the gorgeous fonts and anti-aliasing you'd expect on OS X, and it provides easy access to some OS X native libraries, like Core Image. It uses PyObjC to embed a Python runtime into an OS X native application, and fits into the same toolbox as Processing and maybe openFrameworks. "NodeBox is a Mac OS X application that lets you create 2D visuals (static, animated or interactive) using Python programming code and export them as a PDF or a QuickTime movie." When you're ready for more, it's not too difficult to bring in external Python libraries to connect NodeBox to other systems or add physics and particle simulation to spice up your visuals. It's easy to get started in and you get basic drawing, type, and image manipulation. I’m worried if the result is interestin enough.NodeBox makes a great environment for data visualizations and generative art. So I have some sort of basics to start thinking about the movement. Which hoopefully makes the environmet visually interesting. Pictures are filling the landscape and new citicens are meeting each other so the amount of pictures is growing sooner and sooner. A couple of examples (made with nodebox): The picture is a combination of meeting parameters and retrieved from web-based picture gallery. So when man+woman and desired parameters meet, a new citicen is born leaving behind a picture. But for sure the coincitental meeting has to affect to the overall image somehow. ![]() Movement changes background image in some way, I don’t know yet how. When starting the movement the environment as a background (rectangular) could be a random picture from urban living, a city landsscape and so on. But they have certain parameters like sexgender, profession, hobbies etc. Movement, coincidental meetings, affections etc. Need to exercise and analyse examples, and code. Combining things, objects and ideas is still…let’s say hard. The more you understand the code the more you want to use the program and explore.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |