# Editor Scripting

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

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

**Page:** 52

---

## [set actor label in editor utility widget](https://forums.unrealengine.com/t/set-actor-label-in-editor-utility-widget/144212)

<div class="topic-metadata">

**Author:** [@YuuJin](https://forums.unrealengine.com/u/YuuJin)\
**Replies:** 6\
**Last updated:** [May 28, 2020, 9:46am UTC](https://forums.unrealengine.com/t/set-actor-label-in-editor-utility-widget/144212 "2020-05-28T09:46:30Z")

</div>

so I was watching this video and I was looking for some kinda function that looked like that in an editor utility widget, seeing as how in the video it was being done on just a regular actor, how would I t…

---

## [Replace Material Script](https://forums.unrealengine.com/t/replace-material-script/144524)

<div class="topic-metadata">

**Author:** [@KM3d300](https://forums.unrealengine.com/u/KM3d300)\
**Replies:** 1\
**Last updated:** [May 27, 2020, 5:53am UTC](https://forums.unrealengine.com/t/replace-material-script/144524 "2020-05-27T05:53:42Z")

</div>

Does anyone have a material script that replaces x material with y material? The example script floating around, fails to run at all even after editing to the correct material names. I’ve been using python for like 10y…

---

## [Need help with creating a Health Regen System](https://forums.unrealengine.com/t/need-help-with-creating-a-health-regen-system/223167)

<div class="topic-metadata">

**Author:** [@DeviljhoDan](https://forums.unrealengine.com/u/DeviljhoDan)\
**Replies:** 0\
**Last updated:** [May 26, 2020, 9:01pm UTC](https://forums.unrealengine.com/t/need-help-with-creating-a-health-regen-system/223167 "2020-05-26T21:01:46Z")

</div>

Hello, sorry if this has been asked before. I’m developing a system for a game that depletes health when you lose food and or water, but you regen your health back when you have food or water. I’ve gotten the depletion …

---

## [How to change multiple material parameter "Shading Model"](https://forums.unrealengine.com/t/how-to-change-multiple-material-parameter-shading-model/144386)

<div class="topic-metadata">

**Author:** [@oumin](https://forums.unrealengine.com/u/oumin)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/how-to-change-multiple-material-parameter-shading-model/144386 "2020-05-25T13:26:19Z")

</div>

Hi, I have a problem. There are so many materials, and I want to change all of these material’s “Shading Model” parameter, “Default Lit” to “Unlit”. What is the best way to solve it? I really don’t want to change it …

---

## [Procedural Combobox as Blueprint Parameter](https://forums.unrealengine.com/t/procedural-combobox-as-blueprint-parameter/144060)

<div class="topic-metadata">

**Author:** [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 12:40pm UTC](https://forums.unrealengine.com/t/procedural-combobox-as-blueprint-parameter/144060 "2020-05-25T12:40:22Z")

</div>

Hi there. The Situation is as follows: I created a RPG Item Editor and a Randomizer for the Item Stats, Prefix and Suffix use. Now I can create a List of generated Item Names and store them inside my Content Folder (c…

---

## [Why can't I cast to PlayerState inside SaveGame Blueprint?](https://forums.unrealengine.com/t/why-cant-i-cast-to-playerstate-inside-savegame-blueprint/463393)

<div class="topic-metadata">

**Author:** [@stuck\_compiling](https://forums.unrealengine.com/u/stuck_compiling)\
**Replies:** 4\
**Last updated:** [May 24, 2020, 2:59pm UTC](https://forums.unrealengine.com/t/why-cant-i-cast-to-playerstate-inside-savegame-blueprint/463393 "2020-05-24T14:59:23Z")

</div>

I need to read some variables from a PlayerState and I can cast into it without any issues during gameplay. If I try to cast to it in a SaveGame Blueprint, I don’t have the option to add nodes “Get Player Controller (0)”…

---

## [Automating asset setup using python](https://forums.unrealengine.com/t/automating-asset-setup-using-python/143477)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9c9b258c1](https://forums.unrealengine.com/u/anonymous_user_9c9b258c1)\
**Replies:** 1\
**Last updated:** [May 24, 2020, 1:43pm UTC](https://forums.unrealengine.com/t/automating-asset-setup-using-python/143477 "2020-05-24T13:43:08Z")

</div>

I’ve been trying to automate our asset pipeline with python, but I keep running into issues at every corner. Others seems to have run into similar issues before on this forum but I haven’t seen a solution yet. I have a …

---

## [Python API Documentation for Previous Engine Versions](https://forums.unrealengine.com/t/python-api-documentation-for-previous-engine-versions/144259)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6d1ab90c](https://forums.unrealengine.com/u/anonymous_user_6d1ab90c)\
**Replies:** 1\
**Last updated:** [May 24, 2020, 1:28pm UTC](https://forums.unrealengine.com/t/python-api-documentation-for-previous-engine-versions/144259 "2020-05-24T13:28:29Z")

</div>

Is there a way to access the python api documentation for previous engine versions? All of my searches have come up negative.

---

## [How to sort an array?](https://forums.unrealengine.com/t/how-to-sort-an-array/464874)

<div class="topic-metadata">

**Author:** [@stuck\_compiling](https://forums.unrealengine.com/u/stuck_compiling)\
**Replies:** 3\
**Last updated:** [May 23, 2020, 10:11am UTC](https://forums.unrealengine.com/t/how-to-sort-an-array/464874 "2020-05-23T10:11:03Z")

</div>

I have some integers in an array and I need to sort them by value, but I don’t think making a botched unflexible multiplexer is a good solution, especially as I might need to replace integers with structs. What is the co…

---

## [How to use Unreal Insights for networking?](https://forums.unrealengine.com/t/how-to-use-unreal-insights-for-networking/223144)

<div class="topic-metadata">

**Author:** [@DentonJC](https://forums.unrealengine.com/u/DentonJC)\
**Replies:** 0\
**Last updated:** [May 22, 2020, 11:25pm UTC](https://forums.unrealengine.com/t/how-to-use-unreal-insights-for-networking/223144 "2020-05-22T23:25:41Z")

</div>

I’m using 4.24 and trying to get the new Insights tool working for networking. I added the “NetTrace=1 tracehost=localhost -trace=net” command arguments to the parameters in the editor. And it logs some things fine, bu…

---

## [Multi User Bug](https://forums.unrealengine.com/t/multi-user-bug/144105)

<div class="topic-metadata">

**Author:** [@xsmyqf](https://forums.unrealengine.com/u/xsmyqf)\
**Replies:** 0\
**Last updated:** [May 20, 2020, 10:41pm UTC](https://forums.unrealengine.com/t/multi-user-bug/144105 "2020-05-20T22:41:49Z")

</div>

When a user click save all,another user will prompt a window.when click “save”,it says you can not save.when click “don’t save” it will crash!

---

## [Construction Script Transform after placement](https://forums.unrealengine.com/t/construction-script-transform-after-placement/223123)

<div class="topic-metadata">

**Author:** [@GByron](https://forums.unrealengine.com/u/GByron)\
**Replies:** 0\
**Last updated:** [May 20, 2020, 4:14am UTC](https://forums.unrealengine.com/t/construction-script-transform-after-placement/223123 "2020-05-20T04:14:28Z")

</div>

I’m trying to generate a line of assets in the Construction Script that can have their transforms changed in the editor. Unfortunately, to get the “show 3d widget” to spawn in the correct place, on each of the components…

---

## [Course : Python for Unreal Engine Editor Tools Scripting](https://forums.unrealengine.com/t/course-python-for-unreal-engine-editor-tools-scripting/143952)

<div class="topic-metadata">

**Author:** [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Replies:** 0\
**Last updated:** [May 18, 2020, 10:05pm UTC](https://forums.unrealengine.com/t/course-python-for-unreal-engine-editor-tools-scripting/143952 "2020-05-18T22:05:16Z")

</div>

Almost couple of years ago, I started digging into the Unreal Python API, and i came up with some interesting script examples to share with the community: https://forums.unrealengine.com/deve…cripts-library And since t…

---

## [How to interpolate rotations](https://forums.unrealengine.com/t/how-to-interpolate-rotations/465115)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_68af3cbb](https://forums.unrealengine.com/u/anonymous_user_68af3cbb)\
**Replies:** 11\
**Last updated:** [May 15, 2020, 1:05pm UTC](https://forums.unrealengine.com/t/how-to-interpolate-rotations/465115 "2020-05-15T13:05:48Z")

</div>

I’m trying to make a flying drone move such that it tilts to a certain angle of about 45 degrees and then continues to move linearly in the direction of rotation until the button is released. I’ve managed to make it do t…

---

## [= Reset View Range =](https://forums.unrealengine.com/t/reset-view-range/143657)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ec0f74c31](https://forums.unrealengine.com/u/anonymous_user_ec0f74c31)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 9:56am UTC](https://forums.unrealengine.com/t/reset-view-range/143657 "2020-05-15T09:56:58Z")

</div>

​ Hi, Support. Сan I repeat this command on PYTHON? Result:

---

## [How do I switch AIcontroller in widget blueprint?](https://forums.unrealengine.com/t/how-do-i-switch-aicontroller-in-widget-blueprint/143490)

<div class="topic-metadata">

**Author:** [@HyperspiderGames](https://forums.unrealengine.com/u/HyperspiderGames)\
**Replies:** 0\
**Last updated:** [May 13, 2020, 4:40pm UTC](https://forums.unrealengine.com/t/how-do-i-switch-aicontroller-in-widget-blueprint/143490 "2020-05-13T16:40:47Z")

</div>

I have been wondering how do I switch a AIcontroller after a click of a button, is there anyway to do that? Also look at the screenshot if I’m doing it right or wrong. Thanks!

---

## [CMD ShowFlag.VisualizeBuffer 1 not showing depth in my 4.23.1/MACOS project](https://forums.unrealengine.com/t/cmd-showflag-visualizebuffer-1-not-showing-depth-in-my-4-23-1-macos-project/143416)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_886519d51](https://forums.unrealengine.com/u/anonymous_user_886519d51)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 7:42pm UTC](https://forums.unrealengine.com/t/cmd-showflag-visualizebuffer-1-not-showing-depth-in-my-4-23-1-macos-project/143416 "2020-05-12T19:42:45Z")

</div>

Unreal Engine Version: 4.23.1 Operating System: macOS Mojave Version 10.14.6 MackBook Pro (15-inch, 2018) Hi there. I’ve asked other devs and this command line does show their depth pass when used. That is not the cas…

---

## [sequencer python scripting limitations](https://forums.unrealengine.com/t/sequencer-python-scripting-limitations/117967)

<div class="topic-metadata">

**Author:** [@johnson5jr](https://forums.unrealengine.com/u/johnson5jr)\
**Replies:** 9\
**Last updated:** [September 12, 2019, 6:53pm UTC](https://forums.unrealengine.com/t/sequencer-python-scripting-limitations/117967 "2019-09-12T18:53:02Z")

</div>

I’m finding that it’s not possible to add an animation clip to a track in sequencer via python. Has anyone else tried this? I am able to create a level sequence, add a track for a character, add a skeletal mesh animation…

---

## [UE 4.24.3 and 4.25.0 crash](https://forums.unrealengine.com/t/ue-4-24-3-and-4-25-0-crash/464996)

<div class="topic-metadata">

**Author:** [@Ewhyl](https://forums.unrealengine.com/u/Ewhyl)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 8:21am UTC](https://forums.unrealengine.com/t/ue-4-24-3-and-4-25-0-crash/464996 "2020-05-11T08:21:03Z")

</div>

Hello everyone. I have a problem: both with Unreal 4.24.3 and with 4.25.0, after selecting the Archvis template, with Starter Content and Raytrace disabled, the engine crashes and gives me this error. I tried to search …

---

## [UPROPERTY Serialization is not working without Edit / Visible specifier](https://forums.unrealengine.com/t/uproperty-serialization-is-not-working-without-edit-visible-specifier/464906)

<div class="topic-metadata">

**Author:** [@nirama](https://forums.unrealengine.com/u/nirama)\
**Replies:** 0\
**Last updated:** [May 9, 2020, 8:48am UTC](https://forums.unrealengine.com/t/uproperty-serialization-is-not-working-without-edit-visible-specifier/464906 "2020-05-09T08:48:34Z")

</div>

So, I have a bunch data for AStar algorithm. This data will be filled in the editor. UPROPERTY(BlueprintReadWrite, Category = "AStar|Data") TArray AStarNodes; void AAStarMapData::GatherMapData(){ Modify(); GatherMapDa…

---

## [How do I add a FInterp to this?](https://forums.unrealengine.com/t/how-do-i-add-a-finterp-to-this/464518)

<div class="topic-metadata">

**Author:** [@BTDarmstad](https://forums.unrealengine.com/u/BTDarmstad)\
**Replies:** 8\
**Last updated:** [May 8, 2020, 12:57pm UTC](https://forums.unrealengine.com/t/how-do-i-add-a-finterp-to-this/464518 "2020-05-08T12:57:28Z")

</div>

I have a character that has additive twist animations in an aim offset for when the character is pointing in a different direction than the camera (yaw). When the camera is in front of the character, I want the characte…

---

## [Calling Blueprints in the Editor/Running Editor Utility Widget only work after clicking on viewpor.](https://forums.unrealengine.com/t/calling-blueprints-in-the-editor-running-editor-utility-widget-only-work-after-clicking-on-viewpor/142991)

<div class="topic-metadata">

**Author:** [@Makis](https://forums.unrealengine.com/u/Makis)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 8:06am UTC](https://forums.unrealengine.com/t/calling-blueprints-in-the-editor-running-editor-utility-widget-only-work-after-clicking-on-viewpor/142991 "2020-05-07T08:06:12Z")

</div>

Hello, I am making few blueprint editor scripts but i am getting this weird behavior. Calling Blueprints in the Editor and Running Editor Utility Widget only work after clicking on Editor Viewport first. Lets say i wa…

---

## [Destroy Actor on Key Pressed](https://forums.unrealengine.com/t/destroy-actor-on-key-pressed/464675)

<div class="topic-metadata">

**Author:** [@FunnyGuy9796\_1](https://forums.unrealengine.com/u/FunnyGuy9796_1)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 7:25am UTC](https://forums.unrealengine.com/t/destroy-actor-on-key-pressed/464675 "2020-05-07T07:25:47Z")

</div>

Hello, I am trying to make an inventory system and so far it is going fairly well. Although, I am having some trouble make a collectible item. I already have everything else set up, I’m just wondering if there is any way…

---

## [Batch Replace Materials with Instances, Keeping Texture Samples Possible?](https://forums.unrealengine.com/t/batch-replace-materials-with-instances-keeping-texture-samples-possible/142763)

<div class="topic-metadata">

**Author:** [@Mordynak](https://forums.unrealengine.com/u/Mordynak)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 3:44am UTC](https://forums.unrealengine.com/t/batch-replace-materials-with-instances-keeping-texture-samples-possible/142763 "2020-05-04T03:44:36Z")

</div>

Morning all. I am wondering if it is possible to batch replace a tonne of materials with material instances, keeping the two texture samples that exist in the original materials. Basically, I am creating level LOD’s wh…

---

## [\[Question\] Everspace Crosshair Movement](https://forums.unrealengine.com/t/question-everspace-crosshair-movement/142453)

<div class="topic-metadata">

**Author:** [@Giakaama](https://forums.unrealengine.com/u/Giakaama)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 1:48pm UTC](https://forums.unrealengine.com/t/question-everspace-crosshair-movement/142453 "2020-05-03T13:48:02Z")

</div>

Hi everyone, just trying to find out more suggestions about how to do : A bit of context \] I was playing Everspace and was impressed by the way they did the targeting system. They move the cross-hair the…

---

## [Launch Game on Android from Editor with Python](https://forums.unrealengine.com/t/launch-game-on-android-from-editor-with-python/142474)

<div class="topic-metadata">

**Author:** [@VitalyBanny](https://forums.unrealengine.com/u/VitalyBanny)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 4:14pm UTC](https://forums.unrealengine.com/t/launch-game-on-android-from-editor-with-python/142474 "2020-04-29T16:14:07Z")

</div>

I am trying to sync save game data file between my PC and my android device by USB cable to send game settings from my custom control panel editor widget to mobile. My idea is create python script that will: transfer …

---

## [command feedback in output log](https://forums.unrealengine.com/t/command-feedback-in-output-log/121203)

<div class="topic-metadata">

**Author:** [@samChurchill](https://forums.unrealengine.com/u/samChurchill)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 4:05pm UTC](https://forums.unrealengine.com/t/command-feedback-in-output-log/121203 "2020-04-29T16:05:38Z")

</div>

Hi there I’m new to unreal but have been scripting python in maya for some time now. I was hoping to start getting my head around python scripting in unreal to see if I could try and speed up my work but am struggling …

---

## [EditorUtilityWidget node graph scripting](https://forums.unrealengine.com/t/editorutilitywidget-node-graph-scripting/142386)

<div class="topic-metadata">

**Author:** [@Jimbimbimbap](https://forums.unrealengine.com/u/Jimbimbimbap)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 9:07am UTC](https://forums.unrealengine.com/t/editorutilitywidget-node-graph-scripting/142386 "2020-04-28T09:07:50Z")

</div>

Hi people! Been doing a bit of unreal python scripting and i’m wondering if it’s possible to access an EditorUtilityWidget object and add nodes into them? I’ve managed to create the asset itself using “unreal.AssetTool…

---

## [AI Move To "Pawn" not referencing self](https://forums.unrealengine.com/t/ai-move-to-pawn-not-referencing-self/460496)

<div class="topic-metadata">

**Author:** [@Tamarar357](https://forums.unrealengine.com/u/Tamarar357)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 1:11am UTC](https://forums.unrealengine.com/t/ai-move-to-pawn-not-referencing-self/460496 "2020-04-28T01:11:34Z")

</div>

I have watched several tutorial videos where the node goes from "On See Pawn (PawnSensing) to Cast to FirstPersonCharacter then AI MoveTo in order to get AI to work. When I pull out the link for “Pawn” and try to “Get R…

---

## [Content Browser: How to create a custom Filter for Material Instances?](https://forums.unrealengine.com/t/content-browser-how-to-create-a-custom-filter-for-material-instances/142259)

<div class="topic-metadata">

**Author:** [@BernhardRieder](https://forums.unrealengine.com/u/BernhardRieder)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 3:48am UTC](https://forums.unrealengine.com/t/content-browser-how-to-create-a-custom-filter-for-material-instances/142259 "2020-04-27T03:48:22Z")

</div>

Using the Content Browser: How to create a custom Filter for Material Instances? I can’t find anywhere a solution, documentation or tutorial for that. Thanks a lot for any little help, appreciate it!

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

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