# Editor Scripting

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

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

**Page:** 16

---

## [Saving error](https://forums.unrealengine.com/t/saving-error/464525)

<div class="topic-metadata">

**Author:** [@LocalDouchebag](https://forums.unrealengine.com/u/LocalDouchebag)\
**Replies:** 8\
**Last updated:** [August 10, 2023, 4:56am UTC](https://forums.unrealengine.com/t/saving-error/464525 "2023-08-10T04:56:26Z")

</div>

After cloning my project and lunching it, every thing I modify and save have error which says: The asset ‘/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter’ (ThirdPersonCharacter.uasset) failed to save. Cancel: Stop …

---

## [Setting Properties on Material Instances](https://forums.unrealengine.com/t/setting-properties-on-material-instances/127943)

<div class="topic-metadata">

**Author:** [@westcut](https://forums.unrealengine.com/u/westcut)\
**Replies:** 13\
**Last updated:** [August 9, 2023, 3:48pm UTC](https://forums.unrealengine.com/t/setting-properties-on-material-instances/127943 "2023-08-09T15:48:14Z")

</div>

Hello, I am trying to set some parameters on my material instance to automate the process and i made a simple instance to test it on. instance is already set to the reference. if i did scalar\_value= instance.get\_sc…

---

## [PYTHON : Cache memory management](https://forums.unrealengine.com/t/python-cache-memory-management/156419)

<div class="topic-metadata">

**Author:** [@RobJinn](https://forums.unrealengine.com/u/RobJinn)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 2:58am UTC](https://forums.unrealengine.com/t/python-cache-memory-management/156419 "2023-08-09T02:58:01Z")

</div>

Hi everybody. I have a question regarding python in unreal. I am testing the limits of a spawn actor tool from a json file and I using the “unreal.EditorLevelLibrary.spawn\_actor\_from\_object” function in for loop to spa…

---

## [Installing Python packages on Mac?](https://forums.unrealengine.com/t/installing-python-packages-on-mac/588727)

<div class="topic-metadata">

**Author:** [@nhausspiegel](https://forums.unrealengine.com/u/nhausspiegel)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 8:30am UTC](https://forums.unrealengine.com/t/installing-python-packages-on-mac/588727 "2023-08-08T08:30:48Z")

</div>

I’ve run into some problems when trying to install Python packages in Unreal (specifically scipy.) When I initially tried “import scipy” I got a ModuleNotFoundError, which didn’t happen when I imported time and os, for e…

---

## [Input actions not working in Game Mode blueprint?](https://forums.unrealengine.com/t/input-actions-not-working-in-game-mode-blueprint/140323)

<div class="topic-metadata">

**Author:** [@Eskel](https://forums.unrealengine.com/u/Eskel)\
**Replies:** 5\
**Last updated:** [August 3, 2023, 5:23pm UTC](https://forums.unrealengine.com/t/input-actions-not-working-in-game-mode-blueprint/140323 "2023-08-03T17:23:16Z")

</div>

I can’t find any documentation on this, but when I try to call any input action in the active Game Mode blueprint, it doesn’t fire. When I move it to a level blueprint, it does. What am I missing? Thanks

---

## [Is there a better way to handle this](https://forums.unrealengine.com/t/is-there-a-better-way-to-handle-this/449749)

<div class="topic-metadata">

**Author:** [@Nick200000](https://forums.unrealengine.com/u/Nick200000)\
**Replies:** 3\
**Last updated:** [May 29, 2019, 2:49pm UTC](https://forums.unrealengine.com/t/is-there-a-better-way-to-handle-this/449749 "2019-05-29T14:49:34Z")

</div>

Is there a better way to handle that situation. I want to apply a Slow Debuff (via Blueprintinterface) where only the strongest Slow actually slows me down. In this Setup I made it so the Duration and Strenght of the Sl…

---

## [How do you update static mesh's material with python API?](https://forums.unrealengine.com/t/how-do-you-update-static-meshs-material-with-python-api/1247483)

<div class="topic-metadata">

**Author:** [@BlueEyedJabber](https://forums.unrealengine.com/u/BlueEyedJabber)\
**Replies:** 0\
**Last updated:** [August 1, 2023, 8:38pm UTC](https://forums.unrealengine.com/t/how-do-you-update-static-meshs-material-with-python-api/1247483 "2023-08-01T20:38:08Z")

</div>

How do you update the static mesh’s material like you would in the editor? Below is current implementation. I don’t see in the API docs on where to do this. import unreal EAS = unreal.get\_edit…

---

## [Refreshing python scripts so Unreal Engine will see changes](https://forums.unrealengine.com/t/refreshing-python-scripts-so-unreal-engine-will-see-changes/1240363)

<div class="topic-metadata">

**Author:** [@BlueEyedJabber](https://forums.unrealengine.com/u/BlueEyedJabber)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 7:22am UTC](https://forums.unrealengine.com/t/refreshing-python-scripts-so-unreal-engine-will-see-changes/1240363 "2023-07-26T07:22:56Z")

</div>

I am currently trying to use Python to run scripts to build an environment. Python API here. I am running into a very time consuming issue where when I may changes to a script, UE is not seeing the script changes. I have…

---

## [TRASH\_StaticMeshComponent interfering with loop](https://forums.unrealengine.com/t/trash_staticmeshcomponent-interfering-with-loop/140902)

<div class="topic-metadata">

**Author:** [@glandeSaborAnana](https://forums.unrealengine.com/u/glandeSaborAnana)\
**Replies:** 5\
**Last updated:** [July 24, 2023, 10:46am UTC](https://forums.unrealengine.com/t/trash_staticmeshcomponent-interfering-with-loop/140902 "2023-07-24T10:46:52Z")

</div>

Hi! I need to change the value “Affect distance field lighting” in StaticMeshComponent inside a Blueprint to optimize our project. I managed to do it when I get a single index of the mesh array. However, when I use a f…

---

## [How to properly insert Engine-Default Enums in FStructs](https://forums.unrealengine.com/t/how-to-properly-insert-engine-default-enums-in-fstructs/436545)

<div class="topic-metadata">

**Author:** [@atanknomore](https://forums.unrealengine.com/u/atanknomore)\
**Replies:** 3\
**Last updated:** [July 23, 2023, 2:06pm UTC](https://forums.unrealengine.com/t/how-to-properly-insert-engine-default-enums-in-fstructs/436545 "2023-07-23T14:06:22Z")

</div>

I’m trying to make an FStruct to facilitate Function Input communication for Tracing. I’m using the instructions from this page: Here’s the .h USTRUCT(BlueprintType) struct FMakeTraceInfo //Declaration. This Struct i…

---

## [How to create DataAsset with C++ from BluePrint class](https://forums.unrealengine.com/t/how-to-create-dataasset-with-c-from-blueprint-class/211029)

<div class="topic-metadata">

**Author:** [@Andy\_rst](https://forums.unrealengine.com/u/Andy_rst)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 3:32pm UTC](https://forums.unrealengine.com/t/how-to-create-dataasset-with-c-from-blueprint-class/211029 "2023-07-22T15:32:07Z")

</div>

Hi Here is some problem with saving object that created from BluePrint class. What i have: Blueprint DataAseet inherited from UDataAsset. What i need: Create with C++ same type as my blue print DataAsset object and …

---

## [How to get keys for 'mha\_head\_ik\_ctrl' using python? Not a channel it seems](https://forums.unrealengine.com/t/how-to-get-keys-for-mha-head-ik-ctrl-using-python-not-a-channel-it-seems/1235535)

<div class="topic-metadata">

**Author:** [@virtualfilmer](https://forums.unrealengine.com/u/virtualfilmer)\
**Replies:** 0\
**Last updated:** [July 21, 2023, 6:29am UTC](https://forums.unrealengine.com/t/how-to-get-keys-for-mha-head-ik-ctrl-using-python-not-a-channel-it-seems/1235535 "2023-07-21T06:29:11Z")

</div>

Has anyone else found that “mha\_head\_ik\_ctrl” doesn’t appear as a Channel, when trying to get its keys from the Sequencer? I can get all the other MetaHuman face control board channels with “get\_all\_channels()” but this…

---

## [What are Google Play snapshots?](https://forums.unrealengine.com/t/what-are-google-play-snapshots/480816)

<div class="topic-metadata">

**Author:** [@Str1xiaN](https://forums.unrealengine.com/u/Str1xiaN)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 10:31am UTC](https://forums.unrealengine.com/t/what-are-google-play-snapshots/480816 "2023-07-20T10:31:21Z")

</div>

Does anyone know what the “Enable Snapshots on Google Play login” setting does and how to use it?

---

## [Is PrimaryAssetLabel broken?](https://forums.unrealengine.com/t/is-primaryassetlabel-broken/136383)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2709d010](https://forums.unrealengine.com/u/anonymous_user_2709d010)\
**Replies:** 9\
**Last updated:** [July 20, 2023, 9:10am UTC](https://forums.unrealengine.com/t/is-primaryassetlabel-broken/136383 "2023-07-20T09:10:35Z")

</div>

This is the best forum section I could find for my question. I have been trying for hours now to separate my pak file into chunks on disk. I followed all available posts here and did everything I can think of. PrimaryAs…

---

## [Linetrace from cursor location to world](https://forums.unrealengine.com/t/linetrace-from-cursor-location-to-world/137314)

<div class="topic-metadata">

**Author:** [@ste1nar](https://forums.unrealengine.com/u/ste1nar)\
**Replies:** 2\
**Last updated:** [July 20, 2023, 7:52am UTC](https://forums.unrealengine.com/t/linetrace-from-cursor-location-to-world/137314 "2023-07-20T07:52:55Z")

</div>

Looking for any blueprint solution to perform a linetrace from where the cursor is in the viewport to world, in that direction. Similar to “Get hit result under cursor”, player controller function. The class “ViewportIn…

---

## [Create StaticMeshComponent attached under a SceneComponent](https://forums.unrealengine.com/t/create-staticmeshcomponent-attached-under-a-scenecomponent/1230528)

<div class="topic-metadata">

**Author:** [@m1dhun](https://forums.unrealengine.com/u/m1dhun)\
**Replies:** 1\
**Last updated:** [July 16, 2023, 10:44am UTC](https://forums.unrealengine.com/t/create-staticmeshcomponent-attached-under-a-scenecomponent/1230528 "2023-07-16T10:44:40Z")

</div>

I have an actor in the scene, with a sub actor, that has SceneComponents in the details tab There are a lot of these scene components and I want to spawn meshes from the asset libray there, I had no trouble creating th…

---

## [How to find out binary size of a UStruct?](https://forums.unrealengine.com/t/how-to-find-out-binary-size-of-a-ustruct/485929)

<div class="topic-metadata">

**Author:** [@k\_a\_s\_s\_k\_a\_s\_s](https://forums.unrealengine.com/u/k_a_s_s_k_a_s_s)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 1:13pm UTC](https://forums.unrealengine.com/t/how-to-find-out-binary-size-of-a-ustruct/485929 "2023-07-12T13:13:46Z")

</div>

For a given dynamically-sized serializable USTRUCT, i.e. USTRUCT() FSomeStruct { GENERATED\_BODY() UPROPRETY() TArray\<float\> SomeData; UPROPRETY() FString SomeString; friend FArchive& operator\<\< (FAr…

---

## [geometry script](https://forums.unrealengine.com/t/geometry-script/1224158)

<div class="topic-metadata">

**Author:** [@red\_wolf\_2000](https://forums.unrealengine.com/u/red_wolf_2000)\
**Replies:** 0\
**Last updated:** [July 9, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/geometry-script/1224158 "2023-07-09T17:01:19Z")

</div>

Having a problem with the geometry script plug-in it’s not letting me package my product even when I disable it it still doesn’t let me And I kind of need it to work because I made all of my levels with it

---

## [I don't find 'for loop' for array](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_76bc96c6](https://forums.unrealengine.com/u/anonymous_user_76bc96c6)\
**Replies:** 28\
**Last updated:** [July 7, 2023, 1:13pm UTC](https://forums.unrealengine.com/t/i-dont-find-for-loop-for-array/477970 "2023-07-07T13:13:00Z")

</div>

I just have ForEach…Niagara and the shortcut with F doesn’t work.

---

## [Running Python Scripts from Blueprints - Should be possible \> 4.23?](https://forums.unrealengine.com/t/running-python-scripts-from-blueprints-should-be-possible-4-23/142756)

<div class="topic-metadata">

**Author:** [@schiho](https://forums.unrealengine.com/u/schiho)\
**Replies:** 3\
**Last updated:** [July 7, 2023, 6:58am UTC](https://forums.unrealengine.com/t/running-python-scripts-from-blueprints-should-be-possible-4-23/142756 "2023-07-07T06:58:30Z")

</div>

In a previous post from Jamie, he wrote “…,\*\* but I’ve also added Python specific functions for 4.23.\*\*” Which ones are those, I only see “Make PythonLogOutputEntry” is that it? Cheers

---

## [Automatically looping over world partition cells and spawning/deleting actors](https://forums.unrealengine.com/t/automatically-looping-over-world-partition-cells-and-spawning-deleting-actors/1221276)

<div class="topic-metadata">

**Author:** [@PaperMartin](https://forums.unrealengine.com/u/PaperMartin)\
**Replies:** 0\
**Last updated:** [July 6, 2023, 1:39pm UTC](https://forums.unrealengine.com/t/automatically-looping-over-world-partition-cells-and-spawning-deleting-actors/1221276 "2023-07-06T13:39:28Z")

</div>

ok this is a pretty wide question : I’ve got some experience with houdini now, but no experience with making tools in unreal I want to, in houdini, generate a large network of roads and rivers meant for an open world g…

---

## [Multi job render : MoviePipelimeExempleRuntimeExecutor](https://forums.unrealengine.com/t/multi-job-render-moviepipelimeexempleruntimeexecutor/1211065)

<div class="topic-metadata">

**Author:** [@TomInterdigital](https://forums.unrealengine.com/u/TomInterdigital)\
**Replies:** 0\
**Last updated:** [June 26, 2023, 12:17pm UTC](https://forums.unrealengine.com/t/multi-job-render-moviepipelimeexempleruntimeexecutor/1211065 "2023-06-26T12:17:05Z")

</div>

Hello ! I would like to reuse the exemple from unreal MoviePipelimeExempleRuntimeExecutor, but as they say in the on\_movie\_pipeline\_finished function : “If your queue had more than one job, now would be the time to incr…

---

## [How to cast result of spawn\_and\_register\_tab in Python](https://forums.unrealengine.com/t/how-to-cast-result-of-spawn_and_register_tab-in-python/459113)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b1aa6f5f](https://forums.unrealengine.com/u/anonymous_user_b1aa6f5f)\
**Replies:** 1\
**Last updated:** [June 30, 2023, 1:06am UTC](https://forums.unrealengine.com/t/how-to-cast-result-of-spawn_and_register_tab-in-python/459113 "2023-06-30T01:06:45Z")

</div>

I’d like to be able to spawn an EditorUtilityWidget from Python and then call functions or set properties on it. In Blueprint it works – like so: In Python, however, I can’t seem to figure out how to cast the return …

---

## [Creating widgets inside a transaction (and calling Undo)](https://forums.unrealengine.com/t/creating-widgets-inside-a-transaction-and-calling-undo/1213497)

<div class="topic-metadata">

**Author:** [@MarcelSchulte](https://forums.unrealengine.com/u/MarcelSchulte)\
**Replies:** 1\
**Last updated:** [June 29, 2023, 2:04pm UTC](https://forums.unrealengine.com/t/creating-widgets-inside-a-transaction-and-calling-undo/1213497 "2023-06-29T14:04:30Z")

</div>

Hello, I am fairly new to editor scripting in unreal and I want to implement undo/redo functionality for my EditorUtilityWidget. Inside my widget i frequently spawn custom UserWidgets, for example as editable nodes. I …

---

## [Batch Export selected Texture2Ds using export\_to\_disk doesn't work as expected](https://forums.unrealengine.com/t/batch-export-selected-texture2ds-using-export-to-disk-doesnt-work-as-expected/1212552)

<div class="topic-metadata">

**Author:** [@defaux](https://forums.unrealengine.com/u/defaux)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 4:55pm UTC](https://forums.unrealengine.com/t/batch-export-selected-texture2ds-using-export-to-disk-doesnt-work-as-expected/1212552 "2023-06-27T16:55:17Z")

</div>

Hello there! I’m currently attempting to utilize the .export\_to\_disk function of a Python object in order to export specific textures. However, in order to utilize this feature, I must modify the compression type of the …

---

## [Start Level Editor Pixel Streaming With CLI?](https://forums.unrealengine.com/t/start-level-editor-pixel-streaming-with-cli/1212434)

<div class="topic-metadata">

**Author:** [@Dev\_spike0203](https://forums.unrealengine.com/u/Dev_spike0203)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 3:13pm UTC](https://forums.unrealengine.com/t/start-level-editor-pixel-streaming-with-cli/1212434 "2023-06-27T15:13:41Z")

</div>

The question is pretty much in the title. I am trying to start level editor pixel streaming through a terminal on Windows. I am using my own streaming server, so I don’t need the remote streaming server. If anyone has an…

---

## [Attach actors in editor and keep local transform](https://forums.unrealengine.com/t/attach-actors-in-editor-and-keep-local-transform/245596)

<div class="topic-metadata">

**Author:** [@CrashedDown](https://forums.unrealengine.com/u/CrashedDown)\
**Replies:** 2\
**Last updated:** [June 21, 2023, 9:13pm UTC](https://forums.unrealengine.com/t/attach-actors-in-editor-and-keep-local-transform/245596 "2023-06-21T21:13:44Z")

</div>

I have a game built with little levels made of blocks. Occasionally a bug will make these blocks detach themselves from the parent actor in the editor (Not while running the game). Usually if I update the parent blueprin…

---

## [Structure vs Objects. Which to use to organize a lot of datas?](https://forums.unrealengine.com/t/structure-vs-objects-which-to-use-to-organize-a-lot-of-datas/500036)

<div class="topic-metadata">

**Author:** [@Arnesto\_del\_Montagne](https://forums.unrealengine.com/u/Arnesto_del_Montagne)\
**Replies:** 1\
**Last updated:** [February 20, 2022, 4:30pm UTC](https://forums.unrealengine.com/t/structure-vs-objects-which-to-use-to-organize-a-lot-of-datas/500036 "2022-02-20T16:30:08Z")

</div>

Hey there, in my project there is a very tall amount of datas (10.000 - 100.000 Objects / set of data). First I organized everything as Objects. There were a lot of Objects with several variables and these objects had …

---

## [How i update a variable inside my widget blueprint from my blueprint actor and make it to work even if blueprint actor have more than one copy (instance) in the game?](https://forums.unrealengine.com/t/how-i-update-a-variable-inside-my-widget-blueprint-from-my-blueprint-actor-and-make-it-to-work-even-if-blueprint-actor-have-more-than-one-copy-instance-in-the-game/331527)

<div class="topic-metadata">

**Author:** [@buscas31](https://forums.unrealengine.com/u/buscas31)\
**Replies:** 17\
**Last updated:** [June 17, 2023, 8:51am UTC](https://forums.unrealengine.com/t/how-i-update-a-variable-inside-my-widget-blueprint-from-my-blueprint-actor-and-make-it-to-work-even-if-blueprint-actor-have-more-than-one-copy-instance-in-the-game/331527 "2023-06-17T08:51:08Z")

</div>

How i update a variable inside my widget blueprint from my blueprint actor and make it to work even if blueprint actor have more than one copy (instance) in the game? Soo…i have this blueprint actor called “door”. this …

---

## [How do I reference my particle system in code?](https://forums.unrealengine.com/t/how-do-i-reference-my-particle-system-in-code/337253)

<div class="topic-metadata">

**Author:** [@LostScout](https://forums.unrealengine.com/u/LostScout)\
**Replies:** 5\
**Last updated:** [June 17, 2023, 4:14am UTC](https://forums.unrealengine.com/t/how-do-i-reference-my-particle-system-in-code/337253 "2023-06-17T04:14:50Z")

</div>

In the tutorial for Variables, timers and, events near the end, you are shown how to create a particle emitter via Blueprint. I was curious about how to achieve this through code as opposed to Blueprints. I have checked …

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

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