hi
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!
regards
mostly about my work, rigging, some code and some random bits. http://www.sod4602.com/ sod4602@lycos.com
Monday, March 03, 2014
Thursday, January 09, 2014
test string type (small update)
hi
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:
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.
regards
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): try: return float(n) except: 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) else: return numTest(var) cleanList=[] if ',' in var: clean = var.replace(' ', '') cleanList = clean.split(',') return cleanList else: 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.
regards
Subscribe to:
Posts (Atom)