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

    Morph Tag [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 295 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 12/12/2014 at 08:53, xxxxxxxx wrote:

      I have a lot of morphs in my scene that I enable and disable. My problem is I want to get to their "Priority" options via python.

      I get this [c4d.EXPRESSION_PRIORITY]

      I tried every thing but I cant get to set it.

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

        On 12/12/2014 at 09:11, xxxxxxxx wrote:

        Hello,

        a priority parameter contains PriorityData[URL-REMOVED] so you have to assign a object of that type:

          
                  priority = c4d.PriorityData()  
                  priority.SetPriorityValue(c4d.PRIORITYVALUE_MODE, c4d.CYCLE_GENERATORS)  
                    
                  tag[c4d.EXPRESSION_PRIORITY] = priority  
        

        You find some example in the Py-LookAtCamera example[URL-REMOVED].

        Best wishes,
        Sebastian


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

          On 12/12/2014 at 09:17, xxxxxxxx wrote:

          Thanks Sebastian for all your help.

          I just wish they would put more examples in the SDK  😢

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