# Editor Scripting

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

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

**Page:** 15

---

## [Executing Python with Web Remote Control](https://forums.unrealengine.com/t/executing-python-with-web-remote-control/156550)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_92f4c823](https://forums.unrealengine.com/u/anonymous_user_92f4c823)\
**Replies:** 3\
**Last updated:** [September 19, 2023, 2:47pm UTC](https://forums.unrealengine.com/t/executing-python-with-web-remote-control/156550 "2023-09-19T14:47:05Z")

</div>

Hi all! I’m attempting to create a remote instance of Unreal that will be able to able to use HighResScreenshot (or Pythons equivalent command) or render sequences. I’ve tried running a Python server directly in Unreal …

---

## [How do you save GameInstance?](https://forums.unrealengine.com/t/how-do-you-save-gameinstance/407735)

<div class="topic-metadata">

**Author:** [@krishcrush](https://forums.unrealengine.com/u/krishcrush)\
**Replies:** 5\
**Last updated:** [September 19, 2023, 8:50am UTC](https://forums.unrealengine.com/t/how-do-you-save-gameinstance/407735 "2023-09-19T08:50:50Z")

</div>

GameInstance exists for as long as the game is running. Exit the game and the data is lost. SaveGameObject gives you a chance to save the data directly to the hard drive and load it back again. The data does not have to…

---

## [So, are Editor Utility Widgets disabled also when PIE in 5.2?](https://forums.unrealengine.com/t/so-are-editor-utility-widgets-disabled-also-when-pie-in-5-2/1285080)

<div class="topic-metadata">

**Author:** [@Cosimo\_R](https://forums.unrealengine.com/u/Cosimo_R)\
**Replies:** 1\
**Last updated:** [September 18, 2023, 12:05pm UTC](https://forums.unrealengine.com/t/so-are-editor-utility-widgets-disabled-also-when-pie-in-5-2/1285080 "2023-09-18T12:05:53Z")

</div>

Apparently after updating to 5.2, I’m only able to use an Editor Utility Widget when in the editor and not while PIE or simulating. Is there something I should specify besides ticking “IsEnabled” check box? It would be…

---

## [UE5 C++ 1 - How To Read and Write Text Files with C++?](https://forums.unrealengine.com/t/ue5-c-1-how-to-read-and-write-text-files-with-c/1300367)

<div class="topic-metadata">

**Author:** [@AlexQuevillon](https://forums.unrealengine.com/u/AlexQuevillon)\
**Replies:** 0\
**Last updated:** [September 17, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/ue5-c-1-how-to-read-and-write-text-files-with-c/1300367 "2023-09-17T15:55:53Z")

</div>

Using FPlatformFileManager & FFileHelper, it’s pretty easy to read and write any text file. Just need to know that the functions exist!

---

## [How do I save attached Actors to a SaveGame?](https://forums.unrealengine.com/t/how-do-i-save-attached-actors-to-a-savegame/387662)

<div class="topic-metadata">

**Author:** [@Lexyth](https://forums.unrealengine.com/u/Lexyth)\
**Replies:** 10\
**Last updated:** [September 17, 2023, 12:11am UTC](https://forums.unrealengine.com/t/how-do-i-save-attached-actors-to-a-savegame/387662 "2023-09-17T00:11:42Z")

</div>

Hello, I’m working on a Game where you can basically attach Blocks togther. I attach them using the Attach Actor to Component node, without using Sockets. I want to be able to save entire Constructions to a Savegame and …

---

## [My own dropdown menu in editor](https://forums.unrealengine.com/t/my-own-dropdown-menu-in-editor/1297159)

<div class="topic-metadata">

**Author:** [@Vifi](https://forums.unrealengine.com/u/Vifi)\
**Replies:** 0\
**Last updated:** [September 15, 2023, 1:13pm UTC](https://forums.unrealengine.com/t/my-own-dropdown-menu-in-editor/1297159 "2023-09-15T13:13:03Z")

</div>

Hi, i am using UE 5.2 and i wonder if there is some way to put your own dropdown menu in editor most top toolbar and put there Editor Utility Widgets startup buttons? I found that there should be something similar under…

---

## [Old save game data being put in packaged build?](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2ddb408f](https://forums.unrealengine.com/u/anonymous_user_2ddb408f)\
**Replies:** 8\
**Last updated:** [September 15, 2023, 3:43am UTC](https://forums.unrealengine.com/t/old-save-game-data-being-put-in-packaged-build/410375 "2023-09-15T03:43:41Z")

</div>

Recently I packaged my game for its newest update on Gamejolt, I clicked the exe to play it just to make sure that everything not through the editor and I noticed that there was game data already in it, right after being…

---

## [How to spawn actor from Python scripting?](https://forums.unrealengine.com/t/how-to-spawn-actor-from-python-scripting/427373)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_354634ee](https://forums.unrealengine.com/u/anonymous_user_354634ee)\
**Replies:** 9\
**Last updated:** [September 14, 2023, 11:30pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actor-from-python-scripting/427373 "2023-09-14T23:30:19Z")

</div>

How do I spawn an actor to the level with the usage of the Python scripting plugin that comes built-in with Unreal Engine \>= 4.19? (That is, without using Unreal Studio) Is it even possible outside of Unreal Studio? Why …

---

## [Editor lost response when I try to use ViewModel in EditorWidget?](https://forums.unrealengine.com/t/editor-lost-response-when-i-try-to-use-viewmodel-in-editorwidget/1295056)

<div class="topic-metadata">

**Author:** [@FourRoadTitans](https://forums.unrealengine.com/u/FourRoadTitans)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 9:17am UTC](https://forums.unrealengine.com/t/editor-lost-response-when-i-try-to-use-viewmodel-in-editorwidget/1295056 "2023-09-14T09:17:56Z")

</div>

---

## [How to Move Keyframes Along the Timeline Using the Sequencer Scripting Plugin?](https://forums.unrealengine.com/t/how-to-move-keyframes-along-the-timeline-using-the-sequencer-scripting-plugin/751901)

<div class="topic-metadata">

**Author:** [@Taos.Whittaker](https://forums.unrealengine.com/u/Taos.Whittaker)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 9:44pm UTC](https://forums.unrealengine.com/t/how-to-move-keyframes-along-the-timeline-using-the-sequencer-scripting-plugin/751901 "2023-09-13T21:44:17Z")

</div>

I’m trying to create a custom Editor Utility Widget that can import camera tracks and adjust the start frame so it can begin at 1001 for certain shots. I have gone down the Sequencer Scripting route and can import the ke…

---

## [Python - OpenStack - pickle dump and load](https://forums.unrealengine.com/t/python-openstack-pickle-dump-and-load/119922)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8b08730b](https://forums.unrealengine.com/u/anonymous_user_8b08730b)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 7:03am UTC](https://forums.unrealengine.com/t/python-openstack-pickle-dump-and-load/119922 "2023-09-13T07:03:06Z")

</div>

Hi all, hope you can help me. The problem is the following. I create an object in python, consisting of some lists. I save this object to a file using pickle.dump and load it using pickle.load. Everything works fine and…

---

## [when you press the play button, the project starts late](https://forums.unrealengine.com/t/when-you-press-the-play-button-the-project-starts-late/1291468)

<div class="topic-metadata">

**Author:** [@IsmailKermeli](https://forums.unrealengine.com/u/IsmailKermeli)\
**Replies:** 0\
**Last updated:** [September 11, 2023, 6:20pm UTC](https://forums.unrealengine.com/t/when-you-press-the-play-button-the-project-starts-late/1291468 "2023-09-11T18:20:43Z")

</div>

Hello, I have Unreal Engine 5.1 installed on my computer. When I open a project and press the “Play” button, it starts almost instantly. However, I am developing a game with a friend using Perforce Helix. After I pulled …

---

## [can i add new library into plugin?](https://forums.unrealengine.com/t/can-i-add-new-library-into-plugin/156827)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_35ed7544](https://forums.unrealengine.com/u/anonymous_user_35ed7544)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 1:03pm UTC](https://forums.unrealengine.com/t/can-i-add-new-library-into-plugin/156827 "2023-09-08T13:03:11Z")

</div>

I am writing a python script with the python plugin. However, the plugin doesn’t have any three-party library like “nltk”. How can apply the three-party library in UE4.26?

---

## [How to make audio not restart when walk in and out of a trigger? UE5](https://forums.unrealengine.com/t/how-to-make-audio-not-restart-when-walk-in-and-out-of-a-trigger-ue5/561648)

<div class="topic-metadata">

**Author:** [@ChildEat3r](https://forums.unrealengine.com/u/ChildEat3r)\
**Replies:** 1\
**Last updated:** [May 29, 2022, 10:30pm UTC](https://forums.unrealengine.com/t/how-to-make-audio-not-restart-when-walk-in-and-out-of-a-trigger-ue5/561648 "2022-05-29T22:30:08Z")

</div>

My goal is to make it so when I walk out of a trigger the end overlap fades out the music. Then when I walk back in, the music continues where it left off. Here is a photo of my Event Graph (In level BP). Here’s the…

---

## [Getting attribute curve track names in python.](https://forums.unrealengine.com/t/getting-attribute-curve-track-names-in-python/468280)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b58cf9e8](https://forums.unrealengine.com/u/anonymous_user_b58cf9e8)\
**Replies:** 1\
**Last updated:** [September 5, 2023, 1:01pm UTC](https://forums.unrealengine.com/t/getting-attribute-curve-track-names-in-python/468280 "2023-09-05T13:01:51Z")

</div>

I am trying to get a list of animation attribute curve tracks using the Unreal editor python api. I can easily get a list of bone tracks using unreal.AnimationLibrary.get\_animation\_track\_names. However, this only returns…

---

## [Custom blueprint nodes defined in python need to be refreshed every time I reopen the editor](https://forums.unrealengine.com/t/custom-blueprint-nodes-defined-in-python-need-to-be-refreshed-every-time-i-reopen-the-editor/146413)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a223195b](https://forums.unrealengine.com/u/anonymous_user_a223195b)\
**Replies:** 11\
**Last updated:** [September 4, 2023, 8:43am UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-defined-in-python-need-to-be-refreshed-every-time-i-reopen-the-editor/146413 "2023-09-04T08:43:05Z")

</div>

I have two python files of interest here: “dapi” and “init\_unreal” “dapi” contains code for custom blueprint nodes (like “Launch UI” in the screenshot). “init\_unreal” only contains two statements : “import unreal” and “…

---

## [MovieSceneSequence.find\_binding\_by\_name cannot find binding](https://forums.unrealengine.com/t/moviescenesequence-find_binding_by_name-cannot-find-binding/157580)

<div class="topic-metadata">

**Author:** [@Chad\_Vernon](https://forums.unrealengine.com/u/Chad_Vernon)\
**Replies:** 2\
**Last updated:** [September 3, 2023, 6:26am UTC](https://forums.unrealengine.com/t/moviescenesequence-find_binding_by_name-cannot-find-binding/157580 "2023-09-03T06:26:33Z")

</div>

I’m trying to use the function, MovieSceneSequence.find\_binding\_by\_name, but it does not seem to work as advertised. I can see there is a binding with that name in the sequence, but the function does not return the bindi…

---

## [Knowledge Base: UE4 Sequencer Python Cookbook](https://forums.unrealengine.com/t/knowledge-base-ue4-sequencer-python-cookbook/265097)

<div class="topic-metadata">

**Author:** [@RudyTriplett](https://forums.unrealengine.com/u/RudyTriplett)\
**Replies:** 9\
**Last updated:** [September 3, 2023, 12:01am UTC](https://forums.unrealengine.com/t/knowledge-base-ue4-sequencer-python-cookbook/265097 "2023-09-03T00:01:27Z")

</div>

Article written by Euan C. UE4 Sequencer Python Cookbook Fundamentals Sequencer is a cinematic editing tool that uses various specialized tracks which are used to define the makeup of scenes. This document will be fo…

---

## [One File Per Actor - Toggle option not found, where is it?](https://forums.unrealengine.com/t/one-file-per-actor-toggle-option-not-found-where-is-it/1278653)

<div class="topic-metadata">

**Author:** [@Lenka\_Mag](https://forums.unrealengine.com/u/Lenka_Mag)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 11:21am UTC](https://forums.unrealengine.com/t/one-file-per-actor-toggle-option-not-found-where-is-it/1278653 "2023-08-31T11:21:38Z")

</div>

I opened Editor Preferences \> Experimental \> Tools \> Don’t see the option to enable ofpa please help

---

## [Call a blueprint class function from Python](https://forums.unrealengine.com/t/call-a-blueprint-class-function-from-python/146171)

<div class="topic-metadata">

**Author:** [@younesouhbi](https://forums.unrealengine.com/u/younesouhbi)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 7:50am UTC](https://forums.unrealengine.com/t/call-a-blueprint-class-function-from-python/146171 "2023-08-31T07:50:29Z")

</div>

It is possible to set variables of blueprint classes from Python as shown here: Can you edit a Blueprint Variable from Python? - Editor Scripting - Unreal Engine Forums. However, it is possible to call a function that is…

---

## [Duplicated Class error](https://forums.unrealengine.com/t/duplicated-class-error/1193144)

<div class="topic-metadata">

**Author:** [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Replies:** 9\
**Last updated:** [August 30, 2023, 10:07am UTC](https://forums.unrealengine.com/t/duplicated-class-error/1193144 "2023-08-30T10:07:46Z")

</div>

I did a plugin for UE4.26 that works ok. Now I am working on UE4.27 and I try to use the same plugin but it fails when I try to launch de game on the device. It claims I have a duplicated class. Is there a way to disabl…

---

## [How do I Register ActorComponents in UE5 blueprints?](https://forums.unrealengine.com/t/how-do-i-register-actorcomponents-in-ue5-blueprints/504907)

<div class="topic-metadata">

**Author:** [@JPMcWhiskers](https://forums.unrealengine.com/u/JPMcWhiskers)\
**Replies:** 3\
**Last updated:** [August 30, 2023, 2:38am UTC](https://forums.unrealengine.com/t/how-do-i-register-actorcomponents-in-ue5-blueprints/504907 "2023-08-30T02:38:12Z")

</div>

Hi! Long time reader, first time poster. Quick question for you all with a bit of background: I am currently using Unreal Engine 5 preview 1. Trying to create some simple procedurally created buildings by gluing a bu…

---

## [How can FVector pretends as USTRUCT?](https://forums.unrealengine.com/t/how-can-fvector-pretends-as-ustruct/408928)

<div class="topic-metadata">

**Author:** [@Rexion\_ize](https://forums.unrealengine.com/u/Rexion_ize)\
**Replies:** 4\
**Last updated:** [August 29, 2023, 8:58am UTC](https://forums.unrealengine.com/t/how-can-fvector-pretends-as-ustruct/408928 "2023-08-29T08:58:12Z")

</div>

In Vector.h, FVector isn’t declared as USTRUCT. But in Blueprint, it works as USTRUCT. How is it possible? Can I make a similar one?

---

## [Convert "MaterialInstanceConstant" to "MaterialInstanceDynamic" with Python. (or create MID)](https://forums.unrealengine.com/t/convert-materialinstanceconstant-to-materialinstancedynamic-with-python-or-create-mid/1264999)

<div class="topic-metadata">

**Author:** [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 11:35am UTC](https://forums.unrealengine.com/t/convert-materialinstanceconstant-to-materialinstancedynamic-with-python-or-create-mid/1264999 "2023-08-28T11:35:32Z")

</div>

I want to change Texture2D parameter in given MaterialInstance class with Python. Code new\_material.set\_texture\_parameter\_value("UnderwearMask",torso\_mask) Invokes with error LogPython: Error: AttributeError: ‘Mat…

---

## [How to make Curve from interpcurve struct and other way around ?](https://forums.unrealengine.com/t/how-to-make-curve-from-interpcurve-struct-and-other-way-around/422708)

<div class="topic-metadata">

**Author:** [@FrederickD](https://forums.unrealengine.com/u/FrederickD)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 10:19am UTC](https://forums.unrealengine.com/t/how-to-make-curve-from-interpcurve-struct-and-other-way-around/422708 "2023-08-28T10:19:20Z")

</div>

I recently found out you can set a timeline’s track curve to a curve asset dynamicaly, pretty powerfull… Now i also find the 'Make InterpCurve Float/Vector/etc ’ nodes… Where are these used ? Is there a way to create a…

---

## [Change component variables on Blueprint class via Python](https://forums.unrealengine.com/t/change-component-variables-on-blueprint-class-via-python/152584)

<div class="topic-metadata">

**Author:** [@Swinny](https://forums.unrealengine.com/u/Swinny)\
**Replies:** 2\
**Last updated:** [August 23, 2023, 8:52pm UTC](https://forums.unrealengine.com/t/change-component-variables-on-blueprint-class-via-python/152584 "2023-08-23T20:52:40Z")

</div>

Hi, I’m stuck on trying to get the components of a blueprint actors default class, I can set the base properties with no problem - its then accessing the child components. Also get\_component\_by\_type doesnt seem to work t…

---

## [How to set up city sample vehicles to be destructible?](https://forums.unrealengine.com/t/how-to-set-up-city-sample-vehicles-to-be-destructible/535303)

<div class="topic-metadata">

**Author:** [@Sengchor](https://forums.unrealengine.com/u/Sengchor)\
**Replies:** 8\
**Last updated:** [August 23, 2023, 2:53pm UTC](https://forums.unrealengine.com/t/how-to-set-up-city-sample-vehicles-to-be-destructible/535303 "2023-08-23T14:53:38Z")

</div>

I have downloaded city sample vehicles but I can’t find the way to implement the destruction. I also have downloaded city simple full project and try to look into blueprint but I can’t find the way to extract the only ve…

---

## [Python, get the package, namespace and key of an unreal.Text](https://forums.unrealengine.com/t/python-get-the-package-namespace-and-key-of-an-unreal-text/1264234)

<div class="topic-metadata">

**Author:** [@pgauthier\_pdg](https://forums.unrealengine.com/u/pgauthier_pdg)\
**Replies:** 5\
**Last updated:** [August 22, 2023, 12:07pm UTC](https://forums.unrealengine.com/t/python-get-the-package-namespace-and-key-of-an-unreal-text/1264234 "2023-08-22T12:07:24Z")

</div>

Hello, I’m extracting dialog text for localisation and I can get the text line as an unreal.Text object. However, I can’t find a way to get the package, namespace and key that I see when hovering the text in the editor…

---

## [material properties: pixel depth offset not found in python api](https://forums.unrealengine.com/t/material-properties-pixel-depth-offset-not-found-in-python-api/1264055)

<div class="topic-metadata">

**Author:** [@dqpan](https://forums.unrealengine.com/u/dqpan)\
**Replies:** 0\
**Last updated:** [August 17, 2023, 4:02pm UTC](https://forums.unrealengine.com/t/material-properties-pixel-depth-offset-not-found-in-python-api/1264055 "2023-08-17T16:02:30Z")

</div>

I want to connect the texture to the pixel depth offset of material, by using unreal.MaterialEditingLibrary. connect\_material\_property. but i can not found the property enum in unreal.MaterialProperty

---

## [How to update material on static mesh with a python script?](https://forums.unrealengine.com/t/how-to-update-material-on-static-mesh-with-a-python-script/1247486)

<div class="topic-metadata">

**Author:** [@BlueEyedJabber](https://forums.unrealengine.com/u/BlueEyedJabber)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 1:25pm UTC](https://forums.unrealengine.com/t/how-to-update-material-on-static-mesh-with-a-python-script/1247486 "2023-08-10T13:25:16Z")

</div>

How do you update the static mesh’s material like you would in the editor? I don’t see in the API docs on where to do this. It doesn’t seem as straight forward as it should be. Below is current implementation. im…

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

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