That took a couple of hours but I cut out about 500 lines of code from the COMRigToolBox script I'm still working on.. I'm still only halfway done with the tool, but I need to go back and do this cleaning.. The menu is slowly being fleshed out in Visio, while I continue with the actual scripting.. Definitely not going to beat my 1 month deadline I had, but at the same time I definitely haven't been wasting time.. I've been creating and refining alot of code to create the tool I want.. I'm pretty damn sure once I'm done with this, my rigging will be 10 times faster than the rigging by hand I do now. Well I'll be finishing the arm stuff tomorrow.. Then moving onto the leg scripts tomorrow..
I'm an animator. Always trying to learn more. I hope writing it down will help me.
Thursday, April 14, 2011
Reducing my code..
Soo figured out how to reduce my procedures further in my new toolbox script.. Going back right now to rewrite alot of the code... I'm hoping to be done with the rewrite later tonight.. Currently its at..
1875 lines
78kb
Lets see the new numbers I come up with.
1875 lines
78kb
Lets see the new numbers I come up with.
Tuesday, April 5, 2011
scripts update
Soo the first iteration on my IK/FK Tool is done.. It does IK and FK rigs separately as well as puts them together. I finished the main stuff on friday, but I took the weekend to clean up the code and also put in other stuff like the master rig buttons. The master rig stuff really wasn't neccessary for this tool, but when I start work on the auto rigger sometime next week, it will be.. So I decided to do it now and start testing it out with IK/FK scripts.
Basically I create a "master" rig from a skeleton. The original is parent constrained to the master rig. The master rig is in turn parent constrained to all the other rigs, and it has attr to blend to eitehr one. So nothing ever touches the original other. like IK/FK, that makes it follow whatever rig its connected to .. Most people use this with IK/FK, but in this way I can use it with any number of rigs I decide to connect.. whether it be a mocap skel that takes mocap data, or any other special rigs. you can see below what I have in mind.
Anyhow so I automated these procedures.. I've tested them out on the tf2 models and they seem to be holding up to testing. The window is not the final thing at all. I just have my many procs in buttons, so I can test stuff out.. I'm not spending too much time on the UI, cause I would like to put all these tools in one big rigging "toolbox." I kinda have it in my head and I'll post in the next blog once I have the idea more solidified.
Anyhow I'm going to continue along with this tool.. So far the IK/FK tools help in creating legs, but I'm going to adapt it to making arms. Since most if not all the procedures are done, I'm not sure how much this next version of the IK/FK setup is gonna take.. I'm hoping just a day or two, but we'll see.
Subscribe to:
Posts (Atom)