[Bf-python] Bf-python Digest, Vol 38, Issue 4

Campbell Barton cbarton at metavr.com
Sun Sep 9 05:04:11 CEST 2007


First import the armature twice, re-arrange the hierarchy of 1, then 
using constraints on the bones (in posemode) to get the messed up boens 
to match the original locations..

If this is too much or you dont understand what Im saying, look into 
Blender armatures, rigging and constraints, there would be some 
tutorials available on these topics.

Pooja Verlani wrote:
> Hi,
> I tried changing the root in BVH file using the edit mode in Armature 
> animation. There when I changed the parent of chest  to be null and the 
> parent of hip to be chest, the hierarchy did change, but then the 
> animations were looking weird. As all 4 , hip, head, left Shoulder, and 
> right shoulder were stick on one end of the chest so hip was connected 
> at the neck of the armature, and this looks too deformed.
> I think probably if this norm of having bone's one end as parents and 
> the other end as childs can change then by assigning a bone as root we 
> can have children to that bone at both the ends of the bone instead of 
> only at one end.
> Can you please let me know if there exists any such method where we can 
> assign one bone ("chest" in my case) as "root" bone and thus can get the 
> privilege of attaching children bones at both the ends of the root bone.
> Please give some light on this, because what I think is, if we don't 
> have any such way of having assigned the root privileges, we can't ever 
> have chest as the root bone.
> 
> Please help regarding this.
> 
> Thank you in anticipation,
> 
> Regards.
> 
> On 9/8/07, *Pooja Verlani* <pverlani at gmail.com 
> <mailto:pverlani at gmail.com>> wrote:
> 
>     Hi,
>     Thanks for the reply.
>     But as I am a newbie to Blender, Can you please let me know of a
>     tutorial or some forum where I can know how to modify the
>     hierarchy of bones and then constraining the bones that have altered
>     motion to the original armature.
>     Please Show me some guidelines on this.
> 
>     Thank you in anticipation,
>     regards.
> 
> 
>     On 9/7/07, * bf-python-request at blender.org
>     <mailto:bf-python-request at blender.org>*
>     <bf-python-request at blender.org
>     <mailto:bf-python-request at blender.org>> wrote:
> 
>         Send Bf-python mailing list submissions to
>                 bf-python at blender.org <mailto:bf-python at blender.org>
> 
>         To subscribe or unsubscribe via the World Wide Web, visit
>                  http://lists.blender.org/mailman/listinfo/bf-python
>         or, via email, send a message with subject or body 'help' to
>                  bf-python-request at blender.org
>         <mailto:bf-python-request at blender.org>
> 
>         You can reach the person managing the list at
>                 bf-python-owner at blender.org
>         <mailto:bf-python-owner at blender.org>
> 
>         When replying, please edit your Subject line so it is more specific
>         than "Re: Contents of Bf-python digest..."
> 
> 
>         Today's Topics:
> 
>            1. Re: Bf-python Digest, Vol 38, Issue 2 (Campbell Barton)
>            2. Re: Meeting reminder (Campbell Barton)
>            3. Re: Meeting reminder (Martin Poirier)
> 
> 
>         ----------------------------------------------------------------------
> 
> 
>         Message: 1
>         Date: Thu, 06 Sep 2007 22:12:40 +1000
>         From: Campbell Barton <cbarton at metavr.com
>         <mailto:cbarton at metavr.com>>
>         Subject: Re: [Bf-python] Bf-python Digest, Vol 38, Issue 2
>         To: Blender Foundation Python list < bf-python at blender.org
>         <mailto:bf-python at blender.org>>
>         Message-ID: < 46DFEEB8.8070404 at metavr.com
>         <mailto:46DFEEB8.8070404 at metavr.com>>
>         Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
>         You could do this in blender by importing the bvh twice, modify the
>         hierarchy of 1 and then constrain the bones that have altered
>         motion to
>         the original armature.
> 
>         However, there is no exporter for BVH, but you could export to
>         FBX, and
>         convert to BVH with some other app.
> 
> 
>         Pooja Verlani wrote:
>         >  Thanks for the replu....
>         >
>         >  I am confused as changing the root from hip to chest just not
>         changes
>         >  the names of the bones, but changes the hierarchy of the BVH
>         structure tree.
>         >  I mean to say if I change from hip to chest. "Hip" as root has 3
>         >  children which are chest,left upper leg and right upper leg.
>         >  But "chest" as root will have left shoulder bone, right
>         shoulder bone
>         >  and hip as children.
>         >  Please explain how the arragement of the bone angles will be
>         the same.
>         >  Wont I have to calculate the rotation angles again?
>         >  Please let me know.
>         >
>         >  Thanks in anticipation,
>         >  Pooja
>         >
>         >  >Have you tried opening the BVH end editing the names in a
>         text editor?
>         >  >this should work fine just make sure there are no naming
>         collisions
>         >
>         >
>         >
>         >  On 9/5/07, * bf-python-request at blender.org
>         <mailto:bf-python-request at blender.org>
>         >  <mailto: bf-python-request at blender.org
>         <mailto:bf-python-request at blender.org>>* <
>         bf-python-request at blender.org <mailto:bf-python-request at blender.org>
>         >  <mailto:bf-python-request at blender.org
>         <mailto:bf-python-request at blender.org>>> wrote:
>         >
>         >     Send Bf-python mailing list submissions to
>         >               bf-python at blender.org
>         <mailto:bf-python at blender.org> <mailto: bf-python at blender.org
>         <mailto:bf-python at blender.org>>
>         >
>         >     To subscribe or unsubscribe via the World Wide Web, visit
>         >             http://lists.blender.org/mailman/listinfo/bf-python
>         >     or, via email, send a message with subject or body 'help' to
>         >             bf-python-request at blender.org
>         <mailto:bf-python-request at blender.org>
>         >     <mailto: bf-python-request at blender.org
>         <mailto:bf-python-request at blender.org>>
>         >
>         >     You can reach the person managing the list at
>         >              bf-python-owner at blender.org
>         <mailto:bf-python-owner at blender.org>
>         >     <mailto: bf-python-owner at blender.org
>         <mailto:bf-python-owner at blender.org>>
>         >
>         >     When replying, please edit your Subject line so it is more
>         specific
>         >     than "Re: Contents of Bf-python digest..."
>         >
>         >
>         >     Today's Topics:
>         >
>         >        1. Re: Regarding: Changin the root in Armature (Campbell
>         Barton)
>         >
>         >
>         >    
>         ----------------------------------------------------------------------
>         >
>         >     Message: 1
>         >     Date: Wed, 05 Sep 2007 10:24:40 +1000
>         >     From: Campbell Barton < cbarton at metavr.com
>         <mailto:cbarton at metavr.com> <mailto:cbarton at metavr.com
>         <mailto:cbarton at metavr.com>>>
>         >     Subject: Re: [Bf-python] Regarding: Changin the root in
>         Armature
>         >     To: Blender Foundation Python list < bf-python at blender.org
>         <mailto:bf-python at blender.org>
>         >     <mailto: bf-python at blender.org <mailto:bf-python at blender.org>>>
>         >     Message-ID: < 46DDF748.8070308 at metavr.com
>         <mailto:46DDF748.8070308 at metavr.com>
>         >     <mailto:46DDF748.8070308 at metavr.com
>         <mailto:46DDF748.8070308 at metavr.com>>>
>         >     Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>         >
>         >     Have you tried opening the BVH end editing the names in a
>         text editor?
>         >     this should work fine just make sure there are no naming
>         collisions
>         >
>         >     Pooja Verlani wrote:
>         >      > Hi all,
>         >      >
>         >      > I am facing a problem with blender BVh import functions.
>         I want to
>         >      > modify my bvh file.
>         >      > I have a bvh file with "hips" as the root and I want to
>         change the
>         >      > "chest" as the root, and hence forth, hierarchy and the
>         values
>         >     change. I
>         >      > want to save the new BVH file.
>         >      > Can you please let me know how I can do this in blender.
>         Or are
>         >     there
>         >      > any scripts available for this?
>         >      >
>         >      > Please let me know as soon as possible.. I have been
>         stuck for
>         >     long :-)
>         >      >
>         >      > thank you,
>         >      > Regards.
>         >      >
>         >      >
>         >      >
>         >    
>         ------------------------------------------------------------------------
>         >
>         >      >
>         >      > _______________________________________________
>         >      > Bf-python mailing list
>         >      > Bf-python at blender.org <mailto:Bf-python at blender.org>
>         <mailto: Bf-python at blender.org <mailto:Bf-python at blender.org>>
>         >      > http://lists.blender.org/mailman/listinfo/bf-python
>         >
>         >
>         >     --
>         >     Campbell J Barton (ideasman42)
>         >
>         >
>         >     ------------------------------
>         >
>         >     _______________________________________________
>         >     Bf-python mailing list
>         >     Bf-python at blender.org <mailto:Bf-python at blender.org>
>         <mailto: Bf-python at blender.org <mailto:Bf-python at blender.org>>
>         >     http://lists.blender.org/mailman/listinfo/bf-python
>         <http://lists.blender.org/mailman/listinfo/bf-python>
>         >
>         >
>         >     End of Bf-python Digest, Vol 38, Issue 2
>         >     ****************************************
>         >
>         >
>         >
>         >
>         ------------------------------------------------------------------------
>         >
>         >  _______________________________________________
>         >  Bf-python mailing list
>         >  Bf-python at blender.org <mailto:Bf-python at blender.org>
>         >  http://lists.blender.org/mailman/listinfo/bf-python
>         <http://lists.blender.org/mailman/listinfo/bf-python>
> 
> 
>         --
>         Campbell J Barton (ideasman42)
> 
> 
>         ------------------------------
> 
>         Message: 2
>         Date: Thu, 06 Sep 2007 22:36:49 +1000
>         From: Campbell Barton < cbarton at metavr.com
>         <mailto:cbarton at metavr.com>>
>         Subject: Re: [Bf-python] Meeting reminder
>         To: Blender Foundation Python list <bf-python at blender.org
>         <mailto:bf-python at blender.org>>
>         Message-ID: < 46DFF461.3040709 at metavr.com
>         <mailto:46DFF461.3040709 at metavr.com>>
>         Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
>         Hi, could we have a meeting this Saturday? we didn't finish all the
>         topics last meeting so we can continue on with
> 
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Keyframe_Attributes
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Keyframe_Attributes>
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Object_Children
> 
>         Recently I went through and wrote almost all functionality
>         decided last
>         meeting into the py-devel branch so we are up to date.
> 
> 
>          From the meeting minutes
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API/Meetings#IRC_PyAPI_Meeting_19_August_2007
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API/Meetings#IRC_PyAPI_Meeting_19_August_2007>
> 
>         "These types can be accessed from the functions that used them. eg.
>         bpy.data.unpack.UnpackModes.*"
> 
>         This is not possible with PyCFunction's. If we really want this we'd
>         have to write our own callable types - probably not worth it, so we
>         should find some other solution maybe bpy.data.UnpackModes?
> 
>         - Cam
> 
>         Campbell Barton wrote:
>         >  Just a reminder that theres a meeting coming up this Saturday,
>         >  could all involved review the listed topics beforehand.
>         >  - Thanks
>         >
>         >  Campbell Barton wrote:
>         > > Hi guys, from discussion with other python-devs heres my
>         proposal for
>         > > the API planning and review process that ensures this project
>         gets finished.
>         > >
>         > > - Meetings
>         > > Hold meetings once every 2 weeks, on a Saturday at the same
>         time as the
>         > > main Sunday #blendercoders meeting for approx 1.5 hours, no
>         more then 2.
>         > > Meetings are held in #blenderpython and will be announced on the
>         > > blender-python mailing list.
>         > >
>         > > - Proposals
>         > > Discussion can happen on this list or in the chat room, but
>         proposals
>         > > for the new API are to be posted here for review.
>         > >
>         > >
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API>
>         > >
>         > >
>         > > - Review
>         > > In the 2 weeks before the meeting, around 4 proposals from
>         the wiki will
>         > > be raised for discussion,
>         > > everyone involved needs to read these proposals, before the
>         meetings are
>         > > held discussion in the mailing list is good and parts of the
>         proposal
>         > > that are unclear should be fixed.
>         > >
>         > > At the meeting we can then make a decision on each proposal, its
>         > > important everyone has read the proposals so the meeting can
>         run smoothly.
>         > >
>         > >
>         > >
>         > >
>         > > - Last Meeting Minutes
>         > >
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API/Meetings#IRC_PyAPI_Meeting_5_August_2007
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API/Meetings#IRC_PyAPI_Meeting_5_August_2007>
>         > >
>         > > - Next meeting!
>         > > 18th of august
>         > >
>         > > Items for Review
>         > >
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#API_Migration
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#API_Migration>
>         > >
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Extending_Constructors
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Extending_Constructors>
>         > >
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Keyframe_Attributes
>         > >
>         http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Object_Children
>         <http://wiki.blender.org/index.php/Rewriting_the_2.4x_BPython_API#Object_Children>
>         > >
>         > >
>         > > We got through a lot of API Migration last meeting but theres
>         some areas
>         > > we didn't cover.
>         > >
>         > > so far these are all my proposals, it would be great if
>         others would
>         > > propose other improvements as well.
>         > >
>         >
>         >
> 
> 
>         --
>         Campbell J Barton (ideasman42)
> 
> 
>         ------------------------------
> 
>         Message: 3
>         Date: Thu, 6 Sep 2007 07:38:05 -0700 (PDT)
>         From: Martin Poirier <theeth at yahoo.com <mailto:theeth at yahoo.com>>
>         Subject: Re: [Bf-python] Meeting reminder
>         To: cbarton at metavr.com <mailto:cbarton at metavr.com>, Blender
>         Foundation Python list
>                 <bf-python at blender.org <mailto:bf-python at blender.org>>
>         Message-ID: < 243770.34672.qm at web51302.mail.re2.yahoo.com
>         <mailto:243770.34672.qm at web51302.mail.re2.yahoo.com>>
>         Content-Type: text/plain; charset=iso-8859-1
> 
> 
>         --- Campbell Barton <cbarton at metavr.com
>         <mailto:cbarton at metavr.com>> wrote:
> 
>         >  Hi, could we have a meeting this Saturday? we didn't
>         >  finish all the
>         >  topics last meeting so we can continue on with
> 
>         I'll be there.
> 
>         Martin
> 
> 
> 
>         ____________________________________________________________________________________Ready
>         for the edge of your seat?
>         Check out tonight's top picks on Yahoo! TV.
>         http://tv.yahoo.com/
> 
> 
>         ------------------------------
> 
>         _______________________________________________
>         Bf-python mailing list
>         Bf-python at blender.org <mailto:Bf-python at blender.org>
>         http://lists.blender.org/mailman/listinfo/bf-python
> 
> 
>         End of Bf-python Digest, Vol 38, Issue 4
>         ****************************************
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python


-- 
Campbell J Barton (ideasman42)



More information about the Bf-python mailing list