Yes it works, and no there isn't another accurate way because there can be dependencies within objects that need to be calculated to get the right values (drivers etc).<br><br>In my exporter I don't continually scrub through frames, rather I precalculate it all in one go beforehand, to limit the number of times it needs to set the subframe. I store all these animated values in a dictionary - this comes at the expense of memory, especially if you've got lots of high-poly deforming objects, but it's not too bad so far. At least with renderman you can export an object to an archive once individually to avoid doing the entire scene in one go.<br>
<br>See here:<br><a href="http://www.pasteall.org/23730/python">http://www.pasteall.org/23730/python</a><br><br>matt<br><br><br><div class="gmail_quote">On Sat, Aug 6, 2011 at 9:20 AM, Doug Hammond <span dir="ltr"><<a href="mailto:doug.hammond@luxrender.net">doug.hammond@luxrender.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>I'm also having issues supporting motion blur for external render engines.</div><div>
<br></div>Does <span style="font-family: arial,sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">frame_set(integer_frame,</span><span style="font-family: arial,sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">fractional frame) actually work from a RenderEngine.render() context?</span><div>

<font face="arial, sans-serif">(all RNA write and operator calls are disabled).<br></font><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Is there any other way to get object transforms for arbitrary time values instead of continually scrubbing through frames on export?</font></div>

<div><font face="arial, sans-serif">(which is a really slow and tedious method to use; feels really dirty).</font></div><div><font face="arial, sans-serif"><br></font></div>
<div><font face="arial, sans-serif">Regards,<br clear="all"></font><font color="#888888"><span style="font-family: 'courier new',monospace;"><div>Doug Hammond </div></span></font><div><div></div><div class="h5"><br>

<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 3:27 AM, Matt Ebb <span dir="ltr"><<a href="mailto:matt@mke3.net" target="_blank">matt@mke3.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

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]<br>


<br>bpy.data.meshes is looking at the mesh datablocks (geometry level data).<br><br>cheers<br><font color="#888888"><br>Matt</font><div><div></div><div><br><br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 12:07 PM, Nicholas Yue <span dir="ltr"><<a href="mailto:yue.nicholas@gmail.com" target="_blank">yue.nicholas@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On 26 July 2011 22:00, Nicholas Yue <<a href="mailto:yue.nicholas@gmail.com" target="_blank">yue.nicholas@gmail.com</a>> wrote:<br>



> I ran a test query <a href="http://vert.co" target="_blank">vert.co</a>[] data of a simple plane with 4 points at<br>
> fractional frame, the returned value is the same as on the integer frame.<br>
><br>
> Looks like either I may have missed calling some required update-status<br>
> function as even basic geometry (non-sim) is not quiet right.<br>
><br>
<br>
Here is the printout from the Blender Python console<br>
<br>
>>> scene.frame_set(2,0.2)<br>
>>> print(bpy.data.meshes["Plane"].vertices[0].co)<br>
Vector((0.9999999403953552, 0.9999999403953552, 0.0))<br>
<br>
>>> scene.frame_set(3)<br>
>>> print(bpy.data.meshes["Plane"].vertices[0].co)<br>
Vector((0.9999999403953552, 0.9999999403953552, 0.0))<br>
<div><div></div><div>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br>