# Editor Scripting

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

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

**Page:** 41

---

## [USTRUCT has no appropriate default constructor](https://forums.unrealengine.com/t/ustruct-has-no-appropriate-default-constructor/476460)

<div class="topic-metadata">

**Author:** [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Replies:** 1\
**Last updated:** [February 15, 2021, 9:01am UTC](https://forums.unrealengine.com/t/ustruct-has-no-appropriate-default-constructor/476460 "2021-02-15T09:01:39Z")

</div>

I’m trying to make a simple saving and loading system for my neural network, so have made a file containing my structs, which has the following USTRUCT USTRUCT(BlueprintType) struct FTopology { GENERATED\_USTRUCT\_BODY…

---

## [Struct with member tarray of itself](https://forums.unrealengine.com/t/struct-with-member-tarray-of-itself/478742)

<div class="topic-metadata">

**Author:** [@PrettyTrue](https://forums.unrealengine.com/u/PrettyTrue)\
**Replies:** 1\
**Last updated:** [February 13, 2021, 10:08pm UTC](https://forums.unrealengine.com/t/struct-with-member-tarray-of-itself/478742 "2021-02-13T22:08:29Z")

</div>

In standard C++, we can use vectors and maps as a means of a tree structure struct Foo { Foo(); std::vector\<Foo\> subfoos; }; But TArray/TMap cannot do this (by design). Is there a standard approach for handling…

---

## [\[SOLVED\]Connect A Texture To A Material](https://forums.unrealengine.com/t/solved-connect-a-texture-to-a-material/151392)

<div class="topic-metadata">

**Author:** [@AtomicPerception](https://forums.unrealengine.com/u/AtomicPerception)\
**Replies:** 1\
**Last updated:** [February 13, 2021, 7:34pm UTC](https://forums.unrealengine.com/t/solved-connect-a-texture-to-a-material/151392 "2021-02-13T19:34:06Z")

</div>

I came up with some code to make a material with a few extra connected TextureSample node. # Works with Unreal 4.25.3 # (c) 2020 Atom. asset\_path = "/Game" mat\_name = "honeycomb" #Import known images as a list of Te…

---

## [Creating running animation with only 2 frames](https://forums.unrealengine.com/t/creating-running-animation-with-only-2-frames/478726)

<div class="topic-metadata">

**Author:** [@Voidman163](https://forums.unrealengine.com/u/Voidman163)\
**Replies:** 0\
**Last updated:** [February 13, 2021, 7:55am UTC](https://forums.unrealengine.com/t/creating-running-animation-with-only-2-frames/478726 "2021-02-13T07:55:18Z")

</div>

I saw a develop tutorial making a running animation with only 2 frames and achieved very smooth result with interpolation. What i don’t understand is, shouldn’t it be 4 frames cause each foot need 2 frames? How to use le…

---

## [\[RESOLVED\] How to use the same variable in differents BP?](https://forums.unrealengine.com/t/resolved-how-to-use-the-same-variable-in-differents-bp/478694)

<div class="topic-metadata">

**Author:** [@Gundes](https://forums.unrealengine.com/u/Gundes)\
**Replies:** 14\
**Last updated:** [February 13, 2021, 12:01am UTC](https://forums.unrealengine.com/t/resolved-how-to-use-the-same-variable-in-differents-bp/478694 "2021-02-13T00:01:28Z")

</div>

I have 2 differentes widget blueprints where I have a switch button with ‘yes’ or ‘no’. The player need to hit ‘yes’ on the first BP before go to the second one, otherwise it’ll give false text if goes directly to the se…

---

## [Invalid Reference / GC Crash on Level Streaming](https://forums.unrealengine.com/t/invalid-reference-gc-crash-on-level-streaming/478607)

<div class="topic-metadata">

**Author:** [@Gabirobi03](https://forums.unrealengine.com/u/Gabirobi03)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 11:53am UTC](https://forums.unrealengine.com/t/invalid-reference-gc-crash-on-level-streaming/478607 "2021-02-11T11:53:39Z")

</div>

Hello! We have been struggling several days with game crashes on our just released game on Steam and Switch - apparently the amount of crashes in our small studio’s internal playtests seemed insignificant but now we’ve …

---

## [Python equivalent to unreal.EditorAssetLibrary.get\_all\_level\_actors()  for sequencer?](https://forums.unrealengine.com/t/python-equivalent-to-unreal-editorassetlibrary-get_all_level_actors-for-sequencer/157566)

<div class="topic-metadata">

**Author:** [@mad\_guru](https://forums.unrealengine.com/u/mad_guru)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 4:46am UTC](https://forums.unrealengine.com/t/python-equivalent-to-unreal-editorassetlibrary-get_all_level_actors-for-sequencer/157566 "2021-02-10T04:46:06Z")

</div>

Hi, I’m looking for python code, equivalent to unreal.EditorAssetLibrary.get\_all\_level\_actors() to get all sequencer items (camera, fbx objects etc) and then python code to get the available tracks on each. Basically I …

---

## [Virtual Joystick multiplayer problems](https://forums.unrealengine.com/t/virtual-joystick-multiplayer-problems/142111)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ad5de25b](https://forums.unrealengine.com/u/anonymous_user_ad5de25b)\
**Replies:** 2\
**Last updated:** [February 9, 2021, 3:15am UTC](https://forums.unrealengine.com/t/virtual-joystick-multiplayer-problems/142111 "2021-02-09T03:15:50Z")

</div>

Hello. I’m working on multiplayer android project. The problem is that virtual joystick of all clients send events to client #1. I saw such problems since UE4.14 even with example (template) projects. How to solve this p…

---

## [Need help: save not working](https://forums.unrealengine.com/t/need-help-save-not-working/478397)

<div class="topic-metadata">

**Author:** [@Wazumba](https://forums.unrealengine.com/u/Wazumba)\
**Replies:** 1\
**Last updated:** [February 7, 2021, 6:56pm UTC](https://forums.unrealengine.com/t/need-help-save-not-working/478397 "2021-02-07T18:56:44Z")

</div>

I’m sure I’ve done some mistake here but can’t figure out what. Been trying to learn the save system in UE and worked well to save the player position and load it so I started making a system for multiple save slots. Th…

---

## [How to save very large amount of data?](https://forums.unrealengine.com/t/how-to-save-very-large-amount-of-data/478222)

<div class="topic-metadata">

**Author:** [@Klusimo](https://forums.unrealengine.com/u/Klusimo)\
**Replies:** 0\
**Last updated:** [February 4, 2021, 10:12am UTC](https://forums.unrealengine.com/t/how-to-save-very-large-amount-of-data/478222 "2021-02-04T10:12:01Z")

</div>

Hi! I want to create chunk-based procedural generation that also saves unloaded chunks into files. I have no idea how to do it, all I heard was saveobject, but I dont understand that too. To “what exactly I would need …

---

## [Get/Set asset's Source File path via BP (4.26)](https://forums.unrealengine.com/t/get-set-assets-source-file-path-via-bp-4-26/157323)

<div class="topic-metadata">

**Author:** [@b1016103](https://forums.unrealengine.com/u/b1016103)\
**Replies:** 0\
**Last updated:** [February 3, 2021, 1:31pm UTC](https://forums.unrealengine.com/t/get-set-assets-source-file-path-via-bp-4-26/157323 "2021-02-03T13:31:37Z")

</div>

Hey guys, I’m trying to read the selected assets Source File paths into PrintString and then replace them to a destination of my own. 4.26 contains a new BP node to do that: But for some reason, I can’t get ScriptedAdd…

---

## [python script does not start](https://forums.unrealengine.com/t/python-script-does-not-start/478158)

<div class="topic-metadata">

**Author:** [@rom\_G](https://forums.unrealengine.com/u/rom_G)\
**Replies:** 0\
**Last updated:** [February 2, 2021, 11:09pm UTC](https://forums.unrealengine.com/t/python-script-does-not-start/478158 "2021-02-02T23:09:35Z")

</div>

I am porting my game from blender game engine to UE4. python (3.3) 2d filter script doesn’t work. it starts like this uniform sampler2D bgl\_DepthTexture; uniform sampler2D bgl\_RenderedTexture; uniform sampler2D bgl…

---

## [Export STL or .depth file of only the mesh visible from the camera](https://forums.unrealengine.com/t/export-stl-or-depth-file-of-only-the-mesh-visible-from-the-camera/157219)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fe464dd11](https://forums.unrealengine.com/u/anonymous_user_fe464dd11)\
**Replies:** 0\
**Last updated:** [February 1, 2021, 11:08am UTC](https://forums.unrealengine.com/t/export-stl-or-depth-file-of-only-the-mesh-visible-from-the-camera/157219 "2021-02-01T11:08:35Z")

</div>

Hi there, Does anyone know if there’s a way to export an STL of .depth file of the scene, but keeping only the mesh visible from the active camera (instead of all the meshes even if they can’t be seen from the camera), …

---

## [Is it possible to import focal length animation onto a camera in Sequencer?](https://forums.unrealengine.com/t/is-it-possible-to-import-focal-length-animation-onto-a-camera-in-sequencer/131988)

<div class="topic-metadata">

**Author:** [@pmonga](https://forums.unrealengine.com/u/pmonga)\
**Replies:** 11\
**Last updated:** [January 29, 2021, 2:14am UTC](https://forums.unrealengine.com/t/is-it-possible-to-import-focal-length-animation-onto-a-camera-in-sequencer/131988 "2021-01-29T02:14:03Z")

</div>

Does anyone know if it’s possible to get the focal length to import from an fbx onto a camera that exists(as a spawnable) in sequencer? I’ve never written python code before but I’m attempting to make a UI for importing…

---

## [UE4 on Linux from ssh with no display (but with GPU and rendering)?](https://forums.unrealengine.com/t/ue4-on-linux-from-ssh-with-no-display-but-with-gpu-and-rendering/156716)

<div class="topic-metadata">

**Author:** [@esfashion](https://forums.unrealengine.com/u/esfashion)\
**Replies:** 1\
**Last updated:** [January 28, 2021, 9:25pm UTC](https://forums.unrealengine.com/t/ue4-on-linux-from-ssh-with-no-display-but-with-gpu-and-rendering/156716 "2021-01-28T21:25:46Z")

</div>

We would like to be able to run UE4 (4.26) Editor&PIE on a Linux server with no display. The machine has a great RTX GPU that I need to use but again, no physical display. We have a Linux box setup and I am able to login…

---

## [Need some general help with creating a grid based snake game](https://forums.unrealengine.com/t/need-some-general-help-with-creating-a-grid-based-snake-game/477812)

<div class="topic-metadata">

**Author:** [@kappakamii](https://forums.unrealengine.com/u/kappakamii)\
**Replies:** 0\
**Last updated:** [January 28, 2021, 1:26pm UTC](https://forums.unrealengine.com/t/need-some-general-help-with-creating-a-grid-based-snake-game/477812 "2021-01-28T13:26:27Z")

</div>

Im trying to create the snake game using a grid and arrays, I have been able to create the snake game before but not with these parameters, does anyone have some general tips on how I could start and develop this project…

---

## [Python script to take recorder start recording](https://forums.unrealengine.com/t/python-script-to-take-recorder-start-recording/156967)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b7cc87c6](https://forums.unrealengine.com/u/anonymous_user_b7cc87c6)\
**Replies:** 0\
**Last updated:** [January 27, 2021, 8:58am UTC](https://forums.unrealengine.com/t/python-script-to-take-recorder-start-recording/156967 "2021-01-27T08:58:48Z")

</div>

Hi, Does anyone know if there is any python script to do take recorder start and stop recording?

---

## [python script to clone a camera.](https://forums.unrealengine.com/t/python-script-to-clone-a-camera/156851)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b7cc87c6](https://forums.unrealengine.com/u/anonymous_user_b7cc87c6)\
**Replies:** 3\
**Last updated:** [January 27, 2021, 2:33am UTC](https://forums.unrealengine.com/t/python-script-to-clone-a-camera/156851 "2021-01-27T02:33:22Z")

</div>

Hi, I have a camera in the scene. I need to create a new camera and copy the position and settings on the existing camera to new camera. is it possible through a python script?

---

## [Getting and editing blueprint components with python](https://forums.unrealengine.com/t/getting-and-editing-blueprint-components-with-python/156952)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6262dacd](https://forums.unrealengine.com/u/anonymous_user_6262dacd)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 11:59pm UTC](https://forums.unrealengine.com/t/getting-and-editing-blueprint-components-with-python/156952 "2021-01-26T23:59:43Z")

</div>

Hi there, new to unreal and excited to see what editor scripting capabilities there are with python. I’ve been able to load and duplicate blueprint assets with python but editing them so far has been a real challenge. I…

---

## [Driving AI Behaviors with data](https://forums.unrealengine.com/t/driving-ai-behaviors-with-data/156947)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6262dacd](https://forums.unrealengine.com/u/anonymous_user_6262dacd)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 10:11pm UTC](https://forums.unrealengine.com/t/driving-ai-behaviors-with-data/156947 "2021-01-26T22:11:28Z")

</div>

I’m new to unreal and trying to understand the best way to drive ai behaviors with data derived from a json file. The data controls what type of targets the behaviors will move to, their speed, etc. I have a json sourc…

---

## [replace every material slot of LODs with python](https://forums.unrealengine.com/t/replace-every-material-slot-of-lods-with-python/156379)

<div class="topic-metadata">

**Author:** [@Anjeong](https://forums.unrealengine.com/u/Anjeong)\
**Replies:** 1\
**Last updated:** [January 24, 2021, 10:46pm UTC](https://forums.unrealengine.com/t/replace-every-material-slot-of-lods-with-python/156379 "2021-01-24T22:46:47Z")

</div>

Hi! I would like to get current material of each LODs and replace it with its child material instance. I found a post which is very similar to my issue : Change every LOD's material slot ? · Issue #501 · 20tab/UnrealE…

---

## [How to create a new actor blueprint with a static mesh component](https://forums.unrealengine.com/t/how-to-create-a-new-actor-blueprint-with-a-static-mesh-component/156590)

<div class="topic-metadata">

**Author:** [@illYay](https://forums.unrealengine.com/u/illYay)\
**Replies:** 1\
**Last updated:** [January 23, 2021, 9:16pm UTC](https://forums.unrealengine.com/t/how-to-create-a-new-actor-blueprint-with-a-static-mesh-component/156590 "2021-01-23T21:16:32Z")

</div>

I’m working on a scripted asset action for right clicking on a static mesh and creating an actor with the static mesh component added as the root. It’s meant as a quick script to speed up work when prototyping a level a…

---

## [Easy parenting in Python... not easy](https://forums.unrealengine.com/t/easy-parenting-in-python-not-easy/156735)

<div class="topic-metadata">

**Author:** [@MBAproductions](https://forums.unrealengine.com/u/MBAproductions)\
**Replies:** 1\
**Last updated:** [January 22, 2021, 4:56pm UTC](https://forums.unrealengine.com/t/easy-parenting-in-python-not-easy/156735 "2021-01-22T16:56:04Z")

</div>

Ok I have banged my head long enough. This is the easiest thing to do in most programs. Parenting one mesh to another or in Unreals case one Actor to another. Goal: I want to animate a ton of cubs with maya or c4d then …

---

## [Createing toolbar menu or multibox in Python](https://forums.unrealengine.com/t/createing-toolbar-menu-or-multibox-in-python/156619)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9353ce3a](https://forums.unrealengine.com/u/anonymous_user_9353ce3a)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 6:45pm UTC](https://forums.unrealengine.com/t/createing-toolbar-menu-or-multibox-in-python/156619 "2021-01-21T18:45:55Z")

</div>

Can someone show a small example of creating a toolbar or multibox menu with some definition connect to it. I found in documentation unreal.ToolMenu and unreal.MultiBoxType but I don’t know how to use it. Thx in advance

---

## [Editor Utility Widget Questions](https://forums.unrealengine.com/t/editor-utility-widget-questions/156329)

<div class="topic-metadata">

**Author:** [@Sorai](https://forums.unrealengine.com/u/Sorai)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 8:34am UTC](https://forums.unrealengine.com/t/editor-utility-widget-questions/156329 "2021-01-21T08:34:34Z")

</div>

https://forums.unrealengine.com/core/create-content/text/ https://forums.unrealengine.com/core/create-content/text/ A few questions for making tools using utility widgets…

---

## [Web Remote API command to flip Editor into and out of PIE mode?](https://forums.unrealengine.com/t/web-remote-api-command-to-flip-editor-into-and-out-of-pie-mode/156655)

<div class="topic-metadata">

**Author:** [@esfashion](https://forums.unrealengine.com/u/esfashion)\
**Replies:** 0\
**Last updated:** [January 20, 2021, 6:20pm UTC](https://forums.unrealengine.com/t/web-remote-api-command-to-flip-editor-into-and-out-of-pie-mode/156655 "2021-01-20T18:20:38Z")

</div>

I have been able to do various things with the http web remote API although more documentation would be welcome. I am able to issue commands that work when the Editor is in and out of PIE mode. What I have not been able …

---

## [How to create a C++ class using Python API](https://forums.unrealengine.com/t/how-to-create-a-c-class-using-python-api/156584)

<div class="topic-metadata">

**Author:** [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Replies:** 0\
**Last updated:** [January 19, 2021, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-create-a-c-class-using-python-api/156584 "2021-01-19T15:27:39Z")

</div>

Hi there. Developing a python tool. What do I need to do to create a C++ class from the python API?

---

## [Transact Object Not Working for Dynamically Added Widget?](https://forums.unrealengine.com/t/transact-object-not-working-for-dynamically-added-widget/156560)

<div class="topic-metadata">

**Author:** [@Sorai](https://forums.unrealengine.com/u/Sorai)\
**Replies:** 0\
**Last updated:** [January 19, 2021, 2:25am UTC](https://forums.unrealengine.com/t/transact-object-not-working-for-dynamically-added-widget/156560 "2021-01-19T02:25:38Z")

</div>

https://forums.unrealengine.com/core/create-content/text/ https://forums.unrealengine.com/core/create-content/text/ Part of my tool creates a widget and adds it as a chil…

---

## [Delay in python scripting](https://forums.unrealengine.com/t/delay-in-python-scripting/456612)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0b2051b9](https://forums.unrealengine.com/u/anonymous_user_0b2051b9)\
**Replies:** 2\
**Last updated:** [January 18, 2021, 9:58pm UTC](https://forums.unrealengine.com/t/delay-in-python-scripting/456612 "2021-01-18T21:58:14Z")

</div>

I want to use this in python. Also, I know that its name is unreal.SystemLibrary.delay(world\_context\_object, duration, latent\_info). There are three parameters in this function. (like below) world\_context\_object (Ob…

---

## [Changing UObject Reflection Data Removes it From Asset List](https://forums.unrealengine.com/t/changing-uobject-reflection-data-removes-it-from-asset-list/156537)

<div class="topic-metadata">

**Author:** [@XeroKimo](https://forums.unrealengine.com/u/XeroKimo)\
**Replies:** 0\
**Last updated:** [January 18, 2021, 5:53pm UTC](https://forums.unrealengine.com/t/changing-uobject-reflection-data-removes-it-from-asset-list/156537 "2021-01-18T17:53:45Z")

</div>

I followed a tutorial on how to add a custom UObject into the Create Asset List, but whenever I add/remove a UProperty to the object, it would stop showing up in the Asset List unless I restarted the engine. Is this inte…

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

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