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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Mograph Speed to Color

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 412 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 22/11/2017 at 16:37, xxxxxxxx wrote:

      Originally posted by xxxxxxxx

      MODATA_LASTMAT doesn't give you the previous matrix

      I just ran into this as well. It seems very odd to me, because the documentation says it should.

      MODATA_LASTMAT     Matrix     Previous frame particle matrix.

      Yet, this is what I get when I print each of these matrices:

        
      ---   
      Frame 1   
      Current: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 4.67, -211.111))   
      Last: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (0, 0, 0))   
      Start: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 0, -211.111))   
        
      ---   
      Frame 2   
      Current: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 4.377, -211.111))   
      Last: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (0, 0, 0))   
      Start: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 0, -211.111))   
        
      ---   
      Frame 3   
      Current: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 4.039, -211.111))   
      Last: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (0, 0, 0))   
      Start: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 0, -211.111))   
        
      ---   
      Frame 4   
      Current: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 3.709, -211.111))   
      Last: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (0, 0, 0))   
      Start: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 0, -211.111))   
        
      ---   
      Frame 5   
      Current: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 3.433, -211.111))   
      Last: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (0, 0, 0))   
      Start: Matrix(v1: (1, 0, 0); v2: (0, 1, 0); v3: (0, 0, 1); off: (-211.111, 0, -211.111))   
      

      documentation

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

        On 01/12/2017 at 02:57, xxxxxxxx wrote:

        Hi Donovan,

        sorry, it took so long. I needed reassurance from development side.
        We need to fix our documentation. MODATA_LASTMAT is for internal usage, only.
        Douwe's approach is still your best bet.

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

          On 01/12/2017 at 21:47, xxxxxxxx wrote:

          Hi Andreas,

          Thanks for the feedback!

          - Donovan

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