Dancing with the Python
by, 06-29-2010 at 05:01 AM (979 Views)
Just a little blog entry about Python scripting. I hope you didn't come here looking for snakes or for pictures of me dancing with them
I have been making a lot of scripts lately, as in the last several months. Some are old things that I tried to do months or years ago and at the time just didn't have the technical know-how to accomplish.
It's funny how the mind works, or let me say more specifically... how MY mind words. Sometimes it just takes a while for things to click. On more than one occasion I say "Bleh" and kinda walk away for a bit. Yes, I actually say "Bleh" out loud.
Math wasn't my strongest suit back in school, which is when Sabertooth Tigers were still roaming the earth. Lets make that Algebra. Never had a problem with the basic things and those I obviously used on a daily basis. Algebra though was tricky. I didn't see a lot of direct application in what I was learning at the time so without that, I just said "Bleh".
However, when I started writing scripts, I could see the results. They were doing something and then all the logic started to make sense. I've also gotten better and more efficient at stringing the code together, even when I go back a few months and sometimes even weeks to see what I did before.
Sometimes it's a real chore getting whats in your head into the code and making it bend to your will. "No no no, you silly script. I really wanted THIS". At other times you have to work around limitations, which happens a LOT with Poser Python. See, not everything that you can do in Poser (like commands) is "exposed" so you have to figure out how to go around it, even if you have to make your scripts create temporary files in order to wing it. It's challenging but in a fun, challenging way. You know, except for this big clump of hair I yanked out of my head the other day... not a fun scripting session...
Anyways, I have a lot of neat things that I have to get out my mind and into a script or two. I like to find solutions to typical Poser problems or discover new ways to make poser sessions flow better. Or "hey, yeah I like that idea there but I think I can make it just a wee bit more effective". Why can't I just save a whole pile of magnets at one time without checking all those little friggen boxes? Mwahaha, I can now
I think that in the near future you will see some of this things arrive at Runtime DNA. Camera Panel landed here and so did Scripts-Palette Master and there is surely more to come.
Some of them will be in-house tools... "We must keep some secrets. yesssss... precious...."
Some of them will be utilities encorporated into clothing, figure or deformer packages. If I can reasonably make it easier to use, without great issues, then it will probably go in there.
Anyways, scripting has been on my mind a lot and I just feel like musing about it a bit. I often get fascinated with it.
Thanks for reading!