The blog has been retired - it's up for legacy reasons, but these days I'm blogging at blog.theodox.com. All of the content from this site has been replicated there, and that's where all of the new content will be posted. The new feed is here . I'm experimenting with crossposting from the live site, but if you want to keep up to date use blog.theodox.com or just theodox.com
Sunday, June 12, 2016
I've finally completed rolling over to to a new, self-hosted blog platform!
The process took a bit longer than I wanted, mostly because it web development remains a messy, iterative process - at least for me. Since I ended up unifying both the blog and the old Character Rigger's Cookbook as well as on old markdown wiki, I had to do a lot of little scripts to groom the old content into a consistent format and linking strategy. Add in more than a modicum of CSS noodling and whatnot and my 'couple of weekends' project turned into a couple of months.
However all that is behind me now, and all my future updates are going to be coming up at theodox.github.io (you can also use www.theodox.com). If you're subscribed to the current feed, you should switch over to either http://theodox.github.io/feeds/atom.xml or http://theodox.github.io/feeds/rss.xml, depending on your reader; one of the nice side effects of the switch is that the new feeds are much cleaner than Blogger's -- no more CSS gibberish instead of article summaries, thank you very much!)
I'm going to leave this site intact, and I'll try to keep monitoring comments and so on here, but the new site is going to be where all the news stuff comes out. I'm also going to change the blog.theodox.com redirect so it goes to the new site, so if you're using that in a blogroll you won't have to update it.
PS. I had to touch a lot of content during the migration: there are about 150 blog posts, several dozen wiki pages, and a bunch of articles that all had to be repointed and I'd be pretty surprised if nothing odd slipped through. Please let me know using the comments at the new site so I can fix up anything that's confusing or misleading.
So, here one more link to the new site, just in case. Hope to see you there!
Thursday, May 12, 2016
We're looking for one TA with good python chops to ride herd on the python/maya toolkit, and another TA with good shading and GPU skills to help us wring the most out of the Unreal Engine. Details of both positions are in the link above.
Contact me directly or apply via the Undead Labs website!
Thursday, April 28, 2016
I've added a couple of minor features as well. There's a bunch of operators for counting things -- for example you can get the vertex count of meshes with something like
Meshes().get(VertCounts). On a somewhat related note all streams have a
count()function which will return the length of the stream, and a
first()method which will pull the head item from a stream -- which is handy if you expect to narrow down to a single item and don't want a single-item iterable.
Last but not least I'd love to hear from the community about good minq hacks -- I'll be happy to add cool ones to the examples file. I'd also appreciate any bugs you find going into the issues page!
Sunday, April 3, 2016
Wherein our author uses blogger to post a blog post blogging about how much he dislikes blogger.It's late on a Sunday night and I need to get this off my chest.
I really have come to loathe Blogger. The sluggish, overly complicated, JS heavy theme, the sluggish, too-complex-for-speed-but-too-simple-for-interesting-stuff editor, and the way it stuffs stylesheet info into the RSS feed come to mind. but overall... it's just gotten on my nerves.
So, I'm probably going to transition the blog over to something else. My current leading candidate for a site generator is Pelican, a Python based static html site generator which seems to be powerful enough for my not-too-complex needs. Jekyll is another candidate but all things being equal I'd rather stick with a Python-based setup and the final output will be pretty much the same.
I'm a tad nervous about what happens to old links and traffic so I assume that I'll probably transition over gradually with duplicate postings for a while. If any of you have done something similar in the past I'd be curious to hear about how it went.
In the meantime, I'll just add that I've been dealing with the transition in typical TA fashion. I hacked up a script to download all of the existing blog posts as XML, then used the html2text module on the cheese shop to convert the HTML from the posts into markdown text. I'm still going to have to hand-finish every pieces, cleaning up dead links and missing images and so on: I'm sure it'll be a TA-style spit'n'bailing-wire party for a while yet.
In the meantime I'm all ears if anybody has more suggestions for site generators, or a reason to go with something other than a static site on github.io, please let me know in the comments!
update: the new site is here
Saturday, March 26, 2016
For those of you who’ve been using mGui to speed up and simplify your Maya gui coding, there are some interesting changes on the horizon. Although I’m not entirely ready to release the changes I have in mind they are mostly sitting in their own branch in the Github repo.
The upcoming version introduces some new idioms - in particular, it gets rid of the need for explicitly setting keys on new controls to get access to nested properties. In the first version of mGui you’d write something like this:
with gui.Window('window', title = 'fred') as example_window: with VerticalForm('main') as main: Text(None, label = "Items without vertex colors") lists.VerticalList('lister' ).Collection < bind() < bound with HorizontalStretchForm('buttons'): Button('refresh', l='Refresh') Button('close', l='Close')
With the new refactor that looks like this:
with gui.Window('window', title = 'fred') as example_window: with VerticalForm() as main: Text(label = "Items without vertex colors") lister = lists.VerticalList() lister.collection < bind() < bound with HorizontalStretchForm() as button_row: refresh = Button( label='Refresh') close = Button(label='Close')
The big advantage here is that those local variables are not scoped exclusively to the layout context managers where they live, which makes it easy to control when and where you hook up your event handlers: In the above example you could defer all the bindings and event handlers to the end of the script like this:
with gui.Window('window', title = 'fred') as example_window: with VerticalForm() as main: Text(label = "Items without vertex colors") lister = lists.VerticalList() with HorizontalStretchForm() as button_row: refresh = Button( label='Refresh') close = Button(label='Close') lister.collection < bind() < bound refresh.command += refresh_def close.command += close_def
So far I’m really liking the new idiom, particularly eliminating the extra quotes and redundant
None keys. However this is a minorly breaking change: in some cases, old code which relied on the key value to name and also label a control at the same time will when the keys become redundant. Moreover I bit the bullet and started to refactor the entire mGui module to use correct pep-8 naming conventions – in particular, member variables are no longer capitalized. So if you have code outside of mGui this will introduce some issues. When I converted my own code, most of the changes could be done with a regular expression but there were a few danglers.
I think the changes are worth the effort, but I’d be really interested in hearing from users before trying to bring the new mGui branch back into the main line. It should actually be possible to write a script that fixes most existing code automatically, that’s something we could refine collaboratively.Please let me know in the comments or by opening an issue on the GitHub site if you have comments or plans. As always, bug fixes and pull requests always entertained!