Tlousky's Journal Tlousky's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-02-09T01:27:20+00:00 pudge Technology hourly 1 1970-01-01T00:00+00:00 Tlousky's Journal Perl and 3D animation software <p> One of my most relaxing hobbies is playing around with graphics programs. </p><p> About a year ago, I started playing with Autodesk Maya, then learned some photoshop. Once I got more familiarized with opensource software, I naturally made a transition to playing with Blender and GIMP. </p><p> GIMP is a wonderful piece of software in my opinion. It has become my default image editor, texture creator and general purpose 2D playground. <br> I'll probably dedicate a post or several to it in the future, as I've been trying my luck with the <a href="">GIMP::Fu</a> module. </p><p> But when playing with 3D progs such as Maya and Blender, I came to discover that Perl isn't internatlly supported in most 3D animation programs. These usually have built-in support for Python, and often another language (like Maya's MEL), but no perl for the masses. </p><p> That's pretty frustrating if you ask me. With the all the excellent features of perl (CPAN being one of them), it seems odd to me that perl is ignored so completely by 3D animation developers. </p><p> If I want to write a perl script for Blender, I have to learn how to make a binding for it's source C libraries (and probably invest lots of time re-learning C to understand what I'm doing).<br> This is a worthy endeavour as it will create the necessary glue for writing perl scripts for Blender in general, and I have been contemplating this (together with a friend) - but it's probably gonn'a take time, a resource I have don't have much of lately. </p><p> In Maya, which is not an open source program, there's nothing for it but learning Python or MEL. </p><p> Sucks. </p><p> Not much here but venting. It's hard for me to complain too much about Blender, which doesn't cease to amaze me with its strength and sophistication, despite that fact that it's so lightweight (and of course, free!). But it would really be excellent if I could use Perl for Blender scripting. </p><p> Seems like I'm not the only one who thinks this is a good idea. Back in 2004, there was <a href="">a discussion</a> about this in the Blender Foundation's forums. <br> I decided it's been long enough since, so <a href="">I brought this up again</a>. </p><p> I Hope somebody listens<nobr> <wbr></nobr>:-) <br> And if someone might read this post and decide to add some supportive messages in that thread, be my guest! </p> Tlousky 2009-12-01T15:06:29+00:00 journal Padre - coding and editing in comfort <p> For a while now, I've been under some pressure to adopt vim as my default text (and code) editor. This stems from the very harsh fact, that in my type of job (which now involves a lot of sys and net administration), I often have almost no reasonable alternative to it. </p><p> When I hook up into a remote server, vim is often the only highly functional editor with syntax highlighting. </p><p> At the beginning it was absolute hell. The very basic copy &amp; paste seemed so elusive, and getting used to editing and command modes was pretty difficult. But I made all the necessary efforts, acquired a whole book dedicated to vim and printed out all the shortcuts and keyboard commands in a nice little booklet. <br> And I can honestly say now that I'm perfectly fine with this text editor and get what I want from it fairly smoothly and quickly. </p><p> But that doesn't mean I'm happy with it. I know this is the laughing matter for hardened old-school Linux users, but I'm still vastly more comfortable with GUI based editors like Notepad++. </p><p> For some time now, an even better GUI based editor is around, designed especially for Perl programmers. I'm talking about <a href="">Portable Padre</a>, of course, an opensource text editor with many great plug-ins and a very comfortable interface. </p><p> Why am I more comfortable with this kind of editor? I'll use metaphors from the motorcycling world to illustrate this. <br> If vim is a spartan, razor-sharp superbike, with a powerful motor, rigid chassis and track configured suspension, Padre is a high tech sport-tourer with the latest technology and excellent components encompassed in a beautifully designed and extremely comfortable bodywork. <br> Maybe a world class superbike racer could ride the sportbike faster on the race-track, but on an ordinary, everyday environment, most people will be <b>faster</b> with the sport-tourer, and it can carry you comfortably for hours on end. </p><p> Padre has some very nice features which make it even more comfortable for Perl developers.<br> * You can easily execute your script with F5, and see the output in the output window.<br> * Recent versions have nice debugging aids, which include warnings for common errors such as undeclared variables and missing braces.<br> * Those of us who commonly write moduls can create them with <a href="">Module::Starter</a> through Padre's GUI.<br> * It's possible to show all functions on a nice frame on the right and jump between one and the other. <br> * Padre can be installed on either a Linux or Windows machine. It used to be difficult on Linux due to problems with installing Wx Widgets libraries, but now there's an official Ubuntu<nobr> <wbr></nobr>.deb package or a windows Binary installation file. Padre looks and works the same on any of the supported operating systems.<br> This short description doesn't even start to scratch the long list of features Padre has. </p><p> I recently had the opportunity to hear Padre's founder, <a href="">SZABGAB</a>, talk about the great plans Padre's developers have for it, which include an integration of the <a href="">Perl Data Language</a>, Parrot and other stuff. </p><p> But bottom line?<br> I use Padre because it's a beautifully designed, comfortable everyday editor. <br> Highly recommended for anyone who feels like he/she's sweating with vim or other editors. </p> Tlousky 2009-11-22T10:39:16+00:00 journal Primer <p>First post.<br> Awkward as it ever could be. This is my ver 2.0 in blogging. The last version, attempted quite a few years ago, didn't last too long. Hopefully this one will last longer and be more useful! </p><p> I'm a fledgling Perl programmer (~8 months around), navigating the currents created by vastly more experienced and knowledgeable users. </p><p> But I love this language, and have lots of plans and ambitions to learn more and put it to use in work and fun related issues (which happily intermix quite frequently). </p><p> I enjoy Perl both because of it's many advantages, and since it introduced me to the wonders of the open source world. I have to shamefully admit that before this beneficial introduction, I looked down upon OSS, mostly due to ignorance. </p><p> These days I'm a happy user of both Perl, and other wonderful programs such as Linux, GIMP, Inkscape, Blender, Git, SVN and many others. One of my current points of focus is producing graphics with perl scripting. I've begun writing a tree generator script using the excellent module <a href="">SVG</a>. This already works but still lacks some functions and will be published quite soon I hope - after I decide on a suitable namespace. </p><p> I've actually been quite impressed with SVG and will likely write some posts about it in the future. </p><p> Fist post: over and out. </p> Tlousky 2009-11-17T11:03:30+00:00 journal