[Bf-committers] obj location & matrix

Matt Ebb matt at mke3.net
Fri Sep 30 01:33:02 CEST 2011


Oh, my mistake - I've actually completely misunderstood your original
question (serves me right for replying without coffee..)

To get a new matrix, you might need to update the depgraph via
scene.update() etc. after you've modified the object's position.

cheers

Matt


On Fri, Sep 30, 2011 at 9:26 AM, François T. <francoistarlier at gmail.com>wrote:

> oups sorry didn't even know about it. I'll subscribe to it then.
> just one thing though, so this is updated only if the user moved the object
> himself, but not if we change position via py script ? that's what you are
> saying ?
>
> thx
>
> 2011/9/29 Matt Ebb <matt at mke3.net>
>
> > On Fri, Sep 30, 2011 at 8:02 AM, François T. <francoistarlier at gmail.com
> > >wrote:
> >
> > >
> > > > empty_tmp.matrix_world.to_translation().x
> > >
> >
> > afaik, matrix.to_translation() returns a vector copy of the translation
> > component. It's not modifying the values in the original matrix.
> >
> > btw, bf-python mailing list is better for this :)
> >
> > matt
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-committers
> >
>
>
>
> --
> ____________________
> François Tarlier
> www.francois-tarlier.com
> www.linkedin.com/in/francoistarlier
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list