Can I get to the SpaceCenter InputText strings from Python?



  • The strings are set in the Preferences panel / Space Center / Input Text. I would like to read them with the Pythons?


  • admin

    hello @erik,

    the Space Center input strings are stored in a setting named spaceCenterInputSamples:

    from mojo.UI import getDefault
    for inputString in getDefault('spaceCenterInputSamples'):
        print(inputString)
    

    all settings in the Preferences window (and some more) are also available in the Preferences Editor, where you can see how they are named.

    cheers!