Naughty Nathan Junk from the mind of a Tech Artist…

« Newer PostsOlder Posts »

February 1, 2009

Artwork – Life Drawings

Our Life Drawing class has recommenced so I thought I’d better get rid of the backlog of older drawings that I’ve still to upload. Here’s the last few from previous classes.

and here’s a couple of older monotone pencil sketches:

Filed under: Artwork — Naughty @ 12:37 pm

November 14, 2008

More DS Colors Sketches!

Here’s a few more sketches done on my trusty puke-green DS. The blond woman in the middle was actually done on the train to work, and I had to pretend that I wasn’t like constantly staring at this woman in front of me… She probably just thought I was a pervert or a retard. I guess those two things aren’t mutally exclusive though. The rest were all done on the same night at a life drawing class and are of the same model, Adele, apart from the weird white-faced one which is actually a guy called erm… let’s just call him Jack for argument’s sake.

         

              

Filed under: Artwork,Colors! DS — Naughty @ 3:19 pm

LEGO Piaggio Scooter

Here’s a quick little LEGO minifig-scale scooter I made, based loosely on my Piaggio Skipper! Due to the scale it’s obviously not that accurate that you’d recognize it as such, but I think it’s still a cool little two-wheeler…

Minifig-scale LEGO Piaggio Scooter

Minifig-scale LEGO Piaggio Scooter

It’s pretty simple as you can see, but if anyones interested in the instructions for it, you can find them here:

http://www.naughtynathan.co.uk/?page_id=524

Filed under: LEGO — Naughty @ 2:37 pm

Two little boys…

..had two little toys. Or so sayeth the great oracle Sir Rolf of Harris.

All these two have are guilty looks…

aw.. aren’t they cute… at least they were back then, that was a good few years ago and now they’re a right pair of little swines. That’s Jacob on the left and Matthew on the right. And yes, despite their cute looks, they are both mine… If I take a more recent photo of them one day you’ll hear about it here first!

Filed under: Just Stuff — Naughty @ 12:02 am

November 13, 2008

More Portrait Artwork

I’m so slow at drawing (and lazy) that I only end up drawing the face and head… so here’s some more of those. Same as before, click to view big.. you know the drill.


Filed under: Artwork — Naughty @ 11:48 pm

My CD (MP3) list…

Well it’s been a while… since last posting I’ve done so very much… survived a nasty Trojan Attack, reinstalled my OS, visited Disney World Florida, read two books (two!? woot!), made a new friend, 3/4 built a Wipeout HD Feisar out of LEGO, swam with a dolphin and learned how to program in Python. All of which I’d love to share with you one day, but not right now..
For now here’s something far more exciting: A text list of my entire music collection – wooohoot!

My Music Collection

Actually, it’s not my entire collection, there a still a couple of newer CDs I haven’t ripped yet, and about 700 individual tracks that I haven’t listed, but you get the overall picture…

Filed under: Just Stuff — Naughty @ 11:14 pm

September 5, 2008

Nintendo DS – Colors!

Alison
Woot!! I finally got myself an R4 Homebrew cart for my Nintendo DS after a pal convinced me to get one (thanks Eric! 😉 ). In fact, the only reason I got one at all was purely so I could try Colors!. It’s a really, really nice homebrew paint package for the DS, and after using it for only 15 minutes I can see it may even persuade me to do a bit more sketching for fun… And best of all, it’s totally free!!! The image above is my first attempt at using it.. You can check out the Colors! software here if you’re interested:

http://www.collectingsmiles.com/colors/

If you’re looking for a good place to buy a DS R4 Homebrew cart (in the UK), here’s where I got mine:

http://www.consoleup.com/shop/Console/R4-DS/R4-DS-for-Nintendo-DS/

They seem pretty good, they delivered it within 3 days for under £25 and they don’t even require you to create an account..! It comes with the R4 cart and a USB stick, but you will need to buy a separate microSD card to store data on. eBay have them for under £3 for 1GB..!!

Expect to see a lot more Colors! artwork on here in the future! 😉

Filed under: Artwork,Colors! DS — Naughty @ 9:32 pm

August 31, 2008

Awesome LEGO model blog

I got emailed this blog by about 5 different work mates.. 😀 It takes a while to load as it’s image heavy, and plenty of them! but there are so many beautiful models, in every theme you could imagine, all hand-picked for quality!

legoblockblock.blogspot.com

LEGO grand piano LEGO Mecha

