[Bf-committers] obj location & matrix

Campbell Barton ideasman42 at gmail.com
Fri Sep 30 09:41:20 CEST 2011


This has come up a few times, documented it in the gotcha's section:
http://www.blender.org/documentation/blender_python_api_2_59_3/info_gotcha.html#no-updates-after-setting-values

On Fri, Sep 30, 2011 at 9:33 AM, Matt Ebb <matt at mke3.net> wrote:
> 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
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell


More information about the Bf-committers mailing list