Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Change posemorph's name

    Bugs
    python 2024 2023
    2
    2
    605
    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.
    • N
      nano
      last edited by

      Hello,every one! When I use python to set name of the blendshape.It seems doesn‘t work in the Edit mode.But it works in the Animate mode.I want to know how can change the name in the edit mode too?
      20241212-111223.jpg 20241212-111227.jpg

      from typing import Optional
      import c4d
      
      
      def main() -> None:
          pm=op.GetTag(c4d.Tposemorph,0)
          pose=pm.GetMorph(1)
      
          pose.SetName("xxx")
          
          
      if __name__ == '__main__':
          main()
      

      Thank you all!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi thanks for the question, I've opened a bug report, for the moment the only workaround would be to remove the Morph and re-add it.

        For the moment the name in the treeview is only updated when manually edited from the treeview and on the insertion of the item in the tree view.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • ferdinandF ferdinand moved this topic from Cinema 4D SDK on
        • First post
          Last post