[Bf-python] RenderEngine API - fractional frame

Matt Ebb matt at mke3.net
Wed Jul 27 04:27:37 CEST 2011


Hi, what you've written below is looking at the geometry data itself. If
you've animated a Plane object moving you'll probably need to print the
plane's object level transformation - should be something like
bpy.data.objects["Plane"].location[0]

bpy.data.meshes is looking at the mesh datablocks (geometry level data).

cheers

Matt


On Wed, Jul 27, 2011 at 12:07 PM, Nicholas Yue <yue.nicholas at gmail.com>wrote:

> On 26 July 2011 22:00, Nicholas Yue <yue.nicholas at gmail.com> wrote:
> > I ran a test query vert.co[] data of a simple plane with 4 points at
> > fractional frame, the returned value is the same as on the integer frame.
> >
> > Looks like either I may have missed calling some required update-status
> > function as even basic geometry (non-sim) is not quiet right.
> >
>
> Here is the printout from the Blender Python console
>
> >>> scene.frame_set(2,0.2)
> >>> print(bpy.data.meshes["Plane"].vertices[0].co)
> Vector((0.9999999403953552, 0.9999999403953552, 0.0))
>
> >>> scene.frame_set(3)
> >>> print(bpy.data.meshes["Plane"].vertices[0].co)
> Vector((0.9999999403953552, 0.9999999403953552, 0.0))
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20110727/a6044864/attachment.html>


More information about the Bf-python mailing list