# Editor Scripting

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

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

**Page:** 6

---

## [Binding an event key to a event in sequence (UE5.3)](https://forums.unrealengine.com/t/binding-an-event-key-to-a-event-in-sequence-ue5-3/1826283)

<div class="topic-metadata">

**Author:** [@IceManElosi](https://forums.unrealengine.com/u/IceManElosi)\
**Replies:** 1\
**Last updated:** [January 30, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/binding-an-event-key-to-a-event-in-sequence-ue5-3/1826283 "2025-01-30T14:07:22Z")

</div>

Hi, I’ve recently been trying to make a rhythm game, and to make some of the workflow easier inside the sequencer editor, I’m creating an editor utility widget to automatically copy, shift, paste, and bind a selection of…

---

## [How to setup a timer in a python script?](https://forums.unrealengine.com/t/how-to-setup-a-timer-in-a-python-script/488355)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a7883a09](https://forums.unrealengine.com/u/anonymous_user_a7883a09)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 3:04am UTC](https://forums.unrealengine.com/t/how-to-setup-a-timer-in-a-python-script/488355 "2025-01-21T03:04:15Z")

</div>

I’m trying to delay the execution of my code in a python script. import unreal timer\_delegate = unreal.TimerDynamicDelegate() def delayed\_action(): print('Do it!') timer\_delegate.bind\_callable(delayed\_action) un…

---

## [Problems using python with Editor in UE4](https://forums.unrealengine.com/t/problems-using-python-with-editor-in-ue4/244763)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6937c7291](https://forums.unrealengine.com/u/anonymous_user_6937c7291)\
**Replies:** 5\
**Last updated:** [January 21, 2025, 3:01am UTC](https://forums.unrealengine.com/t/problems-using-python-with-editor-in-ue4/244763 "2025-01-21T03:01:46Z")

</div>

Hello, I met a problem when i using python with Editor in UE4. I find we can use python command “unreal.EditorLevelLibrary.editor\_play\_simulate()” to play the editor and use python command “unreal.EditorLevelLibrary.edi…

---

## [Create new streaming level for world composition](https://forums.unrealengine.com/t/create-new-streaming-level-for-world-composition/125493)

<div class="topic-metadata">

**Author:** [@MrFlopsie](https://forums.unrealengine.com/u/MrFlopsie)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 10:59am UTC](https://forums.unrealengine.com/t/create-new-streaming-level-for-world-composition/125493 "2025-01-17T10:59:34Z")

</div>

Hello all! I’ve been working on a pipeline involving world composition, and I would love to be able to auto generate my streaming levels with a script. (I’m using blueprint editor scripting in a widget. The results are…

---

## [Unable to execute MoviePipelineQueue from Python](https://forums.unrealengine.com/t/unable-to-execute-moviepipelinequeue-from-python/467250)

<div class="topic-metadata">

**Author:** [@Mentin](https://forums.unrealengine.com/u/Mentin)\
**Replies:** 20\
**Last updated:** [January 15, 2025, 8:27pm UTC](https://forums.unrealengine.com/t/unable-to-execute-moviepipelinequeue-from-python/467250 "2025-01-15T20:27:24Z")

</div>

I am interested in generating a movie pipeline queue dynamically from python. I was able to figure out all the necessary pieces. However, when using the executor on the queue it will not execute. I’ve tried 3 different e…

---

## [How to browse to asset from an actor in Editor Utility Widget ?](https://forums.unrealengine.com/t/how-to-browse-to-asset-from-an-actor-in-editor-utility-widget/738003)

<div class="topic-metadata">

**Author:** [@Heloooo](https://forums.unrealengine.com/u/Heloooo)\
**Replies:** 2\
**Last updated:** [January 12, 2025, 7:15pm UTC](https://forums.unrealengine.com/t/how-to-browse-to-asset-from-an-actor-in-editor-utility-widget/738003 "2025-01-12T19:15:23Z")

</div>

How to browse to asset from an actor in Editor Utility Widget ? Just like right clicking on the static mesh actor in the world outline , and select ‘browse to asset’. I try to get actor and get its ‘object path’, then …

---

## [How to call OverlapBlockingTestByChannel from a python script (or another way to test overlap)?](https://forums.unrealengine.com/t/how-to-call-overlapblockingtestbychannel-from-a-python-script-or-another-way-to-test-overlap/2264351)

<div class="topic-metadata">

**Author:** [@LucasEgidio](https://forums.unrealengine.com/u/LucasEgidio)\
**Replies:** 0\
**Last updated:** [January 7, 2025, 1:59pm UTC](https://forums.unrealengine.com/t/how-to-call-overlapblockingtestbychannel-from-a-python-script-or-another-way-to-test-overlap/2264351 "2025-01-07T13:59:49Z")

</div>

Hi all! I’d like to call OverlapBlockingTestByChannel from a python script. I saw that this method is not exposed in the python API so I thought that the following would work: world = unreal.get\_editor\_subsystem(unreal…

---

## [whats the right way to inherit a USTRUCT?](https://forums.unrealengine.com/t/whats-the-right-way-to-inherit-a-ustruct/387043)

<div class="topic-metadata">

**Author:** [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Replies:** 9\
**Last updated:** [January 7, 2025, 11:44am UTC](https://forums.unrealengine.com/t/whats-the-right-way-to-inherit-a-ustruct/387043 "2025-01-07T11:44:43Z")

</div>

I’m trying to inherit a FHitResult, so I can add some extra parameters to it. What I have here mostly works, but when I break the hit result in blueprints, only my two extra variables show, and I cannot see the parent’s …

---

## [Templated USTRUCT?](https://forums.unrealengine.com/t/templated-ustruct/354096)

<div class="topic-metadata">

**Author:** [@MichaelWion](https://forums.unrealengine.com/u/MichaelWion)\
**Replies:** 8\
**Last updated:** [January 7, 2025, 2:01am UTC](https://forums.unrealengine.com/t/templated-ustruct/354096 "2025-01-07T02:01:08Z")

</div>

Is there any way to use templates/generics on USTRUCT objects (or even UCLASS)? For example, something like the following: USTRUCT(Blueprintable, Category = "Scripting|Remote Character|Attributes") template\<typename Ty…

---

## [Post Process Material Array Effect Value in BP](https://forums.unrealengine.com/t/post-process-material-array-effect-value-in-bp/462700)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6683a8b7](https://forums.unrealengine.com/u/anonymous_user_6683a8b7)\
**Replies:** 5\
**Last updated:** [January 3, 2025, 3:31pm UTC](https://forums.unrealengine.com/t/post-process-material-array-effect-value-in-bp/462700 "2025-01-03T15:31:35Z")

</div>

Hi, i just cant figure out how to expose the array value for “No effect - Full effect” in the blueprint editor. (for post process materials) I would like to hook this up to a timeline animation. please see images for b…

---

## [load\_level in python script cause crash](https://forums.unrealengine.com/t/load-level-in-python-script-cause-crash/2243643)

<div class="topic-metadata">

**Author:** [@Ken\_An](https://forums.unrealengine.com/u/Ken_An)\
**Replies:** 0\
**Last updated:** [December 26, 2024, 1:15pm UTC](https://forums.unrealengine.com/t/load-level-in-python-script-cause-crash/2243643 "2024-12-26T13:15:01Z")

</div>

I’m trying to run a python script using UnrealEditor-Cmd.exe, following this document: official documents it says: This commandlet does not automatically load levels, so when writing your script, add the following lin…

---

## [Script in background](https://forums.unrealengine.com/t/script-in-background/242013)

<div class="topic-metadata">

**Author:** [@jobim](https://forums.unrealengine.com/u/jobim)\
**Replies:** 1\
**Last updated:** [December 24, 2024, 10:01pm UTC](https://forums.unrealengine.com/t/script-in-background/242013 "2024-12-24T22:01:29Z")

</div>

Hi, I have a python script that is connecting to a webrtc server with websockets. I want this script to receive commands in background, but the asyncio library blocks the unreal UI. Is there a way to run a script in bac…

---

## [How to get current frame in current Level Sequence?](https://forums.unrealengine.com/t/how-to-get-current-frame-in-current-level-sequence/624235)

<div class="topic-metadata">

**Author:** [@steve\_kuva](https://forums.unrealengine.com/u/steve_kuva)\
**Replies:** 10\
**Last updated:** [December 24, 2024, 9:14am UTC](https://forums.unrealengine.com/t/how-to-get-current-frame-in-current-level-sequence/624235 "2024-12-24T09:14:14Z")

</div>

I’m trying to make an Editor Utility Widget for helping to set keyframes on the control rig. I can get hold of the current Level Sequence, and can use, for example, ‘Set Local Control Rig Vector 2D’ to set the correct va…

---

## [how to play level with python?](https://forums.unrealengine.com/t/how-to-play-level-with-python/679266)

<div class="topic-metadata">

**Author:** [@jenios3](https://forums.unrealengine.com/u/jenios3)\
**Replies:** 14\
**Last updated:** [December 20, 2024, 1:38pm UTC](https://forums.unrealengine.com/t/how-to-play-level-with-python/679266 "2024-12-20T13:38:25Z")

</div>

Hi, there are commands for simulation but I did not find for PIE unreal.LevelEditorSubsystem().editor\_play\_simulate() or unreal.EditorLevelLibrary().editor\_play\_simulate() but no command unreal.LevelEditorSubsystem…

---

## [Preview BP when spawned from component](https://forums.unrealengine.com/t/preview-bp-when-spawned-from-component/2150514)

<div class="topic-metadata">

**Author:** [@Myxcil](https://forums.unrealengine.com/u/Myxcil)\
**Replies:** 2\
**Last updated:** [December 20, 2024, 9:35am UTC](https://forums.unrealengine.com/t/preview-bp-when-spawned-from-component/2150514 "2024-12-20T09:35:02Z")

</div>

Hi, I have a question similar to this: Is there a way to show a dynamic preview mesh in the level viewport? But this time my “Spawner” is not an actor itself, but just a component which spawns a new Actor during BeginP…

---

## [Remove object from array after it got haunted](https://forums.unrealengine.com/t/remove-object-from-array-after-it-got-haunted/2232994)

<div class="topic-metadata">

**Author:** [@MRCOFFIN](https://forums.unrealengine.com/u/MRCOFFIN)\
**Replies:** 1\
**Last updated:** [December 20, 2024, 8:45am UTC](https://forums.unrealengine.com/t/remove-object-from-array-after-it-got-haunted/2232994 "2024-12-20T08:45:38Z")

</div>

I’m trying to make some items haunted and after an item get haunted i want it to remove from the array so the same object wont be selected again . Setup is like this

---

## [Why do only the SubGizmos corresponding to the selected viewport gizmo appear on my UCombinedTransformGizmo?](https://forums.unrealengine.com/t/why-do-only-the-subgizmos-corresponding-to-the-selected-viewport-gizmo-appear-on-my-ucombinedtransformgizmo/2224174)

<div class="topic-metadata">

**Author:** [@Beefjerkyzxz](https://forums.unrealengine.com/u/Beefjerkyzxz)\
**Replies:** 1\
**Last updated:** [December 18, 2024, 7:01pm UTC](https://forums.unrealengine.com/t/why-do-only-the-subgizmos-corresponding-to-the-selected-viewport-gizmo-appear-on-my-ucombinedtransformgizmo/2224174 "2024-12-18T19:01:42Z")

</div>

I recently implemented a custom gizmo to my custom editor mode UInteractiveTool “SelectTool” so that I can use it to move splines. (Code pertaining to the gizmo pasted at the bottom.) However, when I specify using my t…

---

## [Python API Toolbar Plugin & Tutorial](https://forums.unrealengine.com/t/python-api-toolbar-plugin-tutorial/2223729)

<div class="topic-metadata">

**Author:** [@TonyStark9696](https://forums.unrealengine.com/u/TonyStark9696)\
**Replies:** 0\
**Last updated:** [December 15, 2024, 11:28pm UTC](https://forums.unrealengine.com/t/python-api-toolbar-plugin-tutorial/2223729 "2024-12-15T23:28:56Z")

</div>

I created a plugin using the Python API that allows you to run Python scripts from the Editor Tool Bar instead of using the Python Console or the Tools -\> Execute Python Script menu. Add Python scripts to your projects S…

---

## [UE5 Editor Default Asset Editor Tabs](https://forums.unrealengine.com/t/ue5-editor-default-asset-editor-tabs/1879046)

<div class="topic-metadata">

**Author:** [@bit.ly-2JGthgl](https://forums.unrealengine.com/u/bit.ly-2JGthgl)\
**Replies:** 2\
**Last updated:** [December 15, 2024, 1:45am UTC](https://forums.unrealengine.com/t/ue5-editor-default-asset-editor-tabs/1879046 "2024-12-15T01:45:12Z")

</div>

When I run UE5 in VS Code, on launch it opens set of tabs. This is mostly as expected, as I would like my tabs to be retained. But it also includes a separate ‘Content Browser’ window. I do not want this. I keep on closi…

---

## [Working and editing For Loop how to delete certain elements by their index](https://forums.unrealengine.com/t/working-and-editing-for-loop-how-to-delete-certain-elements-by-their-index/2220856)

<div class="topic-metadata">

**Author:** [@Morfeng21](https://forums.unrealengine.com/u/Morfeng21)\
**Replies:** 0\
**Last updated:** [December 14, 2024, 8:22pm UTC](https://forums.unrealengine.com/t/working-and-editing-for-loop-how-to-delete-certain-elements-by-their-index/2220856 "2024-12-14T20:22:19Z")

</div>

Hello. I have such a task, I need to create an island having a grid of hexagons, I successfully implemented the grid itself through For Loop, but it turns out to be square, I wanted to clarify how can I edit it? by means…

---

## [Ads from the Facebook network in a mobile game for Android](https://forums.unrealengine.com/t/ads-from-the-facebook-network-in-a-mobile-game-for-android/2217392)

<div class="topic-metadata">

**Author:** [@Webstr48](https://forums.unrealengine.com/u/Webstr48)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 2:17pm UTC](https://forums.unrealengine.com/t/ads-from-the-facebook-network-in-a-mobile-game-for-android/2217392 "2024-12-13T14:17:05Z")

</div>

Question about Facebook Ads Hi, I would like to implement banner ads from the Facebook ad network into my game. Is there a functional and reliable plugin that allows me to work solely with Bluepr…

---

## [Getting/setting layered material parameters using python](https://forums.unrealengine.com/t/getting-setting-layered-material-parameters-using-python/500660)

<div class="topic-metadata">

**Author:** [@deepsea1001](https://forums.unrealengine.com/u/deepsea1001)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 8:18am UTC](https://forums.unrealengine.com/t/getting-setting-layered-material-parameters-using-python/500660 "2024-12-13T08:18:51Z")

</div>

hi there, I am pretty new to scripting the editor (and unreal in general). Hopefully this is a quick question someone can help me with. I am trying to get/set a number of different parameters on a layered material inst…

---

## [How to edit/add the material layers of a Material or MaterialInstanceConstant with the python api](https://forums.unrealengine.com/t/how-to-edit-add-the-material-layers-of-a-material-or-materialinstanceconstant-with-the-python-api/550850)

<div class="topic-metadata">

**Author:** [@Njibhu](https://forums.unrealengine.com/u/Njibhu)\
**Replies:** 5\
**Last updated:** [December 12, 2024, 7:28am UTC](https://forums.unrealengine.com/t/how-to-edit-add-the-material-layers-of-a-material-or-materialinstanceconstant-with-the-python-api/550850 "2024-12-12T07:28:28Z")

</div>

I’m trying to dynamically edit a material instance to change the material layers in python but the documentation is not really clear how to do it. I find a lot of different classes in the documentation that seem to be r…

---

## [How can I modify the editor viewport layout configuration in C++?](https://forums.unrealengine.com/t/how-can-i-modify-the-editor-viewport-layout-configuration-in-c/2104369)

<div class="topic-metadata">

**Author:** [@Anonymous\_Kyborg](https://forums.unrealengine.com/u/Anonymous_Kyborg)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 6:54pm UTC](https://forums.unrealengine.com/t/how-can-i-modify-the-editor-viewport-layout-configuration-in-c/2104369 "2024-12-11T18:54:22Z")

</div>

I’m working on a plugin that saves and loads viewport settings. But I can’t seem to figure out how to get and set the viewport layout configuration for the active level editor viewport. I’ve been looking into the FLeve…

---

## [Can I create a feature in the Editor Utility Widget to modify the value of a component in a specific blueprint?](https://forums.unrealengine.com/t/can-i-create-a-feature-in-the-editor-utility-widget-to-modify-the-value-of-a-component-in-a-specific-blueprint/2204454)

<div class="topic-metadata">

**Author:** [@hysecha](https://forums.unrealengine.com/u/hysecha)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 4:32pm UTC](https://forums.unrealengine.com/t/can-i-create-a-feature-in-the-editor-utility-widget-to-modify-the-value-of-a-component-in-a-specific-blueprint/2204454 "2024-12-11T16:32:06Z")

</div>

I am just starting to learn about Editor Utility Widgets. I have been able to create basic functionalities by following guides, but I feel that my knowledge is still far from sufficient to create the features I want. Th…

---

## [Fix Up Redirections with Python command](https://forums.unrealengine.com/t/fix-up-redirections-with-python-command/1272254)

<div class="topic-metadata">

**Author:** [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 1:32pm UTC](https://forums.unrealengine.com/t/fix-up-redirections-with-python-command/1272254 "2024-12-09T13:32:02Z")

</div>

My workflow is following Move asset (by renaming) my\_asset from folder A to folder B. Create asset (by duplicating) with the same name (my\_asset) in folder A. unreal.EditorAssetLibrary.rename\_asset(assetA\_path, assetA…

---

## [Game Instance doesn't save Transforms](https://forums.unrealengine.com/t/game-instance-doesnt-save-transforms/2175329)

<div class="topic-metadata">

**Author:** [@Sh0gsyB0xy](https://forums.unrealengine.com/u/Sh0gsyB0xy)\
**Replies:** 2\
**Last updated:** [December 8, 2024, 2:35pm UTC](https://forums.unrealengine.com/t/game-instance-doesnt-save-transforms/2175329 "2024-12-08T14:35:38Z")

</div>

Hello! I created a Game Instance object. All Variables work when opening a new level with the same save system, but the transform always go back to default even though I save them previously and they print the correct S…

---

## [IDetailLayoutBuilder.GetProperty() does not work when the path refers to members of a class](https://forums.unrealengine.com/t/idetaillayoutbuilder-getproperty-does-not-work-when-the-path-refers-to-members-of-a-class/503448)

<div class="topic-metadata">

**Author:** [@Ais\_kamat](https://forums.unrealengine.com/u/Ais_kamat)\
**Replies:** 1\
**Last updated:** [December 6, 2024, 11:19am UTC](https://forums.unrealengine.com/t/idetaillayoutbuilder-getproperty-does-not-work-when-the-path-refers-to-members-of-a-class/503448 "2024-12-06T11:19:11Z")

</div>

I want to customise how a class is shown in the details panel. Access members of the class using GetProperty() always returns invalid handle. UCLASS() class UMyClass : public UObject { GENERATED\_BODY () public: UPR…

---

## [why it has a error?](https://forums.unrealengine.com/t/why-it-has-a-error/2159072)

<div class="topic-metadata">

**Author:** [@begintofall](https://forums.unrealengine.com/u/begintofall)\
**Replies:** 1\
**Last updated:** [December 1, 2024, 2:26am UTC](https://forums.unrealengine.com/t/why-it-has-a-error/2159072 "2024-12-01T02:26:17Z")

</div>

---

## [Viewport has suddenly gone black](https://forums.unrealengine.com/t/viewport-has-suddenly-gone-black/504640)

<div class="topic-metadata">

**Author:** [@RianeN](https://forums.unrealengine.com/u/RianeN)\
**Replies:** 6\
**Last updated:** [November 27, 2024, 2:02am UTC](https://forums.unrealengine.com/t/viewport-has-suddenly-gone-black/504640 "2024-11-27T02:02:03Z")

</div>

Using 4.26 but for some reason that tag wasn’t showing. I’ve never had this happen before and I’m perplexed. While working on my project, my viewport has suddenly turned pitch black. This is regardless if lit or unlit, …

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

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