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 <[email protected]> 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. <[email protected]>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 <[email protected]>
>>
>> > On Fri, Sep 30, 2011 at 8:02 AM, François T. <[email protected]
>> > >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
>> > [email protected]
>> > http://lists.blender.org/mailman/listinfo/bf-committers
>> >
>>
>>
>>
>> --
>> ____________________
>> François Tarlier
>> www.francois-tarlier.com
>> www.linkedin.com/in/francoistarlier
>> _______________________________________________
>> Bf-committers mailing list
>> [email protected]
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to