# Editor Scripting

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

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

**Page:** 35

---

## [need help with setting variables between blueprints](https://forums.unrealengine.com/t/need-help-with-setting-variables-between-blueprints/485121)

<div class="topic-metadata">

**Author:** [@N0T\_A\_SWEAT](https://forums.unrealengine.com/u/N0T_A_SWEAT)\
**Replies:** 4\
**Last updated:** [June 20, 2021, 8:03pm UTC](https://forums.unrealengine.com/t/need-help-with-setting-variables-between-blueprints/485121 "2021-06-20T20:03:29Z")

</div>

so im working on a save and load where i have a savegame object and gameinstance. i dont know what im doing wrong but i cant set the variable from the savegameobject. it stays at 0 even tho i set it to 100. …

---

## [How do I check for a change in a Text variable.](https://forums.unrealengine.com/t/how-do-i-check-for-a-change-in-a-text-variable/485022)

<div class="topic-metadata">

**Author:** [@Ryangames00](https://forums.unrealengine.com/u/Ryangames00)\
**Replies:** 2\
**Last updated:** [June 18, 2021, 5:23pm UTC](https://forums.unrealengine.com/t/how-do-i-check-for-a-change-in-a-text-variable/485022 "2021-06-18T17:23:23Z")

</div>

Hi, in my game I made a clock that counts days in a widget blueprint. I want the widget to only be visible for a short period of time after the day changes. How do I detect the change in the variable used to count the da…

---

## [How to create RigVMStructNode with python?](https://forums.unrealengine.com/t/how-to-create-rigvmstructnode-with-python/485045)

<div class="topic-metadata">

**Author:** [@SITT](https://forums.unrealengine.com/u/SITT)\
**Replies:** 0\
**Last updated:** [June 18, 2021, 6:59am UTC](https://forums.unrealengine.com/t/how-to-create-rigvmstructnode-with-python/485045 "2021-06-18T06:59:23Z")

</div>

hey, i want to create ControlRig with Python but, i donot know how toi create RigVMStructNode like RigUnit\_SetCurveValue ########################################## import unreal selObj = unreal.EditorUtilityLibrary.…

---

## [finding objects\\assets in CB](https://forums.unrealengine.com/t/finding-objects-assets-in-cb/123507)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1d736ae51](https://forums.unrealengine.com/u/anonymous_user_1d736ae51)\
**Replies:** 6\
**Last updated:** [June 17, 2021, 4:55pm UTC](https://forums.unrealengine.com/t/finding-objects-assets-in-cb/123507 "2021-06-17T16:55:36Z")

</div>

Hello! I’ve encountered several problems, and can’t find the solution. So if somebody knows how to do it, please share your knowledge :slight\_smile: How can i load the object knowing its path? When using unreal.load\_…

---

## [Get array element by ref example](https://forums.unrealengine.com/t/get-array-element-by-ref-example/395250)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4230003f](https://forums.unrealengine.com/u/anonymous_user_4230003f)\
**Replies:** 7\
**Last updated:** [June 16, 2021, 6:59pm UTC](https://forums.unrealengine.com/t/get-array-element-by-ref-example/395250 "2021-06-16T18:59:06Z")

</div>

Hi, I’ve noticed that in the new 4.16 version of UE there is 2 get nodes of array. One is as a copy and the other is as a reference. Could anyone please show me an example how to use the functionality that comes with ge…

---

## [Running function from a different class](https://forums.unrealengine.com/t/running-function-from-a-different-class/484670)

<div class="topic-metadata">

**Author:** [@stareping](https://forums.unrealengine.com/u/stareping)\
**Replies:** 9\
**Last updated:** [June 16, 2021, 10:09am UTC](https://forums.unrealengine.com/t/running-function-from-a-different-class/484670 "2021-06-16T10:09:05Z")

</div>

Hello, basically I’m trying to run a function from a class different to the functions class. Here’s my code: Header for SpawnGuy: UPROPERTY(EditAnywhere) class UFoodItem \* refthingy; SpawnGuy CPP: void ASpawnGuy::U…

---

## [How to Snap object to view in EditorUtilityBlueprint ？](https://forums.unrealengine.com/t/how-to-snap-object-to-view-in-editorutilityblueprint/235571)

<div class="topic-metadata">

**Author:** [@daihe111214](https://forums.unrealengine.com/u/daihe111214)\
**Replies:** 0\
**Last updated:** [June 15, 2021, 11:09am UTC](https://forums.unrealengine.com/t/how-to-snap-object-to-view-in-editorutilityblueprint/235571 "2021-06-15T11:09:56Z")

</div>

I want to realize Snap object to view in EditorUtilityBlueprint ，but i don’t find the node of Snap object to view,Have you know? thanks

---

## [Get levels from world in python](https://forums.unrealengine.com/t/get-levels-from-world-in-python/233162)

<div class="topic-metadata">

**Author:** [@Thant425](https://forums.unrealengine.com/u/Thant425)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 12:41am UTC](https://forums.unrealengine.com/t/get-levels-from-world-in-python/233162 "2021-06-15T00:41:53Z")

</div>

Currently, when I get all the level actors using the following api call: unreal.EditorLevelLibrary.get\_all\_level\_actors() It will return actors that are in hidden sub levels too. I would like to only get actors in visib…

---

## [Why does my savegame reset my struct?](https://forums.unrealengine.com/t/why-does-my-savegame-reset-my-struct/484846)

<div class="topic-metadata">

**Author:** [@maxmurks](https://forums.unrealengine.com/u/maxmurks)\
**Replies:** 14\
**Last updated:** [June 14, 2021, 8:41pm UTC](https://forums.unrealengine.com/t/why-does-my-savegame-reset-my-struct/484846 "2021-06-14T20:41:18Z")

</div>

USTRUCT() struct FCreatureStats { GENERATED\_BODY() int Deaths; float DamageTaken; float StaminaUsed; float HealthRegenerated; float StaminaRegenerated; }; class UTitle; UCLASS() class UTitlesSaveGame : public…

---

## [Python - defining script path(s) relative to project](https://forums.unrealengine.com/t/python-defining-script-path-s-relative-to-project/484849)

<div class="topic-metadata">

**Author:** [@eco\_bach2](https://forums.unrealengine.com/u/eco_bach2)\
**Replies:** 0\
**Last updated:** [June 13, 2021, 6:41pm UTC](https://forums.unrealengine.com/t/python-defining-script-path-s-relative-to-project/484849 "2021-06-13T18:41:14Z")

</div>

Getting started with Python in Unreal In the Python Plugin you can define the paths for a StartupScript as well as a 'Additional path(s). So for instance I am using C:/UnrealPython/StartupScript.py But instead I want…

---

## [Cannot find Editor Scripting Utilities](https://forums.unrealengine.com/t/cannot-find-editor-scripting-utilities/426887)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d27f8821](https://forums.unrealengine.com/u/anonymous_user_d27f8821)\
**Replies:** 8\
**Last updated:** [June 13, 2021, 11:38am UTC](https://forums.unrealengine.com/t/cannot-find-editor-scripting-utilities/426887 "2021-06-13T11:38:15Z")

</div>

Hi everyone! Im trying to use new Python plugin introduced as experimental in 4.19. I found Python editor script plugin, but i cannot find plugin entitled “editor scripting utilities” as its written in this post https…

---

## [Python API tutorials](https://forums.unrealengine.com/t/python-api-tutorials/235100)

<div class="topic-metadata">

**Author:** [@eco\_bach2](https://forums.unrealengine.com/u/eco_bach2)\
**Replies:** 1\
**Last updated:** [June 13, 2021, 3:53am UTC](https://forums.unrealengine.com/t/python-api-tutorials/235100 "2021-06-13T03:53:33Z")

</div>

Is anyone aware of any Python specific tutorials for ways in which you might use the new Python API support? So much potential here! Unreal Python API Documentation — Unreal Python 4.26 (Experimental) documentation

---

## [Atomatic generation and assignment of LandscapeLayerInfo](https://forums.unrealengine.com/t/atomatic-generation-and-assignment-of-landscapelayerinfo/235149)

<div class="topic-metadata">

**Author:** [@pm.valente](https://forums.unrealengine.com/u/pm.valente)\
**Replies:** 0\
**Last updated:** [June 13, 2021, 1:25am UTC](https://forums.unrealengine.com/t/atomatic-generation-and-assignment-of-landscapelayerinfo/235149 "2021-06-13T01:25:33Z")

</div>

Hi there! I’ve been developing an automated system that would allow users to dynamically generate landscape layers, so far i’ve been using a mixture of blueprints and python, but now I’ve hit a wall regarding automatica…

---

## [Python API in Unreal tutorials](https://forums.unrealengine.com/t/python-api-in-unreal-tutorials/484800)

<div class="topic-metadata">

**Author:** [@eco\_bach2](https://forums.unrealengine.com/u/eco_bach2)\
**Replies:** 0\
**Last updated:** [June 12, 2021, 6:29pm UTC](https://forums.unrealengine.com/t/python-api-in-unreal-tutorials/484800 "2021-06-12T18:29:15Z")

</div>

Is anyone aware of any Python specific tutorials for ways in which you might use the new Python API support? So much potential here! https://docs.unrealengine.com/4.26/en-US/PythonAPI/

---

## [Changing Component Values During Play In Editor Errors](https://forums.unrealengine.com/t/changing-component-values-during-play-in-editor-errors/234822)

<div class="topic-metadata">

**Author:** [@liquidadam776](https://forums.unrealengine.com/u/liquidadam776)\
**Replies:** 0\
**Last updated:** [June 11, 2021, 5:22am UTC](https://forums.unrealengine.com/t/changing-component-values-during-play-in-editor-errors/234822 "2021-06-11T05:22:02Z")

</div>

Hi, I’m pretty new to Unreal, so please point me to a doc I missed if it’s something silly (which is likely). I’ve noticed that when I change values in the detail pane while playing in the editor, I get strange behavio…

---

## [Adding and removing actors from an Array?](https://forums.unrealengine.com/t/adding-and-removing-actors-from-an-array/484587)

<div class="topic-metadata">

**Author:** [@Todeswalzer](https://forums.unrealengine.com/u/Todeswalzer)\
**Replies:** 5\
**Last updated:** [June 9, 2021, 11:27am UTC](https://forums.unrealengine.com/t/adding-and-removing-actors-from-an-array/484587 "2021-06-09T11:27:07Z")

</div>

I’m relatively new to using UE4 and I’m trying to recreate a puzzle game I started making years ago on an old, outdated program. I have, after much trial and error, managed to get most of my core ideas down and sorted, w…

---

## [Setting Variable on SpawnActor](https://forums.unrealengine.com/t/setting-variable-on-spawnactor/400495)

<div class="topic-metadata">

**Author:** [@Jimonions](https://forums.unrealengine.com/u/Jimonions)\
**Replies:** 13\
**Last updated:** [June 9, 2021, 9:41am UTC](https://forums.unrealengine.com/t/setting-variable-on-spawnactor/400495 "2021-06-09T09:41:58Z")

</div>

Could you clarify your question? Expose on Spawn is for the containing class. If your class spawns or references another class that has an exposed variable that you want to change on creation. You’ll have to make anothe…

---

## [Python Blueprint don't allow me to package project](https://forums.unrealengine.com/t/python-blueprint-dont-allow-me-to-package-project/484588)

<div class="topic-metadata">

**Author:** [@OXVII](https://forums.unrealengine.com/u/OXVII)\
**Replies:** 0\
**Last updated:** [June 8, 2021, 11:51am UTC](https://forums.unrealengine.com/t/python-blueprint-dont-allow-me-to-package-project/484588 "2021-06-08T11:51:38Z")

</div>

Hi! After I inserted a blueprint made from python code, I have some strange issues. First of all, every time I reopen my project I have to refresh this blueprint, otherwise it looks like this: After refreshing the n…

---

## [Is is possible return reference to folder selected in content browser with Python?](https://forums.unrealengine.com/t/is-is-possible-return-reference-to-folder-selected-in-content-browser-with-python/136174)

<div class="topic-metadata">

**Author:** [@Profit37](https://forums.unrealengine.com/u/Profit37)\
**Replies:** 5\
**Last updated:** [June 7, 2021, 12:44am UTC](https://forums.unrealengine.com/t/is-is-possible-return-reference-to-folder-selected-in-content-browser-with-python/136174 "2021-06-07T00:44:53Z")

</div>

Hi, to return selected asset I use selected = unreal.GlobalEditorUtilityBase.get\_default\_object().get\_selected\_assets() But when I try to get reference to folder, returned array empty. Please help me, how can I …

---

## [Python heightmap byte format binary](https://forums.unrealengine.com/t/python-heightmap-byte-format-binary/232092)

<div class="topic-metadata">

**Author:** [@1stFalloutboy](https://forums.unrealengine.com/u/1stFalloutboy)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 2:08pm UTC](https://forums.unrealengine.com/t/python-heightmap-byte-format-binary/232092 "2021-06-04T14:08:22Z")

</div>

Hi, I understand how heightmaps work but the problem I am having is that I am working in Python to convert my heightmaps from geotiff format to .r16 format and I don’t understand the binary layout of the 16 bit value th…

---

## [On finished render callback issue](https://forums.unrealengine.com/t/on-finished-render-callback-issue/132447)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e4a25b09](https://forums.unrealengine.com/u/anonymous_user_e4a25b09)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 2:00pm UTC](https://forums.unrealengine.com/t/on-finished-render-callback-issue/132447 "2021-06-04T14:00:16Z")

</div>

Hello, Using your Python API, I would like to know what is the proper way of passing a callback function to an OnRenderMovieStopped object. I wrote a python script that renders a level sequence, and pass in a function …

---

## [animated variables inside a blueprint](https://forums.unrealengine.com/t/animated-variables-inside-a-blueprint/484301)

<div class="topic-metadata">

**Author:** [@Sportingeringer](https://forums.unrealengine.com/u/Sportingeringer)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 9:13am UTC](https://forums.unrealengine.com/t/animated-variables-inside-a-blueprint/484301 "2021-06-04T09:13:47Z")

</div>

Hi, i have a problem with the animation of a float variable inside of a construction blueprint. When i expose the variable to the details tab i can edit them and see linked rotation. But as soon as i animate the variabl…

---

## [How can I stop the button image from being dragged, and only the image?](https://forums.unrealengine.com/t/how-can-i-stop-the-button-image-from-being-dragged-and-only-the-image/484401)

<div class="topic-metadata">

**Author:** [@BluAstronaut](https://forums.unrealengine.com/u/BluAstronaut)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 7:18am UTC](https://forums.unrealengine.com/t/how-can-i-stop-the-button-image-from-being-dragged-and-only-the-image/484401 "2021-06-04T07:18:40Z")

</div>

I’m trying to make a drag and drop system, and when I drag an item, it grabs the background as well, how can I prevent this?

---

## [Export mesh as GLTF with Python](https://forums.unrealengine.com/t/export-mesh-as-gltf-with-python/232296)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_075f8e22](https://forums.unrealengine.com/u/anonymous_user_075f8e22)\
**Replies:** 4\
**Last updated:** [June 3, 2021, 11:32am UTC](https://forums.unrealengine.com/t/export-mesh-as-gltf-with-python/232296 "2021-06-03T11:32:28Z")

</div>

This plugin allows for exporting GLB/GLTF out of Unreal. Problem is that it forces you to either place the assets on the scene before batch exporting them, which is too resource intensive for hundreds of assets, or keep…

---

## [NES Castlevania Medusa Head Movement - Paper 2D](https://forums.unrealengine.com/t/nes-castlevania-medusa-head-movement-paper-2d/233140)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_773891cd1](https://forums.unrealengine.com/u/anonymous_user_773891cd1)\
**Replies:** 0\
**Last updated:** [June 2, 2021, 7:37pm UTC](https://forums.unrealengine.com/t/nes-castlevania-medusa-head-movement-paper-2d/233140 "2021-06-02T19:37:35Z")

</div>

How do you use blueprints to create a sinewave movement similar to the medusa heads in NES Castlevania in Paper 2D. Medusa Heads

---

## [Save AStaticMesh actor refernce to use in Editor Utility Widget](https://forums.unrealengine.com/t/save-astaticmesh-actor-refernce-to-use-in-editor-utility-widget/233133)

<div class="topic-metadata">

**Author:** [@MagicznaFlet6](https://forums.unrealengine.com/u/MagicznaFlet6)\
**Replies:** 0\
**Last updated:** [June 2, 2021, 6:46pm UTC](https://forums.unrealengine.com/t/save-astaticmesh-actor-refernce-to-use-in-editor-utility-widget/233133 "2021-06-02T18:46:51Z")

</div>

Is there a way to save a reference to an actor on a level and use it in editor utility widget? Let’s say I have my save UCLASS() class AUTOHLODER\_API UTestSave : public USaveGame { GENERATED\_BODY() public: UPROP…

---

## [Inventory Dragging Additional Step Issue](https://forums.unrealengine.com/t/inventory-dragging-additional-step-issue/484122)

<div class="topic-metadata">

**Author:** [@mybandequalsme](https://forums.unrealengine.com/u/mybandequalsme)\
**Replies:** 0\
**Last updated:** [May 30, 2021, 12:52am UTC](https://forums.unrealengine.com/t/inventory-dragging-additional-step-issue/484122 "2021-05-30T00:52:41Z")

</div>

Hi guys. So I can successfully drag items out of my inventory slot and spawn them into the world. I’ve got no problems there. I drag out the texture from the inventory and when I let go, it spawns a static mesh into th…

---

## [Large Actor Arrays vs Grouped Smaller ones?](https://forums.unrealengine.com/t/large-actor-arrays-vs-grouped-smaller-ones/484026)

<div class="topic-metadata">

**Author:** [@Abstracted](https://forums.unrealengine.com/u/Abstracted)\
**Replies:** 0\
**Last updated:** [May 28, 2021, 1:53am UTC](https://forums.unrealengine.com/t/large-actor-arrays-vs-grouped-smaller-ones/484026 "2021-05-28T01:53:41Z")

</div>

I’m working on my AI at the moment. I’ve got a Squad actor that spawns an array of AI characters on play, and then those AI store their On Target Perception Updated in an Array on the Squad Actor (originally had AI stor…

---

## [Help needed on python LevelSequence automated rendering](https://forums.unrealengine.com/t/help-needed-on-python-levelsequence-automated-rendering/230980)

<div class="topic-metadata">

**Author:** [@Lapinou21](https://forums.unrealengine.com/u/Lapinou21)\
**Replies:** 0\
**Last updated:** [May 25, 2021, 11:55am UTC](https://forums.unrealengine.com/t/help-needed-on-python-levelsequence-automated-rendering/230980 "2021-05-25T11:55:54Z")

</div>

Hi everyone, I am fairly new to the python API integration and I have been trying to create a simple program to place a CineCameraActor in a level and render a scene from this camera point of view using python only. Ri…

---

## [Python c API error importing tensorflow in editor](https://forums.unrealengine.com/t/python-c-api-error-importing-tensorflow-in-editor/455042)

<div class="topic-metadata">

**Author:** [@jcarv](https://forums.unrealengine.com/u/jcarv)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 6:06pm UTC](https://forums.unrealengine.com/t/python-c-api-error-importing-tensorflow-in-editor/455042 "2021-05-22T18:06:40Z")

</div>

Hi, I’m currently trying to import tensorflow using the Python C Api, I’ve added the include and library paths in build.cs and I’m using Python 3.7.4 and tensorflow 2.0.0. If i try to run the game in editor the first t…

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

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