How does cesiumforunreal integrate with python?
Hello,
We have not tried Python integration. All of our API is either Blueprint or C++. That being said, if you decide to experiment with Python, please let us know how it goes!
@agallegos I know a litter base about UE4 intergrate with python, and the start is:
- start up python plugins
by Edit → Plugins search python( there are three plugins: Python Automation Test; Python Editor Script Plugin[Python intergration for the UE4 editor]; Sequencer Scripting[Python and editor utility scripting extensions for sequencer and movie scenes]), then make it enabled, restart project to init python functions. - set python developer mode
by Edit → Project Settings → Plugins → Python selected developer mode(all users) to make python useful. - start python
by Windows → Developer Tools → Output Log open output log, then run a python script or a file, for emample:
This is just a python start.
All Blueprints are automatically exposed to Python. Since the CesiumGeoreference class is an Actor class you can just spawn it like youu would spawn any other actor. E.g.
georef = unreal.EditorLevelLibrary.spawn_actor_from_class(unreal.CesiumGeoreference, position, rotation)
And then set e.g. the origin with
georef.origin_latitude = my_latitude
georef.origin_longitude = my_longitude
I have not tried to setup a sky or Cesium terrain from Python, yet.