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

    Tag Plugin Attribut - UI element refresh

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 813 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 12/03/2011 at 07:28, xxxxxxxx wrote:

      Hi guys,

      another day another problem. I'm trying to change the state of a simple checkbox from within my tag plugin. The checkbox has the ID 10000, so this is what I do.

      bc = tag.GetData()
      print bc.GetBool(10000) # this correctly comes back True or False
      bc.SetBool(10000,True)
      -> this does internally change the value, but does not update the UI, so next frame the setting if forgotten!

      I tried all of these to no avail:
      op.Message(c4d.MSG_UPDATE)
      tag.Message(c4d.MSG_UPDATE)
      c4d.EventAdd(c4d.EVENT_NOEXPRESSION)

      Nothing does it.

      Updating user data from a regular Python tag works fine, it's only once I have it running as a Tag plugin that it does not work any more.

      Any ideas anyone?

      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 12/03/2011 at 08:09, xxxxxxxx wrote:

        Well, what about setting the Container back to your tag ?

        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 12/03/2011 at 10:24, xxxxxxxx wrote:

          Doh! Overlooking the obvious again, aren't I.... thanks mate, that was exactly it 🙂

          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 12/03/2011 at 11:16, xxxxxxxx wrote:

            tag.GetData() returns a new copy of the settings container, use GetDataInstance() instead to get the internal container.

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