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

    AutoKeying command check problem

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 446 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 23/10/2017 at 23:22, xxxxxxxx wrote:

      Hi -
      I have one question about IsCommandChecked.

      I used "c4d.IsCommandChecked(12425)" for check AutoKeying Button is On or Off.
      That works fine, in Python Script Manager.

      But In Python Tag and Python Node(in Xpresso), that did not work.

      How can i do check AutoKeing Button in Python Tag(or Python Node)?
      plz..

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

        On 24/10/2017 at 02:32, xxxxxxxx wrote:

        Hi,

        c4d.IsCommandChecked() only works fine when called from the main thread (a script run from the GUI or a command plugin for instance).
        An expression (Python generator, tag, XPresso node, etc.) is executed within another thread so it is forbidden to access or perform any GUI operation (among others).
        See Threading Information in the Python docs.

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

          On 24/10/2017 at 09:11, xxxxxxxx wrote:


          thanx for reply

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