Monday, March 03, 2014

showreel 2013


i have put together a new reel from the work done from 2011 to 2013.
so here you go. hope you like it:

there is also a youtube version here, uploaded by theCGbros who where kind enough to want to showcase my work, cheers!


Thursday, January 09, 2014

test string type (small update)


this is a small update to the test string type function. which would propagate to the jc_makeDefWin(), in the same post.

i realised whilst running a few functions, that i had no case for boolean arguments. the reason for this was the possibility of using 1 and 0 as boolean arguments. but just to make things neater, here is a the same small function with boolean case:

def testStringType(string):
    def testType(var):
        def numTest(n):
                return float(n)
                return str(n)
        if var.isdigit():
            return int(var)
        elif  entry == 'True':
            return True
        elif entry == 'False':
            return False
        elif var.isalpha():
            return str(var)
            return numTest(var)
    if ',' in var:
        clean = var.replace(' ', '')
        cleanList = clean.split(',')
        return cleanList
        single = testType(var)
        return single

simply reading if the string is either 'True' or 'False', before checking .isalpha().
you can fin the fully documented (and silly verbose) functions in the previous post.