# Editor Scripting

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

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

**Page:** 44

---

## [How to pass argument to python script when it gets executed from UE4Editor-Cmd.exe?](https://forums.unrealengine.com/t/how-to-pass-argument-to-python-script-when-it-gets-executed-from-ue4editor-cmd-exe/474334)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8eb964cc](https://forums.unrealengine.com/u/anonymous_user_8eb964cc)\
**Replies:** 1\
**Last updated:** [November 13, 2020, 10:55am UTC](https://forums.unrealengine.com/t/how-to-pass-argument-to-python-script-when-it-gets-executed-from-ue4editor-cmd-exe/474334 "2020-11-13T10:55:47Z")

</div>

I have a Python script that takes argument with options. If I run it in Unreal Console, it works. py "D:\\DP\_EditorController.py" -i "C:/Users/Sample/Downloads/burger.glb" However, if I try to run the script from the Wi…

---

## [VaRest Plugin help](https://forums.unrealengine.com/t/varest-plugin-help/153548)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6729c17d](https://forums.unrealengine.com/u/anonymous_user_6729c17d)\
**Replies:** 0\
**Last updated:** [November 12, 2020, 6:23pm UTC](https://forums.unrealengine.com/t/varest-plugin-help/153548 "2020-11-12T18:23:46Z")

</div>

Guys, I really need help !!! I am making a Post type request, using the VaRest plugin, and as a return, besides the code I have an array of string, however I am not able to separate the objects within this array. Everyth…

---

## [pythonとblueprintでspawn処理速度に大きく差が出る](https://forums.unrealengine.com/t/python-blueprint-spawn/473725)

<div class="topic-metadata">

**Author:** [@TsukasaYokoo](https://forums.unrealengine.com/u/TsukasaYokoo)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 4:19am UTC](https://forums.unrealengine.com/t/python-blueprint-spawn/473725 "2020-11-12T04:19:16Z")

</div>

画像はエディターユーティリティブループリントで作成されたStaticMeshActorをSpawnさせる 簡素な処理です。これと同等と思われるpythonの処理を書きました。 ですがpython側の処理がブループリントで作成されたものと比べると処理がかなり遅いです。 体感ですがブループリントで作成されたものは１秒以下、pythonでは6秒ほどかかっている状態です。 現状300個ほどですが、最終的には3000個ほどpythonの処…

---

## [Creating sublevels via Python](https://forums.unrealengine.com/t/creating-sublevels-via-python/149251)

<div class="topic-metadata">

**Author:** [@ranzovin](https://forums.unrealengine.com/u/ranzovin)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 12:18am UTC](https://forums.unrealengine.com/t/creating-sublevels-via-python/149251 "2020-11-11T00:18:08Z")

</div>

Is this possible to do? I’ve looked at using EditorLevelUtils.create\_new\_streaming\_level, but this appears to create a “Transient” level that doesn’t remain when the persistent level has been saved and reopened, and it d…

---

## [Combining objects with grid panel](https://forums.unrealengine.com/t/combining-objects-with-grid-panel/474248)

<div class="topic-metadata">

**Author:** [@VisceralError](https://forums.unrealengine.com/u/VisceralError)\
**Replies:** 9\
**Last updated:** [November 10, 2020, 2:11pm UTC](https://forums.unrealengine.com/t/combining-objects-with-grid-panel/474248 "2020-11-10T14:11:10Z")

</div>

You’re talking about an entire system here which might be beyond the scope of AH. Is there a particular element you’re having problems with? Is it safe to assume you’ve got the drag & drop mechanic in place already and …

---

## [hi I have a question about python on unreal; you know a method for align objects to a surfaces with python? I have to do this but i don't know how.](https://forums.unrealengine.com/t/hi-i-have-a-question-about-python-on-unreal-you-know-a-method-for-align-objects-to-a-surfaces-with-python-i-have-to-do-this-but-i-dont-know-how/474241)

<div class="topic-metadata">

**Author:** [@NGaming\_Ale](https://forums.unrealengine.com/u/NGaming_Ale)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 10:17am UTC](https://forums.unrealengine.com/t/hi-i-have-a-question-about-python-on-unreal-you-know-a-method-for-align-objects-to-a-surfaces-with-python-i-have-to-do-this-but-i-dont-know-how/474241 "2020-11-10T10:17:19Z")

</div>

hi I have a question about python on unreal; you know a method for align objects to a surfaces with python? I have to do this but i don’t know how. Thanks you soo match

---

## [Free Python Scripts library](https://forums.unrealengine.com/t/free-python-scripts-library/121672)

<div class="topic-metadata">

**Author:** [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Replies:** 8\
**Last updated:** [November 10, 2020, 9:33am UTC](https://forums.unrealengine.com/t/free-python-scripts-library/121672 "2020-11-10T09:33:24Z")

</div>

I’ve made many scripts since that feature show up, and recently started cleaning up them one by one, and putting them for public use, feel free to sue them at your work :slight\_smile: And this playlist, contains quick…

---

## [get reference to variable in blueprint funcion return?](https://forums.unrealengine.com/t/get-reference-to-variable-in-blueprint-funcion-return/415324)

<div class="topic-metadata">

**Author:** [@Sn\_a\_ke](https://forums.unrealengine.com/u/Sn_a_ke)\
**Replies:** 10\
**Last updated:** [November 7, 2020, 11:57pm UTC](https://forums.unrealengine.com/t/get-reference-to-variable-in-blueprint-funcion-return/415324 "2020-11-07T23:57:04Z")

</div>

How in c ++ make function for blueprints which returns a reference to a variable? ////test UPROPERTY(EditAnywhere, BlueprintReadWrite) int32 MyVar = 0; //reference MyVar v1 - dont work UFUNCTION(Blueprint…

---

## [Need help with string variable formatting](https://forums.unrealengine.com/t/need-help-with-string-variable-formatting/474102)

<div class="topic-metadata">

**Author:** [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Replies:** 9\
**Last updated:** [November 7, 2020, 8:38am UTC](https://forums.unrealengine.com/t/need-help-with-string-variable-formatting/474102 "2020-11-07T08:38:37Z")

</div>

I have string: 1234567890 How can i make it look like: 12 34 56 78 90?

---

## [How to find a culprit BP from memory address in VS debugger causing build error message?](https://forums.unrealengine.com/t/how-to-find-a-culprit-bp-from-memory-address-in-vs-debugger-causing-build-error-message/153128)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f92919d11](https://forums.unrealengine.com/u/anonymous_user_f92919d11)\
**Replies:** 1\
**Last updated:** [November 6, 2020, 11:03am UTC](https://forums.unrealengine.com/t/how-to-find-a-culprit-bp-from-memory-address-in-vs-debugger-causing-build-error-message/153128 "2020-11-06T11:03:20Z")

</div>

I am trying to build out my project, but I keep running into a nasty error message about a BP reroute node… :frowning: It compiles all of the 1000 shaders and everything and just before it would finish it spits out all …

---

## [What difference between attach actor and child actor component](https://forums.unrealengine.com/t/what-difference-between-attach-actor-and-child-actor-component/407415)

<div class="topic-metadata">

**Author:** [@Blastertoad](https://forums.unrealengine.com/u/Blastertoad)\
**Replies:** 1\
**Last updated:** [November 6, 2020, 8:10am UTC](https://forums.unrealengine.com/t/what-difference-between-attach-actor-and-child-actor-component/407415 "2020-11-06T08:10:46Z")

</div>

I am building a server side inventory system and got to wondering what the recommended method is for combining actors, and what the differences are. Should I spawn and attach an actor, or create a child actor component a…

---

## [When the ue4 editor prompts for new resources, the python script does some automatic processing.](https://forums.unrealengine.com/t/when-the-ue4-editor-prompts-for-new-resources-the-python-script-does-some-automatic-processing/153212)

<div class="topic-metadata">

**Author:** [@DysonUnity](https://forums.unrealengine.com/u/DysonUnity)\
**Replies:** 0\
**Last updated:** [November 5, 2020, 1:49pm UTC](https://forums.unrealengine.com/t/when-the-ue4-editor-prompts-for-new-resources-the-python-script-does-some-automatic-processing/153212 "2020-11-05T13:49:05Z")

</div>

I want to know how to get this event when the ue4 editor prompts for a new resource. So that I can do some automated processing in python. help me.

---

## [Python at runtime](https://forums.unrealengine.com/t/python-at-runtime/138573)

<div class="topic-metadata">

**Author:** [@david.gillespie](https://forums.unrealengine.com/u/david.gillespie)\
**Replies:** 3\
**Last updated:** [November 3, 2020, 3:39pm UTC](https://forums.unrealengine.com/t/python-at-runtime/138573 "2020-11-03T15:39:53Z")

</div>

Hi. Is python planned to expand from editor functionality to runtime functionality at all? Would be very interested in being able to use it at runtime however wouldn’t want to go 3rd party where Epic have already impleme…

---

## [python test to check if the Editor is running in Commandlet mode (UE4Editor-Cmd.exe)](https://forums.unrealengine.com/t/python-test-to-check-if-the-editor-is-running-in-commandlet-mode-ue4editor-cmd-exe/153101)

<div class="topic-metadata">

**Author:** [@darkczar](https://forums.unrealengine.com/u/darkczar)\
**Replies:** 1\
**Last updated:** [November 3, 2020, 3:34pm UTC](https://forums.unrealengine.com/t/python-test-to-check-if-the-editor-is-running-in-commandlet-mode-ue4editor-cmd-exe/153101 "2020-11-03T15:34:36Z")

</div>

I set up an init\_unreal.py to change my font size. It works fine, except sometimes I run .bat files, and they hang on the init\_unreal.py, because there are no widgets to scale, I think. How can I add an if test to chec…

---

## [RInterp To Control Rotation not working](https://forums.unrealengine.com/t/rinterp-to-control-rotation-not-working/473815)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f6de3eed](https://forums.unrealengine.com/u/anonymous_user_f6de3eed)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 3:55am UTC](https://forums.unrealengine.com/t/rinterp-to-control-rotation-not-working/473815 "2020-11-01T03:55:24Z")

</div>

Inside a macro, I’m using a Set Control Rotation linked to an RInterp To in order to rotate my player’s camera. The blueprint used for this process is linked below. As you can see, at the beginning, I create a Local …

---

## [have problem when i dragdrop Change slot](https://forums.unrealengine.com/t/have-problem-when-i-dragdrop-change-slot/473795)

<div class="topic-metadata">

**Author:** [@Jetdokoalamarch](https://forums.unrealengine.com/u/Jetdokoalamarch)\
**Replies:** 0\
**Last updated:** [October 31, 2020, 5:30pm UTC](https://forums.unrealengine.com/t/have-problem-when-i-dragdrop-change-slot/473795 "2020-10-31T17:30:09Z")

</div>

i have problem when i dragdrop Change slot Potion Class to Weapon Class is not Switch i dont know how to do it i will try to if not same class cant drop to i need to guide me what i need to call to check is sameclass or …

---

## [When i package my game it wont make savegames within the package](https://forums.unrealengine.com/t/when-i-package-my-game-it-wont-make-savegames-within-the-package/473747)

<div class="topic-metadata">

**Author:** [@Fahood00451](https://forums.unrealengine.com/u/Fahood00451)\
**Replies:** 1\
**Last updated:** [October 30, 2020, 11:42pm UTC](https://forums.unrealengine.com/t/when-i-package-my-game-it-wont-make-savegames-within-the-package/473747 "2020-10-30T23:42:34Z")

</div>

this bug or whatever tf it is is annoying ive tried multiple ways to fix it but it appears to be a but IN the engine it self because ive packaged games with savegames before and they worked

---

## [list Level contents without loading the Level](https://forums.unrealengine.com/t/list-level-contents-without-loading-the-level/151923)

<div class="topic-metadata">

**Author:** [@darkczar](https://forums.unrealengine.com/u/darkczar)\
**Replies:** 2\
**Last updated:** [October 29, 2020, 2:22pm UTC](https://forums.unrealengine.com/t/list-level-contents-without-loading-the-level/151923 "2020-10-29T14:22:16Z")

</div>

Is there a way to list the contents of a Level without loading the level? I’m looping through maps and my script slows down as it goes along. I’d like to avoid loading maps, if there is a way to get a list of the map c…

---

## [set widget reflector application scale in init\_unreal.py?](https://forums.unrealengine.com/t/set-widget-reflector-application-scale-in-init_unreal-py/152597)

<div class="topic-metadata">

**Author:** [@darkczar](https://forums.unrealengine.com/u/darkczar)\
**Replies:** 1\
**Last updated:** [October 28, 2020, 10:49pm UTC](https://forums.unrealengine.com/t/set-widget-reflector-application-scale-in-init_unreal-py/152597 "2020-10-28T22:49:36Z")

</div>

I always need to set the Widget Reflector APplication Scale when I open the editor because I have 4K monitors, and otherwise the text is all too small to read. Can I automate that process by putting a command in an init…

---

## [UE 4.26, Web Remote Control: WebSockets](https://forums.unrealengine.com/t/ue-4-26-web-remote-control-websockets/151335)

<div class="topic-metadata">

**Author:** [@jacobgood1](https://forums.unrealengine.com/u/jacobgood1)\
**Replies:** 1\
**Last updated:** [October 28, 2020, 7:39pm UTC](https://forums.unrealengine.com/t/ue-4-26-web-remote-control-websockets/151335 "2020-10-28T19:39:33Z")

</div>

There is no documentation for how to work with web remote control and web sockets. Does anyone know of some information on this feature?

---

## [Why "Set Contraint Binding ID" node doesn't work?](https://forums.unrealengine.com/t/why-set-contraint-binding-id-node-doesnt-work/152763)

<div class="topic-metadata">

**Author:** [@Oleg\_Mazunin](https://forums.unrealengine.com/u/Oleg_Mazunin)\
**Replies:** 0\
**Last updated:** [October 27, 2020, 9:33am UTC](https://forums.unrealengine.com/t/why-set-contraint-binding-id-node-doesnt-work/152763 "2020-10-27T09:33:24Z")

</div>

Why “Set Contraint Binding ID” node doesn’t work? And how to change Attachment of actor in sequence via blueprint or C++?

---

## [Using Matplotlib with the Python Editor Script Plugin](https://forums.unrealengine.com/t/using-matplotlib-with-the-python-editor-script-plugin/152715)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3db449c8](https://forums.unrealengine.com/u/anonymous_user_3db449c8)\
**Replies:** 0\
**Last updated:** [October 26, 2020, 10:06am UTC](https://forums.unrealengine.com/t/using-matplotlib-with-the-python-editor-script-plugin/152715 "2020-10-26T10:06:00Z")

</div>

Hi, is there a way to use Matplotlib in the Python Editor Script Plugin? I tried to install Matplotlib in C:\\Program Files\\Epic Games\\UE\_4.25\\Engine\\Plugins\\Experimental\\PythonScriptPlugin\\Binaries\\Win64 with pip like de…

---

## [Physics issue/glitch](https://forums.unrealengine.com/t/physics-issue-glitch/152680)

<div class="topic-metadata">

**Author:** [@Siris\_kyuubi](https://forums.unrealengine.com/u/Siris_kyuubi)\
**Replies:** 0\
**Last updated:** [October 25, 2020, 6:47pm UTC](https://forums.unrealengine.com/t/physics-issue-glitch/152680 "2020-10-25T18:47:18Z")

</div>

Re-posting this from another thread as I realized it is probably better suited here and I was posting the previous after not sleeping at six in the morning. I’ve been working on coding a dynamic drag system for a projec…

---

## [I need help with setting up a save/load system that includes a posseses character](https://forums.unrealengine.com/t/i-need-help-with-setting-up-a-save-load-system-that-includes-a-posseses-character/473449)

<div class="topic-metadata">

**Author:** [@Datsix83](https://forums.unrealengine.com/u/Datsix83)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 7:46am UTC](https://forums.unrealengine.com/t/i-need-help-with-setting-up-a-save-load-system-that-includes-a-posseses-character/473449 "2020-10-25T07:46:13Z")

</div>

ok, i’ve followed a lot of different tutorials on the whole save/load game aspect of ue4, but what i’m having issues with, EVEN with people explaining it to me, i can’t figure out how to save the game after possessing a …

---

## [Can't launch editor cuz: "DX11 feature level 10.0 is requiered to run the engine."](https://forums.unrealengine.com/t/cant-launch-editor-cuz-dx11-feature-level-10-0-is-requiered-to-run-the-engine/145690)

<div class="topic-metadata">

**Author:** [@soyfeo124](https://forums.unrealengine.com/u/soyfeo124)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 6:06pm UTC](https://forums.unrealengine.com/t/cant-launch-editor-cuz-dx11-feature-level-10-0-is-requiered-to-run-the-engine/145690 "2020-10-23T18:06:04Z")

</div>

\[FONT=Comic Sans MS\]So, I can’t launch that editor cuz that error. SEND HELP

---

## [\[Bug\] Crash when using inline objects inside user widget instance](https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354)

<div class="topic-metadata">

**Author:** [@DGrouse](https://forums.unrealengine.com/u/DGrouse)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 6:27am UTC](https://forums.unrealengine.com/t/bug-crash-when-using-inline-objects-inside-user-widget-instance/473354 "2020-10-23T06:27:40Z")

</div>

Hi, I’ve been working on an inventory system that uses inline objects for instancing default properties of items and containers. I normally do these inline property stacks on actor components (to give world context and a…

---

## [python: add existing level asset to persistent level via code](https://forums.unrealengine.com/t/python-add-existing-level-asset-to-persistent-level-via-code/152551)

<div class="topic-metadata">

**Author:** [@Lycurgess99](https://forums.unrealengine.com/u/Lycurgess99)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 11:32pm UTC](https://forums.unrealengine.com/t/python-add-existing-level-asset-to-persistent-level-via-code/152551 "2020-10-22T23:32:48Z")

</div>

This seems like it should be super easy and probably is, but I seem to be missing something. I found this post How do I make the Persistent Level become current after adding a sublevel with python? - Editor Scripting - …

---

## [Nested structures in 4.24? Bug or problem? What happened?](https://forums.unrealengine.com/t/nested-structures-in-4-24-bug-or-problem-what-happened/141817)

<div class="topic-metadata">

**Author:** [@Demnus](https://forums.unrealengine.com/u/Demnus)\
**Replies:** 4\
**Last updated:** [October 22, 2020, 10:25pm UTC](https://forums.unrealengine.com/t/nested-structures-in-4-24-bug-or-problem-what-happened/141817 "2020-10-22T22:25:36Z")

</div>

I have a project, that I decided to migrate from 4.23 to 4.24.3. And as I did I’ve found out that it crashes whenever I try to open anything that has reference to one of the structure. Of course the structure itself also…

---

## [Web Remote: updates only when clicking on the editor.](https://forums.unrealengine.com/t/web-remote-updates-only-when-clicking-on-the-editor/152535)

<div class="topic-metadata">

**Author:** [@jdiezperez](https://forums.unrealengine.com/u/jdiezperez)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 6:10pm UTC](https://forums.unrealengine.com/t/web-remote-updates-only-when-clicking-on-the-editor/152535 "2020-10-22T18:10:38Z")

</div>

Hi all. I’m playing with the Web Remote tools. There’s not much info around but I managed to make it work using XMLHttpRequest() in Javascript from a local web server. The thing is it works (for example updating a ligh…

---

## [Vertex Colors with no interpolation](https://forums.unrealengine.com/t/vertex-colors-with-no-interpolation/473323)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_11336453](https://forums.unrealengine.com/u/anonymous_user_11336453)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 5:38pm UTC](https://forums.unrealengine.com/t/vertex-colors-with-no-interpolation/473323 "2020-10-22T17:38:27Z")

</div>

Hello! I would like to set up a shader that uses vertex colors but does not interpolate. Instead, each pixel should use the vertex color of it’s nearest vertex (instead of the vertex color interpolated between the nea…

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

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