Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Python plugin animation not rendering

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 225 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 01/05/2014 at 02:41, xxxxxxxx wrote:

      I have been struggling with this for a few hours now.
      I have created a simple Python plugin that generates a simple cube, the same as the default Python Generator object.

      In the Python Generator version, if you uncheck Optimize Cache, and the code contains some matrix transformation in time, like multiplying the matrix with a MatrixMove vector with the current frame as vector.x, the object renders with the animation, as expected.

      Now I translated the same code into a Python plugin. In the viewport, the object animates (I already added the self.SetOptimizeCache(False) in the  def __init__(self) : )
      When I try to make a preview or render the scene, the object renders without animation.

      The question, is there an additional flag that I need to set in the Python plugin to get the same behavior as the unchecked Optimize Cache from the Python Generator object?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 01/05/2014 at 03:20, xxxxxxxx wrote:

        Solved! 
        Answering my own question, the problem seems to be coming from the current frame variable. If I use a manually incrementing variable instead, the animation renders normally. Bug?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post