# Editor Scripting

**URL:** https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=62

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 63

---

## [Spawning a light via Python](https://forums.unrealengine.com/t/spawning-a-light-via-python/127784)

<div class="topic-metadata">

**Author:** [@Teriander](https://forums.unrealengine.com/u/Teriander)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 8:18pm UTC](https://forums.unrealengine.com/t/spawning-a-light-via-python/127784 "2019-06-21T20:18:52Z")

</div>

Hello, I’m trying to create a python script to spawn a directional light in the scene. Currently this is what I have: sun\_class = unreal.DirectionalLight(outer=None, name='Sun') sun\_location = unreal.Vector(0.0, 0.0,…

---

## [savegame.sav deleted on every launch](https://forums.unrealengine.com/t/savegame-sav-deleted-on-every-launch/450935)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1c109f76](https://forums.unrealengine.com/u/anonymous_user_1c109f76)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 7:25pm UTC](https://forums.unrealengine.com/t/savegame-sav-deleted-on-every-launch/450935 "2019-06-19T19:25:30Z")

</div>

Hi, For an internship project, i’m creating a level where you drive a car through a scene and see how people react to differents events. I would like to record and use data back to make a ghost run like the precedent pl…

---

## [PVP Damage System help!](https://forums.unrealengine.com/t/pvp-damage-system-help/127679)

<div class="topic-metadata">

**Author:** [@Quertx](https://forums.unrealengine.com/u/Quertx)\
**Replies:** 0\
**Last updated:** [June 18, 2019, 6:26pm UTC](https://forums.unrealengine.com/t/pvp-damage-system-help/127679 "2019-06-18T18:26:33Z")

</div>

So I believe this should be something relatively simple but for some reason, it isn’t running. I have the taken damage line to indicate if the damage is actually applied and I believe this runs, however, the Hit event is…

---

## [Crash when calling a python function from an editor utility widget blueprint](https://forums.unrealengine.com/t/crash-when-calling-a-python-function-from-an-editor-utility-widget-blueprint/126698)

<div class="topic-metadata">

**Author:** [@MightyJacky](https://forums.unrealengine.com/u/MightyJacky)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 11:21pm UTC](https://forums.unrealengine.com/t/crash-when-calling-a-python-function-from-an-editor-utility-widget-blueprint/126698 "2019-06-17T23:21:01Z")

</div>

Hello! I tried to call a function on a python bridge object I defined from an editor utility widget. However I encounter this casting error when the editor tries to find the right UFunction to execute: Cast of WidgetBl…

---

## [Is there a way to use editor delegates in python?](https://forums.unrealengine.com/t/is-there-a-way-to-use-editor-delegates-in-python/450824)

<div class="topic-metadata">

**Author:** [@BrainBash](https://forums.unrealengine.com/u/BrainBash)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 2:41pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-editor-delegates-in-python/450824 "2019-06-17T14:41:07Z")

</div>

Hello all, I’m trying to extend the editor and automate some repetitive tasks to make it easier for my team to do builds and packages, I need a way to get delegate callbacks in my python script but am having a bit of t…

---

## [Cast to SaveGame failed](https://forums.unrealengine.com/t/cast-to-savegame-failed/450743)

<div class="topic-metadata">

**Author:** [@ProDataDavid](https://forums.unrealengine.com/u/ProDataDavid)\
**Replies:** 4\
**Last updated:** [June 16, 2019, 1:35pm UTC](https://forums.unrealengine.com/t/cast-to-savegame-failed/450743 "2019-06-16T13:35:03Z")

</div>

Hello, I try to get data from a SaveGame named LevelSave. The problem, always I get a cast failed but only when I compiled for the shipping mode with an active “For Distribution” checkbox. When I compile the development…

---

## [how to get sublevels in python](https://forums.unrealengine.com/t/how-to-get-sublevels-in-python/118191)

<div class="topic-metadata">

**Author:** [@johnson5jr](https://forums.unrealengine.com/u/johnson5jr)\
**Replies:** 2\
**Last updated:** [June 13, 2019, 12:27pm UTC](https://forums.unrealengine.com/t/how-to-get-sublevels-in-python/118191 "2019-06-13T12:27:31Z")

</div>

I’m curious if there is a way to grab the sub-levels in a world via python. It seems in C++, a UWorld object has PersistentLevel and StreamingLevels variables. I’m not finding these in python. Any other methods?

---

## [How would I reference a newly spawned character?](https://forums.unrealengine.com/t/how-would-i-reference-a-newly-spawned-character/450653)

<div class="topic-metadata">

**Author:** [@NerdRebellion](https://forums.unrealengine.com/u/NerdRebellion)\
**Replies:** 3\
**Last updated:** [June 14, 2019, 8:19pm UTC](https://forums.unrealengine.com/t/how-would-i-reference-a-newly-spawned-character/450653 "2019-06-14T20:19:36Z")

</div>

Hey all, So I am trying to have one character (character 2) fellow another one (character 1) as soon as it spawns. How ever all I can get to work is having character 2 go to the spawn point of character 1. I read a litt…

---

## [How to Set Up Source Engine-Style Inventory Scroll?](https://forums.unrealengine.com/t/how-to-set-up-source-engine-style-inventory-scroll/449209)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a1dc3243](https://forums.unrealengine.com/u/anonymous_user_a1dc3243)\
**Replies:** 26\
**Last updated:** [June 13, 2019, 10:58pm UTC](https://forums.unrealengine.com/t/how-to-set-up-source-engine-style-inventory-scroll/449209 "2019-06-13T22:58:11Z")

</div>

I would like to implement an inventory system similar to the ones in Half-Life, TF2, and L4D, i.e. all of my available weapons and items (starting with one item and going up six total depending upon what items the player…

---

## [Import an animation without mesh does not work with python](https://forums.unrealengine.com/t/import-an-animation-without-mesh-does-not-work-with-python/450434)

<div class="topic-metadata">

**Author:** [@Loux\_xavier](https://forums.unrealengine.com/u/Loux_xavier)\
**Replies:** 1\
**Last updated:** [June 10, 2019, 3:18pm UTC](https://forums.unrealengine.com/t/import-an-animation-without-mesh-does-not-work-with-python/450434 "2019-06-10T15:18:45Z")

</div>

Hello ! I do a script for import a animation in unreal engine but the parameter FbxImportUI.import\_mesh does not work :confused: When I run the script it import the animation and the mesh but I want import only the anim…

---

## [A few Editor scripting questions](https://forums.unrealengine.com/t/a-few-editor-scripting-questions/127297)

<div class="topic-metadata">

**Author:** [@JohnHudeski](https://forums.unrealengine.com/u/JohnHudeski)\
**Replies:** 0\
**Last updated:** [June 10, 2019, 2:25pm UTC](https://forums.unrealengine.com/t/a-few-editor-scripting-questions/127297 "2019-06-10T14:25:01Z")

</div>

I have a few questions and I don’t know how best to present them so here goes? Is there a way to call the default property drawer for an object in slate? Eg I want the user to be able to add and remove animations using…

---

## [\[Solved\] What could possibly prevent unreal from calling my extender delegates?](https://forums.unrealengine.com/t/solved-what-could-possibly-prevent-unreal-from-calling-my-extender-delegates/127016)

<div class="topic-metadata">

**Author:** [@JohnHudeski](https://forums.unrealengine.com/u/JohnHudeski)\
**Replies:** 9\
**Last updated:** [June 8, 2019, 7:13pm UTC](https://forums.unrealengine.com/t/solved-what-could-possibly-prevent-unreal-from-calling-my-extender-delegates/127016 "2019-06-08T19:13:13Z")

</div>

I am new to unreal (Just over 2 weeks) but not programming and recently made the switch from unity. The editor programming is a black box despite visible code from the source file. I have spent 2 days going through every…

---

## [Spawns multiple projectiles in Paper2D game](https://forums.unrealengine.com/t/spawns-multiple-projectiles-in-paper2d-game/127237)

<div class="topic-metadata">

**Author:** [@Kash\_Shash](https://forums.unrealengine.com/u/Kash_Shash)\
**Replies:** 0\
**Last updated:** [June 8, 2019, 6:26pm UTC](https://forums.unrealengine.com/t/spawns-multiple-projectiles-in-paper2d-game/127237 "2019-06-08T18:26:49Z")

</div>

I dont know why but my character is shooting multiple projectiles continuously for the entire duration of it’s flipbook animation. I only want it to shoot a single projectile at a run. I’ve attached my “throw” event and…

---

## [(UE4 glTF Plugin) Importing more than one file at a time](https://forums.unrealengine.com/t/ue4-gltf-plugin-importing-more-than-one-file-at-a-time/127186)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1168704f](https://forums.unrealengine.com/u/anonymous_user_1168704f)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 9:26am UTC](https://forums.unrealengine.com/t/ue4-gltf-plugin-importing-more-than-one-file-at-a-time/127186 "2019-06-07T09:26:56Z")

</div>

I was thinking, is there a way to import many glTF files at the same time into UE4 using the glTF plugin? Currently the UE4 glTF plugin imports only one glTF file at a time into UE4. I have a model that has many pieces a…

---

## [Where is the code for the demonstrations in the Live Stream?](https://forums.unrealengine.com/t/where-is-the-code-for-the-demonstrations-in-the-live-stream/127090)

<div class="topic-metadata">

**Author:** [@zoombapup](https://forums.unrealengine.com/u/zoombapup)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 3:22pm UTC](https://forums.unrealengine.com/t/where-is-the-code-for-the-demonstrations-in-the-live-stream/127090 "2019-06-06T15:22:35Z")

</div>

So, there was a live stream on python scripting of the editor a week or so back. But I can’t for the life of me find any reference to the code that they demo’d on stream? Anyone got a link to where that might be? I was …

---

## [Creating respawn with press of a key](https://forums.unrealengine.com/t/creating-respawn-with-press-of-a-key/220703)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7a265dc5](https://forums.unrealengine.com/u/anonymous_user_7a265dc5)\
**Replies:** 0\
**Last updated:** [June 6, 2019, 2:33pm UTC](https://forums.unrealengine.com/t/creating-respawn-with-press-of-a-key/220703 "2019-06-06T14:33:47Z")

</div>

Im want to create a respawn action, where whoever is playing my game and falls of a map wants to re-spawn at a checkpouint, all they will have to do is press a key i chose to do it. anyone got a idea of how to do it, or …

---

## [Unreal to Blender and vice versa pipeline with Python](https://forums.unrealengine.com/t/unreal-to-blender-and-vice-versa-pipeline-with-python/126940)

<div class="topic-metadata">

**Author:** [@joeyeroq](https://forums.unrealengine.com/u/joeyeroq)\
**Replies:** 3\
**Last updated:** [June 4, 2019, 10:15pm UTC](https://forums.unrealengine.com/t/unreal-to-blender-and-vice-versa-pipeline-with-python/126940 "2019-06-04T22:15:53Z")

</div>

After watching “Python in Unreal Engine | Inside Unreal” (https://www.youtube.com/watch?v=0guOMTiwmhk) I was wondering if anyone can/has set up an Unreal to Blender and vice versa pipeline. My skills in python are very …

---

## [Consolidating Objects and fixing up redirectors screws with some references](https://forums.unrealengine.com/t/consolidating-objects-and-fixing-up-redirectors-screws-with-some-references/450122)

<div class="topic-metadata">

**Author:** [@Herr\_Edgy](https://forums.unrealengine.com/u/Herr_Edgy)\
**Replies:** 0\
**Last updated:** [June 4, 2019, 11:09am UTC](https://forums.unrealengine.com/t/consolidating-objects-and-fixing-up-redirectors-screws-with-some-references/450122 "2019-06-04T11:09:17Z")

</div>

There is a similar question related to mine, but that one got delegated to the official bug report form, which isn’t helpful in my case since I can’t do a proper bug report due to complexity. https://answers.unrealengine…

---

## [Blueprint keeps asking for reference to c++ class](https://forums.unrealengine.com/t/blueprint-keeps-asking-for-reference-to-c-class/393462)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_16d828d31](https://forums.unrealengine.com/u/anonymous_user_16d828d31)\
**Replies:** 1\
**Last updated:** [June 3, 2019, 2:39pm UTC](https://forums.unrealengine.com/t/blueprint-keeps-asking-for-reference-to-c-class/393462 "2019-06-03T14:39:09Z")

</div>

Hi, i try to get variable from blueprint to c++. I follow this \[tutorial\]\[1\] UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = IPAddresReceive) int IPAddresReceive1; then i try to create function that takes …

---

## [How to change what actor spawns from a blueprint?](https://forums.unrealengine.com/t/how-to-change-what-actor-spawns-from-a-blueprint/449929)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_25724dff](https://forums.unrealengine.com/u/anonymous_user_25724dff)\
**Replies:** 1\
**Last updated:** [June 1, 2019, 1:50pm UTC](https://forums.unrealengine.com/t/how-to-change-what-actor-spawns-from-a-blueprint/449929 "2019-06-01T13:50:32Z")

</div>

So I’m trying to setup a basic inventory system. Originally I had it so that items that were able to be acquired could be clicked on, then the actor would be destroyed and all the coding for what the item did was in my …

---

## [Python scripting - call from Blutility](https://forums.unrealengine.com/t/python-scripting-call-from-blutility/442015)

<div class="topic-metadata">

**Author:** [@hjeldin](https://forums.unrealengine.com/u/hjeldin)\
**Replies:** 2\
**Last updated:** [June 1, 2019, 1:11am UTC](https://forums.unrealengine.com/t/python-scripting-call-from-blutility/442015 "2019-06-01T01:11:55Z")

</div>

Hello, we’re using UE4.21 studio with the Python Editor Script plugin. We developed some useful python scripts for our artists for various editor operations, and we would like to use them by calling them from a blutili…

---

## [Passing param from Editor Widget to Python scripts.](https://forums.unrealengine.com/t/passing-param-from-editor-widget-to-python-scripts/126873)

<div class="topic-metadata">

**Author:** [@trungswat](https://forums.unrealengine.com/u/trungswat)\
**Replies:** 1\
**Last updated:** [May 31, 2019, 2:53pm UTC](https://forums.unrealengine.com/t/passing-param-from-editor-widget-to-python-scripts/126873 "2019-05-31T14:53:08Z")

</div>

Hello guys, This feature gonna be released in 4.23 maybe. Meanwhile, I just find a way to passing params from Editor Widget into Python script by concatenating string and plug into “Execute Console Command” node. This w…

---

## [Blueprint not working in bluid. What's wrong ?](https://forums.unrealengine.com/t/blueprint-not-working-in-bluid-whats-wrong/220660)

<div class="topic-metadata">

**Author:** [@AFK\_Tulipe](https://forums.unrealengine.com/u/AFK_Tulipe)\
**Replies:** 0\
**Last updated:** [May 31, 2019, 11:09am UTC](https://forums.unrealengine.com/t/blueprint-not-working-in-bluid-whats-wrong/220660 "2019-05-31T11:09:43Z")

</div>

Hello, it’s the first time i’m asking for help in the forum of Unreal, I hope i’m at the right place to discus of my issue. I’m student as game artist so Blueprints are not my cup of tea. But, we have to create some int…

---

## [Save Game not working correctly in Packaged build](https://forums.unrealengine.com/t/save-game-not-working-correctly-in-packaged-build/411760)

<div class="topic-metadata">

**Author:** [@Samuelb](https://forums.unrealengine.com/u/Samuelb)\
**Replies:** 3\
**Last updated:** [May 28, 2019, 9:18am UTC](https://forums.unrealengine.com/t/save-game-not-working-correctly-in-packaged-build/411760 "2019-05-28T09:18:08Z")

</div>

Hey there What i’m doing I’m using a savegame object to save the selected character for each player(local multiplayer game), so when the selected level is loaded the players spawn with their selected characters. The I…

---

## [How do I combine inventory slot items?](https://forums.unrealengine.com/t/how-do-i-combine-inventory-slot-items/445995)

<div class="topic-metadata">

**Author:** [@bathorysthroat](https://forums.unrealengine.com/u/bathorysthroat)\
**Replies:** 1\
**Last updated:** [May 27, 2019, 4:13pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-inventory-slot-items/445995 "2019-05-27T16:13:25Z")

</div>

Hi, I’ve created a slot-inventory system based off of this series: Inventory System Tutorial Series - YouTube Now that I have it up and running I’ve added an “Actons Menu” (Use, Examine, Combine, Cancel) that shows up w…

---

## [How does UE4 interpolate between dozens of skeletal poses?](https://forums.unrealengine.com/t/how-does-ue4-interpolate-between-dozens-of-skeletal-poses/449667)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_086dcabf](https://forums.unrealengine.com/u/anonymous_user_086dcabf)\
**Replies:** 0\
**Last updated:** [May 27, 2019, 2:56pm UTC](https://forums.unrealengine.com/t/how-does-ue4-interpolate-between-dozens-of-skeletal-poses/449667 "2019-05-27T14:56:56Z")

</div>

I read that SLERP is used for interpolation between two poses (for example, between two keyframes), but with UE4 I can combine multiple poses modifying the same bones. What is the algorithm behind this?

---

## [Process contents of User Widget Blueprint present in the Content Browser](https://forums.unrealengine.com/t/process-contents-of-user-widget-blueprint-present-in-the-content-browser/126678)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9cf15cf7](https://forums.unrealengine.com/u/anonymous_user_9cf15cf7)\
**Replies:** 0\
**Last updated:** [May 27, 2019, 9:23am UTC](https://forums.unrealengine.com/t/process-contents-of-user-widget-blueprint-present-in-the-content-browser/126678 "2019-05-27T09:23:15Z")

</div>

Hello, I am looking to create an Editor Plugin to accomplish the the following. Could be Python, but I would prefer C++. User Widget(s) present in the Content Browser. User / Artist selects the User Widget(s) in the C…

---

## [How to change the appearance of the editor](https://forums.unrealengine.com/t/how-to-change-the-appearance-of-the-editor/126672)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_818a5cc6](https://forums.unrealengine.com/u/anonymous_user_818a5cc6)\
**Replies:** 0\
**Last updated:** [May 27, 2019, 3:37am UTC](https://forums.unrealengine.com/t/how-to-change-the-appearance-of-the-editor/126672 "2019-05-27T03:37:52Z")

</div>

This isn’t something that exactly goes in editor scripting, but I don’t know where else. Is there a way to change the color scheme of the editor?

---

## [How to expose methods of custom class to Python?](https://forums.unrealengine.com/t/how-to-expose-methods-of-custom-class-to-python/126175)

<div class="topic-metadata">

**Author:** [@kakyoism](https://forums.unrealengine.com/u/kakyoism)\
**Replies:** 2\
**Last updated:** [May 25, 2019, 9:42am UTC](https://forums.unrealengine.com/t/how-to-expose-methods-of-custom-class-to-python/126175 "2019-05-25T09:42:58Z")

</div>

load\_assets() gives me the Unreal.Object of my asset, but I’d like to run its public methods in the Editor as well. Is it possible? Also, I noticed that PostLoad() is not called after calling load\_asset(). How do I forc…

---

## [Extending a Level Editor Tool Bar Menu](https://forums.unrealengine.com/t/extending-a-level-editor-tool-bar-menu/126574)

<div class="topic-metadata">

**Author:** [@andreas.ranman](https://forums.unrealengine.com/u/andreas.ranman)\
**Replies:** 0\
**Last updated:** [May 24, 2019, 2:09pm UTC](https://forums.unrealengine.com/t/extending-a-level-editor-tool-bar-menu/126574 "2019-05-24T14:09:26Z")

</div>

Created a plugin that adds a ComboButton to generate a menu on the Level Editors Tool Bar. Now I’m looking to extend this menu, but the it seems I can’t access the extension point. UMyOtherModule::UMyOtherModule() { …

[Previous page](https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=61)

[Next page](https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=63)
