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

    Adding Pose Target

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 343 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 11/02/2014 at 15:00, xxxxxxxx wrote:

      I am trying to dynamically add and set pose morph to a morph tag. I've been able to add blank poses to the tag using pose.AddMorph() but I can not seem to figure out how to set the target of that added morph.

      Any ideas?

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

        On 11/02/2014 at 18:35, xxxxxxxx wrote:

        I figured it out, I didn't realize there was a CAMorph class.

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

          On 28/09/2014 at 08:31, xxxxxxxx wrote:

          Hi Shawn,

          as you managed it, do you like to post a small snippet?

          I actually tried:

            
            
                MoTag = op.MakeTag(c4d.Tposemorph)  
                MoTag[c4d.ID_CA_POSE_POINTS]=True  
            
                BaseMo= MoTag.AddMorph()  
                Pose_1= MoTag.AddMorph()  
            
                BaseMo.SetMode(doc, MoTag,c4d.CAMORPH_MODE_FLAGS_EXPAND, c4d.CAMORPH_MODE_REL)  
                Pose_1.SetMode(doc, MoTag,c4d.CAMORPH_MODE_FLAGS_EXPAND, c4d.CAMORPH_MODE_REL)  
                  
                MoTag.InitMorphs()  
                  
                BaseMo.Apply(doc, MoTag, c4d.CAMORPH_DATA_FLAGS_ALL)  
                Pose_1.Apply(doc, MoTag, c4d.CAMORPH_DATA_FLAGS_ALL)  
            
                #it´s not working with  
                #     Pose_1.SetBit(c4d.BIT_ACTIVE)  
                #     print Pose_1[c4d.ID_CA_POSE_TARGET]  
                #     print Pose_1.GetFirst()  
          

          But, no success!
          Thanks in advance
          Martin

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

            On 29/09/2014 at 18:37, xxxxxxxx wrote:

            You can't set the active pose morph via python and is only available through C++ :frowning2:

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