Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. Leo_Saramago
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Leo_Saramago

    @Leo_Saramago

    I'm a Music Artist driven to bring 3D into my arsenal.

    1
    Reputation
    34
    Posts
    195
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Rio de Janeiro - Brazil Age 44

    Leo_Saramago Follow

    Posts made by Leo_Saramago

    • RE: Global Matrix - Trying to copy data from Mixamo Control Rig with Python

      Ok, now that I'm sure I've grabbed the proper data via GetMg(), can I apply SetMg() to each target joint and keyframe all properties at once for each frame? Or do I have to go thru each CTrack curve of my target joint and use SetMg() over and over again?

      Thanks, these answers have been very helpful!

      posted in Cinema 4D Development
      Leo_Saramago
    • RE: Global Matrix - Trying to copy data from Mixamo Control Rig with Python

      @mp5gosu and @ferdinand Thank you very much. Really helpful! Sorry for the delay. I'll perform a couple of tests and get back to you before closing this one. Soon, I promise.

      posted in Cinema 4D Development
      Leo_Saramago
    • RE: Global Matrix - Trying to copy data from Mixamo Control Rig with Python

      For testing purposes: I created a cube and gave it some keyframe animation, then baked it. Console shows the same values for every frame when I execute this simplified version of my original python code:

      import c4d
      
      def main():
          
          c4d.CallCommand(12501) #Moves Playhead to Start
          obj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_SELECTIONORDER) #Remember: Select Object in OM
          
          for i in range(10):
              mg = obj[0].GetMg()
              print (mg.off)
              c4d.CallCommand(12414) #Moves Playhead to Next Frame
      
      # Execute main()
      if __name__=='__main__':
          main()
      
      posted in Cinema 4D Development
      Leo_Saramago
    • RE: Global Matrix - Trying to copy data from Mixamo Control Rig with Python

      @Leo_Saramago I forgot to mention I have baked the animation in the _bind chain.

      posted in Cinema 4D Development
      Leo_Saramago
    • Global Matrix - Trying to copy data from Mixamo Control Rig with Python

      Hello, there!

      I would like to copy the animation I have on a Mixamo Control Rig to a different character. By different, I mean only the hierarchies and naming convention don't match.

      I'm having trouble with copying data from Mixamo Control Rig's _bind joint chain. Most curves and values can't be applied directly because the joints inside the Mixamo Rig have frozen values.

      That's why I'm going for GetMg() and SetMg(). I've tried looping within a frame range, but GetMg() always returns the same vectors. I even tried c4d.CallCommand(12414) inside a loop, but no luck. Any pointers?

      Thanks for your time,

      Leo

      posted in Cinema 4D Development
      Leo_Saramago
    • RE: R23's Execution Order

      It sure does answer the question.

      Thanks, Riccardo!

      posted in Cinema 4D Development
      Leo_Saramago
    • R23's Execution Order

      Hi! I'm aware Scene Nodes happen after Generators, but I was wondering if they go by the usual -499 to 499 evaluation ranges. Are these exposed in any nodes?

      Thanks for your time,

      Leo

      posted in Cinema 4D Development
      Leo_Saramago
    • RE: Maximize/Resize "Add Motion Clip" Window

      @zipit Thanks!

      posted in General Programming & Plugin Discussions
      Leo_Saramago
    • Maximize/Resize "Add Motion Clip" Window

      Hi! Is there a way to Maximize/Resize the "Add Motion Clip" window via Python since C4D's interface won't allow it? Thanks for your time.

      posted in General Programming & Plugin Discussions
      Leo_Saramago
    • RE: PYTHON - GetCustomDataTypeDefault(--- integer ---)

      Hello, @zipit ! I ended up using GetClone() to solve the AddUserData issue.

      A little after that, I found myself in a corner again: unfortunately, there's no way to retrieve Userdata selection in the Attributes Manager - that's why I narrow down my Userdata tracks to only those that will be manipulated by using GetCTracks. Among Userdata, Vectors show up with their components, though, and this means matching by name becomes impossible without slicing. Checking the type allows me to know when slicing is needed. This time, it was much easier to pass values as an argument, they were at hand, so I did apply your first solution, effortlessly.

      Polymorphism... I haven't heard of it since my C++ days... about 25 years ago, when I thought I'd be a real coder.

      This script I'm about to finish will speed up my 3D workflow tremendously.

      Once again, thanks a lot!

      posted in Cinema 4D Development
      Leo_Saramago