AutoKeying command check problem



  • 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..



  • 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.



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


    thanx for reply


Log in to reply