This is an old revision of the document!
Python Script in UE 4.25
Get Python working in UE
- from UE 4.19, python is supported
- in Edit > Plugins : Script Tab, there is new Python Script support, enable it and restart;
- Then show it in Windows> Develop Tools > Output Log, you can switch the cmd to Python in the command box
- check its python version with
pyMode = '.'.join([ str(n) for n in sys.version_info[:3] ]) print("Python: {0}".format(pyMode))
- it is 2.7.14,
- the Python path is at UE version installed folder
\your_install_path_to_UE_sub_version\UE_4.25\Engine\Binaries\ThirdParty\Python\Win64
Get PySide working in UE
- pip module is built-in with the python in UE, so you can install PySide/PySide2 using pip
- cd to UE4 python directory as above, use print(os) to see its path, run cmd
.\python.exe -m pip install -U pip .\python.exe -m pip install PySide
- run the custom widget directly with UI creation, need create QApplication
import unreal import sys;myPath='/python_to_tool/TmpTest/';myPath in sys.path or sys.path.append(myPath);import TmpTest; unreal_app = QtGui.QApplication.instance() if not unreal_app: unreal_app = QtGui.QApplication(sys.argv) single_TmpTest = TmpTest.TmpTest() unreal.parent_external_window_to_slate(single_TmpTest.winId())
- more video: https://www.youtube.com/c/AlexQuevillonEn/videos
UE Problem and Solution
UE 4.25 on windows 7 pop up error issue
UDK Quick Use Guide (outdated)
- Unreal working speed-up tips
- view > detail mode : low
- view > enable particle system LOD
- make perspective view smaller
- make perspective view in “unlit mode” (alt+3)
- or check “unlit movement” for static lit in view drop-down menu
- toggle off real time (ctrl+r)
- navigation (right mouse button centered control)
UDK game style | Maya view style | Maya selected style | |
---|---|---|---|
walk | LMB | ? | |
rotate view | RMB | U+LMB | |
pan view | LMB+RMB | U+MMB | |
zoom view | LMB | U+RMB | |
view select | home |
- orthographic view
- LMB: pan view
- MMB scroll: zoom view
- toggle view
- persp: alt+f
- top: alt+g
- front: alt+h
- side: alt+j
- viewport hide and show configure
- toggle volume [bounding box] (o)
- toggle terrain (t)
- toggle static mesh [static dynamic] (w)
- game view [hide all] (g)
- move object
- lock to camera: pick up mode
UDK creation
- L+LMB click: create light
rebuilt required for every BSD brush change
UDK pipe
UDK import:
- t3d, dxf, asc, ase