Announcement

Collapse
No announcement yet.

Enable developer mode in Python Script plugin

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • started a topic Enable developer mode in Python Script plugin

    Enable developer mode in Python Script plugin

    I am looking to enable the Developer mode for python scripting with unreal.PythonScriptPluginSettings

    https://api.unrealengine.com/INT/Pyt...nSettings.html


    This is my code, i must be missing something obvious:
    Code:
     
     unreal.PythonScriptPluginSettings.set_editor_property(developer_mode, 1)
    and the error:
    Code:
    LogPython: Error:     unreal.PythonScriptPluginSettings.set_editor_property(developer_mode, 1)
    LogPython: Error: NameError: name 'developer_mode' is not defined

  • replied
    There is now an option to enable developer mode in Project Settings>Plugins>Python
    it will generate a python stub file in \Intermediate\PythonStub\
    Last edited by dschertenleib; 12-05-2018, 02:55 PM.

    Leave a comment:


  • replied
    Ok this seems to be the correct code!

    Code:
     
     upsps = unreal.PythonScriptPluginSettings()    
     upsps.set_editor_property("developer_mode", 1)    
     debug = upsps.get_editor_property("developer_mode")    
     print(debug)

    Leave a comment:

Working...
X