Filed under: LEGO — Naughty @ 4:08 pm

August 22, 2008

Breaking infinite loops in MEL

Quite often, especially when you are writing and testing a new MEL script, you’ll inadvertently create a for or while loop that never exits. Usually due to a testing condition that never becomes true, 99% of times it’s probably due to a dumb oversight that is (hopefully) picked up during initial testing/debugging, but infinite loops can still sometimes occur in production scripts. Even if you haven’t got stuck in an infinite loop you may suddenly realise that you’ve started a script with the wrong type of, or too many, components selected and the script will be churning away for a good 2-3 hours if not interrupted!

Once a bit of MEL enters such a loop there is no way of breaking out of it other than killing Maya’s process from the Windows Task Manager. Obviously this is a bit of a tedious job at the best of times, especially if it’s a script that needs thorough testing, but what if your loop-locked script was running on a scene you’d not saved for a couple of hours?

Here’s an excellent and, so far, bulletproof (touch wood) method of protecting yourself and your scripts. Because Maya has locked up at this point we can’t issue any kind of command or process from Maya. We can however issue a command from outside Maya, say from DOS…

If you create a batch file somewhere on your PC with the following content:

@echo off
echo This file breaks infinite loops in MEL scripts > c:\breakMel
pause Maya halted - Press any key to continue
del c:\breakMel

call it HALTMAYA.bat or STOPLOOP.bat or whatever name works best for you so you don’t forget what it’s for. If you have no idea what a batch file is, simply copy and paste the above code into a text file and save it as one of the names suggested above (make sure you don’t have file extensions hidden in windows!).

Now, when you run this batch file it should open a DOS shell window and prompt you to press a key to continue. Pressing a key dismisses the DOS box…

So? what exactly did this do and how does it help us stop an infinite loop??

Well if we take a look at the batch code it should be relatively self explanatory, even if you don’t know any DOS batch commands. The first line simply hides the echoing of commands (kinda like Maya script Editor “Echo All Commands” set to “off”). The second line echos the specified sentence, but the important bit is the > at the end. This > symbol tells the echo commad to redirect the echoed words into a file instead of onto the screen. That’s why you never see these words printed in the DOS window, they are sitting in a file called “breakMel” on the root of your C: drive. Of course you can change these words and the name of the file, as they are entirely irrelevant and no-one will ever see either of them. All that’s important here is that a detectable file has been created. The third line simply pauses DOS and prompts you to press a key. This is vitally important because we’ve no idea how long the rogue MEL script will take to get once through the loop it’s stuck in, and we need to ensure that it detects the breakMel file we’ve just created. The pause allows us to sit and wait for the loop to detect the file before we proceed to the fourth and final line which deletes it. If we don’t delete the break file your MEL script will find it again next time it is run and halt immediately!

So, the final piece of the puzzle.. how does your MEL script detect the creation of this file? It’s quite straightforward; you just put a single line inside the loop in your MEL script:

if (`filetest -f "c:/breakMel"`) break;

Every iteration through your loop will look for the existence of a file called “c:\breakMel” and if it exists it will break out of the loop. If you have more than one nested loop though, you will either need to put the same line in each nested level of the loop or change the break command into an error, which is a lot simpler:

if (`filetest -f "c:/breakMel"`) error "User broke out of infinite loop!";

Believe it or not, adding this command doesn’t appear to have any noticeable effect on the performance speed of a script. I initially thought checking for a file would take MEL ages but surprisingly it doesn’t, at least not in this context. I’ve run timing tests with and without this line and there’s no significant difference, so you don’t need to worry about adding this feature to all your scripts. Of course, once you’re convinced your script is fully robust enough that it can’t get stuck in an infinite loop you can always remove this line, but it won’t hurt if you do decide to leave it in.

The other good thing about this trick is that it has no dependencies, so you can safely distribute the script to anyone without worrying that the line will cause any kind of problems at their end, as it’s unlikely anyone will ever have a file called “breakMel” on their C:\ drive!

You can do a similar thing in Python:

import os
if os.path.exists("c:/break"): break

Filed under: MEL / Maya,Python — Naughty @ 8:32 pm

August 13, 2008

Life Drawings #2

Here’s a second batch of Life Drawings. (you can click on these thumbnails to see a bigger version)

   

 

Filed under: Artwork — Naughty @ 11:11 pm
« Newer PostsOlder Posts »

Powered by WordPress