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

    How to set my tag to be Camera Dependent?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 344 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 05/08/2012 at 06:13, xxxxxxxx wrote:

      I already set the res file to include the Texpression base.
      This makes the Basic tab of my tag show the priority fields and the Camera Dependent checkmark. But it is off and I have to turn it on by hand.
      How can I make my tag turn it on when it is created?
      I know it has something to do with SetPriorityData(c4d.PRIORITYVALUE_CAMERADEPENDENT,true) but where and to what do I apply it?

      Rui Batista

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 05/08/2012 at 16:58, xxxxxxxx wrote:

        Ok, after many, many trial and error, I finally got it 🙂

        priority=c4d.PriorityData()
        priority.SetPriorityValue(c4d.PRIORITYVALUE_CAMERADEPENDENT,True)
        node[c4d.EXPRESSION_PRIORITY]=priority

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 05/08/2012 at 17:13, xxxxxxxx wrote:

          Thanks, good to know!

          Cheers
          Lennart

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