Animation Import Script for Blender 2.77
|4 min read
1
0
1
Recommended Journals
Commissions 2019 CLOSED
Rules: - you may only buy up to 3 com's at a time - i will start on the commission once money or points are received - i will take my time on this commission, please do not rush me unless its been awhile and i may of forgot. -i have rights to deny you (mainly if i cannot draw the character or not comfortable drawing it) - digital references only -you can ask about other types of commissions if i missed any - some commissions have options (if you want a sketchy commission the price is lowered) Feral: Fullbody feral Sketchy lines + detailed shading 16$ Fully liked + detailed shading 20$ Anthro:Fullbody Anthro Sketchy + detailed sh
Genos: VR Tails and Wolf marks 7/13
Updates: Offer on these Very Rare Tailed Kids, one has an Uncommon mark and a Modifier. Art samples are only ideas, if you want 'Design Approval' ready files, let me know there is an extra cost. 1) (Female - Vayron - Puller - Healthy) F: Lisse Coat T: Bear Ears, Kitsune Tail, Feline Eyes P: Snowflake Dappled Flaxen Ash with Bloodmark G: Ash+nSwf/nBm/nDp/nFl 2) (Male - Vayron - Runner - Healthy) F: Lisse Coat T: Long Ears, Whip Tail, Feline Eyes P: Oriental Freckled Coin G: Coi+Or/Fr Breeding: https://www.deviantart.com/comments/1/804026225/4751851237 1) (Male - Vayron - Puller - Healthy) F: Lisse Coat T: Draco Ears, Tailless, Fe
DRAW-MY-SONA contest 2 [$200 prize - CLOSED]
edit: I have to put this out there for only extending it twice I guess but^ -- I previously did a draw-my-sona/draw-my-oc contest with $200 in prizes .. aND GUESS WHAT I'm doin it again this spring current ending date (MOST LIKELY will be subject to change/extension later on): February 28, 2019 now MAY 31, 2019  RULES/DISCLAIMERS 1. draw them correctly, it's not hard if you put a lil effort into it 2. no begging or guilt-tripping for the win 3. no copying other artists nor tracing. don't copy/heavily reference other things for this 4. you will be allowing me to use the art even if you don't win/place. please know this!! any art o
Featured in groupsSee All
444 Views|1 Today


September 20, 2018:

I now have a better version of the Blender 277 animation import script for "The Movies." 

The more I learn about the new Blender the more I like it, although I still have a long way to go to use it efficiently.  The best thing about it is the availability of a large community of current users who are cranking out tutorials and answering questions for users on message boards.  The process of learning about the new Blender has actually increased my understanding of how the old (2.49b) version works.

In order to complete the current script, there were two major difficulties to overcome.  The first one was the absence of a simple file selector dialog.  Apparently you are expected to write your own, but that is a really big step.  Fortunately, if you dig through the manuals, you will eventually find some sample code which you can incorporate into your own script application and that is what I have done in this second version of "load_anm." 

The second big problem I had in developing this prototype script was the absence of the ID property browser which comes installed in 2.49b.  The animation files may contain bone animations as well as prop animations.  The prop animations are tagged with "group names" which match the group names in the mesh files.  The mesh import script for 2.49 associates these names with the mesh object as custom properties and you can use view these names in the ID property browser.   When importing the ANM file into blender, you can use these group names to identify which prop animation data goes with which object.

When you open the blend file in blender 2.7, the group names are still there, but without an ID property browser, the only way to access them is using python code.  You can do this interactively in the python console or you can write a script to do it for you.  It would be nice if some one would write an ID property browser for Blender 2.7; the old code can be found in the Blender 2.49 scripts folder.

Anyway, the latest animation import script for Blender 2.7 has a file selector and it can handle props.  In order to use it, you have to import the mesh objects from "The Movies" using Blender 2.49 and save them as blend files.  You can then open the blend in Blender 2.7 to run this script.

This script works much like the old one.  When importing a bone animation, it uses the number of bones in the armature to determine which armature to apply the data to, and when importing a prop animation, it uses the object group name (grpName) to identify the prop.  If there is no matching prop, the script creates an "Empty" object and applies the animation data to it.  Many prop animation sets include data that is not used in a particular scene, so you can delete these  unused empties after the import.

One major difference between this script and importanm(5.1) is the "append" function which required setting a flag in the ID property browser.  In load_anm, running in Blender 2.7, the animation is always keyframed starting at the current frame start setting.  To append animations together, set the start frame to the end of the previous animation before running the script.  Then you can set it back to 1 to play the entire sequence of animations.  The demo video posted above shows several machine gun poses featuring Woody and the AK47 prop.

The scripts are included in this zip.








Recommended Journals
Commissions 2019 CLOSED
Rules: - you may only buy up to 3 com's at a time - i will start on the commission once money or points are received - i will take my time on this commission, please do not rush me unless its been awhile and i may of forgot. -i have rights to deny you (mainly if i cannot draw the character or not comfortable drawing it) - digital references only -you can ask about other types of commissions if i missed any - some commissions have options (if you want a sketchy commission the price is lowered) Feral: Fullbody feral Sketchy lines + detailed shading 16$ Fully liked + detailed shading 20$ Anthro:Fullbody Anthro Sketchy + detailed sh
Genos: VR Tails and Wolf marks 7/13
Updates: Offer on these Very Rare Tailed Kids, one has an Uncommon mark and a Modifier. Art samples are only ideas, if you want 'Design Approval' ready files, let me know there is an extra cost. 1) (Female - Vayron - Puller - Healthy) F: Lisse Coat T: Bear Ears, Kitsune Tail, Feline Eyes P: Snowflake Dappled Flaxen Ash with Bloodmark G: Ash+nSwf/nBm/nDp/nFl 2) (Male - Vayron - Runner - Healthy) F: Lisse Coat T: Long Ears, Whip Tail, Feline Eyes P: Oriental Freckled Coin G: Coi+Or/Fr Breeding: https://www.deviantart.com/comments/1/804026225/4751851237 1) (Male - Vayron - Puller - Healthy) F: Lisse Coat T: Draco Ears, Tailless, Fe
DRAW-MY-SONA contest 2 [$200 prize - CLOSED]
edit: I have to put this out there for only extending it twice I guess but^ -- I previously did a draw-my-sona/draw-my-oc contest with $200 in prizes .. aND GUESS WHAT I'm doin it again this spring current ending date (MOST LIKELY will be subject to change/extension later on): February 28, 2019 now MAY 31, 2019  RULES/DISCLAIMERS 1. draw them correctly, it's not hard if you put a lil effort into it 2. no begging or guilt-tripping for the win 3. no copying other artists nor tracing. don't copy/heavily reference other things for this 4. you will be allowing me to use the art even if you don't win/place. please know this!! any art o
Featured in groupsSee All
anonymous's avatar
Join the community to add your comment. Already a deviant? Sign In
Comments (1)
MoviesBandit's avatar
Fantastic. Thank you very much for everything you do.
I hope Blender 3 isn't another complete change.
Reply  ·  
© 2019 DeviantArt
All Rights reserved