# Editor Scripting

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

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

**Page:** 50

---

## [Which should I use UUserDefinedStruct or normal USTRUCT](https://forums.unrealengine.com/t/which-should-i-use-uuserdefinedstruct-or-normal-ustruct/467904)

<div class="topic-metadata">

**Author:** [@Roxford7](https://forums.unrealengine.com/u/Roxford7)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 8:49pm UTC](https://forums.unrealengine.com/t/which-should-i-use-uuserdefinedstruct-or-normal-ustruct/467904 "2020-07-19T20:49:10Z")

</div>

When we want to define struct in C++, which way shold we use? Create C++ class UUserDefinedStruct inherited Create header file manually and define structs as many as we want(Not define class. Struct only.)

---

## [Use UE cmd run python script to render a sequencer crashed](https://forums.unrealengine.com/t/use-ue-cmd-run-python-script-to-render-a-sequencer-crashed/146887)

<div class="topic-metadata">

**Author:** [@5775486f](https://forums.unrealengine.com/u/5775486f)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 2:29pm UTC](https://forums.unrealengine.com/t/use-ue-cmd-run-python-script-to-render-a-sequencer-crashed/146887 "2020-07-15T14:29:04Z")

</div>

Hi everyone I’m trying to using UE-cmd to run a python script to open a level and render a movie sequencer ,everything seems ok but when I do render work ,engine crashed here is log: \[2020.07.03-12.01.08:319\] 0\]LogOut…

---

## [用UEcmd执行渲染任务崩溃](https://forums.unrealengine.com/t/uecmd/467597)

<div class="topic-metadata">

**Author:** [@5775486f](https://forums.unrealengine.com/u/5775486f)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 2:24pm UTC](https://forums.unrealengine.com/t/uecmd/467597 "2020-07-15T14:24:23Z")

</div>

用UE cmd执行一段python命令，在后台打开场景，渲染sequencer，在执行渲染命令的时候崩溃了 用4.24,4.25都会报这个错，只是行数不一样 Assertion failed: IsValid() \[File:D:\\Build++UE4+Licensee\\Sync\\Engine\\Source\\Runtime\\Core\\Public\\Templates/SharedPointer.h\] \[Line: 879\] 4.2…

---

## [用ue命令行调用python执行渲染操作引擎崩溃](https://forums.unrealengine.com/t/ue-python/467599)

<div class="topic-metadata">

**Author:** [@5775486f](https://forums.unrealengine.com/u/5775486f)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 2:21pm UTC](https://forums.unrealengine.com/t/ue-python/467599 "2020-07-15T14:21:41Z")

</div>

hi，我用ue cmd执行了一段pythn命令，作用是打开引擎，打开场景，按照传入的参数设置渲染参数，然后执行渲染操作，命令在执行unreal.SequencerTools.render\_movie的时候直接崩溃了

---

## [\[SOLVED\] SourceImportFilename returns Nothing](https://forums.unrealengine.com/t/solved-sourceimportfilename-returns-nothing/147480)

<div class="topic-metadata">

**Author:** [@Space\_HQ](https://forums.unrealengine.com/u/Space_HQ)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 11:11am UTC](https://forums.unrealengine.com/t/solved-sourceimportfilename-returns-nothing/147480 "2020-07-15T11:11:27Z")

</div>

Hello I would like to get the source file path of the static mesh but its only returning blank. Does anyone know why when I do the following: FString sourceFilePath = StaticMeshComp-\>GetStaticMesh()-\>GetSourceModel(0…

---

## [How to show(or hide) the UMG on the specific screen(viewport)?](https://forums.unrealengine.com/t/how-to-show-or-hide-the-umg-on-the-specific-screen-viewport/147443)

<div class="topic-metadata">

**Author:** [@s2233125](https://forums.unrealengine.com/u/s2233125)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 5:27am UTC](https://forums.unrealengine.com/t/how-to-show-or-hide-the-umg-on-the-specific-screen-viewport/147443 "2020-07-14T05:27:04Z")

</div>

Hi Everyone I’m having a problem with nDisplay I had set 2 viewport in config file, and I like to show the UMG on one viewport, But somehow, the UMG will show on every single viewport that I set in config file. So my que…

---

## [Unable to set array element in structure](https://forums.unrealengine.com/t/unable-to-set-array-element-in-structure/468124)

<div class="topic-metadata">

**Author:** [@rconnor410](https://forums.unrealengine.com/u/rconnor410)\
**Replies:** 3\
**Last updated:** [July 13, 2020, 10:32pm UTC](https://forums.unrealengine.com/t/unable-to-set-array-element-in-structure/468124 "2020-07-13T22:32:37Z")

</div>

I remember something about references from structures being an issue in my code, but I might be remembering wrong. It appears you don’t have a reference returned for the Category STR return value. I’m not saying you can …

---

## [Can't manage to make "Make Directory" node work (from "Editor Utility Widget blueprint)](https://forums.unrealengine.com/t/cant-manage-to-make-make-directory-node-work-from-editor-utility-widget-blueprint/147382)

<div class="topic-metadata">

**Author:** [@JingleSpell](https://forums.unrealengine.com/u/JingleSpell)\
**Replies:** 3\
**Last updated:** [July 13, 2020, 8:59pm UTC](https://forums.unrealengine.com/t/cant-manage-to-make-make-directory-node-work-from-editor-utility-widget-blueprint/147382 "2020-07-13T20:59:16Z")

</div>

Hi everyone ! Did anyone succeed in using the “Make Directory” node in blueprint ? This one seems fairly new and is poorly documented. I’m using 4.25.1 and can’t manage to make it work in my editor widget blueprint. Ma…

---

## [I'm trying to save an Actor Location](https://forums.unrealengine.com/t/im-trying-to-save-an-actor-location/467918)

<div class="topic-metadata">

**Author:** [@Ricov123](https://forums.unrealengine.com/u/Ricov123)\
**Replies:** 4\
**Last updated:** [July 13, 2020, 5:28am UTC](https://forums.unrealengine.com/t/im-trying-to-save-an-actor-location/467918 "2020-07-13T05:28:54Z")

</div>

I can’t figure out what I’m leaving out - I have an Actor Object Reference, Location and Save File Variable but it doesn’t push any data. I’m trying to save the location of an Actor pulled into the game The debug…

---

## [Scripting Landscape/Level Creation](https://forums.unrealengine.com/t/scripting-landscape-level-creation/147318)

<div class="topic-metadata">

**Author:** [@frisbone](https://forums.unrealengine.com/u/frisbone)\
**Replies:** 0\
**Last updated:** [July 11, 2020, 12:05pm UTC](https://forums.unrealengine.com/t/scripting-landscape-level-creation/147318 "2020-07-11T12:05:52Z")

</div>

I’m looking to get pointed in the right direction. My focus currently is translating existing terrain from a custom engine to UE4 and I have a manual process established for doing so. Now I need to make sure I can automa…

---

## [Python custom libraries work only with LD\_PRELOAD](https://forums.unrealengine.com/t/python-custom-libraries-work-only-with-ld-preload/458625)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fac8d931](https://forums.unrealengine.com/u/anonymous_user_fac8d931)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 12:58pm UTC](https://forums.unrealengine.com/t/python-custom-libraries-work-only-with-ld-preload/458625 "2020-07-10T12:58:14Z")

</div>

Hi, I’m having a other libraries which I like to import into Python. Although when I try this I alwalys get the error that the python file can’t load the lib\*\*\*.so. When I add the environment variable export LD\_PRELOAD…

---

## [how do I use python create anim node?](https://forums.unrealengine.com/t/how-do-i-use-python-create-anim-node/467902)

<div class="topic-metadata">

**Author:** [@lush8884](https://forums.unrealengine.com/u/lush8884)\
**Replies:** 0\
**Last updated:** [July 9, 2020, 9:51am UTC](https://forums.unrealengine.com/t/how-do-i-use-python-create-anim-node/467902 "2020-07-09T09:51:39Z")

</div>

I need use python create a AnimBlueprint and a copy pose From Mesh， connect Copy Pose From Mesh and Output Pose.

---

## [Modifying/Reading Enumeration Blueprints with Python?](https://forums.unrealengine.com/t/modifying-reading-enumeration-blueprints-with-python/145800)

<div class="topic-metadata">

**Author:** [@VenomStyx](https://forums.unrealengine.com/u/VenomStyx)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 4:48am UTC](https://forums.unrealengine.com/t/modifying-reading-enumeration-blueprints-with-python/145800 "2020-07-08T04:48:04Z")

</div>

Thanks in advance for reading! Trying to figure out how to read and write to an enumeration blueprint with Python. I’ve looked through the docs and so far no luck. I’m using a Python BP Function Library I created. Any …

---

## [Add new component to existing blueprint actor with python](https://forums.unrealengine.com/t/add-new-component-to-existing-blueprint-actor-with-python/147035)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3d17d263](https://forums.unrealengine.com/u/anonymous_user_3d17d263)\
**Replies:** 0\
**Last updated:** [July 6, 2020, 10:35am UTC](https://forums.unrealengine.com/t/add-new-component-to-existing-blueprint-actor-with-python/147035 "2020-07-06T10:35:26Z")

</div>

Hey guys. How can I add a new component to an existing blueprint actor with python? For example, I have an Actor and want to add some StaticMeshes and SceneComponents inside that. Hope someone could guide me. Thanks. …

---

## [Avoid Asset Loading for Asset Context Menu](https://forums.unrealengine.com/t/avoid-asset-loading-for-asset-context-menu/146960)

<div class="topic-metadata">

**Author:** [@Mowgl33](https://forums.unrealengine.com/u/Mowgl33)\
**Replies:** 0\
**Last updated:** [July 4, 2020, 9:28pm UTC](https://forums.unrealengine.com/t/avoid-asset-loading-for-asset-context-menu/146960 "2020-07-04T21:28:41Z")

</div>

This issue came up in the context of adding context menu options for an Editor plugin I’ve been working on. My end goal is to gather the selected assets and then provide a new context menu option to the developer. This w…

---

## [Game Manager Object?](https://forums.unrealengine.com/t/game-manager-object/467581)

<div class="topic-metadata">

**Author:** [@Random\_Paladin](https://forums.unrealengine.com/u/Random_Paladin)\
**Replies:** 5\
**Last updated:** [July 3, 2020, 12:09pm UTC](https://forums.unrealengine.com/t/game-manager-object/467581 "2020-07-03T12:09:31Z")

</div>

I’m creating a room escape game and am having a little trouble. I’m trying to recreate the camera setup of the Rusty Lake games. I’ve currently made an array for several locators that the player controller moves and alig…

---

## [Can't Create Animation Blueprint](https://forums.unrealengine.com/t/cant-create-animation-blueprint/141558)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1aff0c6b](https://forums.unrealengine.com/u/anonymous_user_1aff0c6b)\
**Replies:** 1\
**Last updated:** [July 3, 2020, 11:05am UTC](https://forums.unrealengine.com/t/cant-create-animation-blueprint/141558 "2020-07-03T11:05:24Z")

</div>

Is there a way to create AnimationBlueprint in editor ? I can create with “Create Asset” but it seems i can’t access to Skeleton to populate it.

---

## [Create Media Playlists at Runtime?](https://forums.unrealengine.com/t/create-media-playlists-at-runtime/146835)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_01e83955](https://forums.unrealengine.com/u/anonymous_user_01e83955)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 4:41pm UTC](https://forums.unrealengine.com/t/create-media-playlists-at-runtime/146835 "2020-07-02T16:41:52Z")

</div>

Hi I’m creating an unreal visualisation for some clients where they want to be able to review some quicktime/mp4 work in a virtual space. What I want to be able to do is create playlists at runtime so that the client ca…

---

## [How do I serialize a texture created using Render Target Create Static Texture Editor Only?](https://forums.unrealengine.com/t/how-do-i-serialize-a-texture-created-using-render-target-create-static-texture-editor-only/146748)

<div class="topic-metadata">

**Author:** [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 6:39am UTC](https://forums.unrealengine.com/t/how-do-i-serialize-a-texture-created-using-render-target-create-static-texture-editor-only/146748 "2020-07-01T06:39:40Z")

</div>

I have an object that captures a camera to a rendertarget on a particular event, and then creates a static texture object out of it, and then configures a material instance instance to give it a reference to this texture…

---

## [Error filling UStaticMesh Array](https://forums.unrealengine.com/t/error-filling-ustaticmesh-array/143554)

<div class="topic-metadata">

**Author:** [@FBrigidi](https://forums.unrealengine.com/u/FBrigidi)\
**Replies:** 1\
**Last updated:** [June 29, 2020, 2:02pm UTC](https://forums.unrealengine.com/t/error-filling-ustaticmesh-array/143554 "2020-06-29T14:02:57Z")

</div>

Hello everyone, I’m currently trying to create a blueprint node for the population of an Array of Static Meshes from the .uassets contained in a given folder of the project. I created an object inheriting from UBluepri…

---

## [How to set binding's name in sequencer?](https://forums.unrealengine.com/t/how-to-set-bindings-name-in-sequencer/146584)

<div class="topic-metadata">

**Author:** [@supelite\_x](https://forums.unrealengine.com/u/supelite_x)\
**Replies:** 2\
**Last updated:** [June 29, 2020, 2:23am UTC](https://forums.unrealengine.com/t/how-to-set-bindings-name-in-sequencer/146584 "2020-06-29T02:23:56Z")

</div>

Hey guys: I’m going to set the label of a binding object through python in a sequencer, but I didn’t find any related method in unreal.SequencerBindingProxy object, it only supplies ‘get\_name()’ method. Is the method/f…

---

## [how can I download the latest update for World War Z](https://forums.unrealengine.com/t/how-can-i-download-the-latest-update-for-world-war-z/466024)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_006d77d2](https://forums.unrealengine.com/u/anonymous_user_006d77d2)\
**Replies:** 1\
**Last updated:** [June 28, 2020, 9:35am UTC](https://forums.unrealengine.com/t/how-can-i-download-the-latest-update-for-world-war-z/466024 "2020-06-28T09:35:05Z")

</div>

Hi, There is no way to save any progress. Seems that the latest update correct this problem. Thanks, Jack

---

## [Creating Command Line tools for Exporting/Level Processing?](https://forums.unrealengine.com/t/creating-command-line-tools-for-exporting-level-processing/146574)

<div class="topic-metadata">

**Author:** [@MDSRS](https://forums.unrealengine.com/u/MDSRS)\
**Replies:** 1\
**Last updated:** [June 28, 2020, 1:09am UTC](https://forums.unrealengine.com/t/creating-command-line-tools-for-exporting-level-processing/146574 "2020-06-28T01:09:51Z")

</div>

I’m looking for some information on how I would go about creating an command line export tool for exporting ULevel data from unreal engine, so that it can be used to generate custom AI navmeshes for my server implementat…

---

## [Use array structure variables inside struct, to keep it locked if unused](https://forums.unrealengine.com/t/use-array-structure-variables-inside-struct-to-keep-it-locked-if-unused/467341)

<div class="topic-metadata">

**Author:** [@Master\_Dino](https://forums.unrealengine.com/u/Master_Dino)\
**Replies:** 4\
**Last updated:** [June 27, 2020, 7:04pm UTC](https://forums.unrealengine.com/t/use-array-structure-variables-inside-struct-to-keep-it-locked-if-unused/467341 "2020-06-27T19:04:19Z")

</div>

Hello there, i have performance design question, about unused structure arrays instead of variables. For example i have item structure, for inventory logic, it should contain multiple structs inside, to have specific da…

---

## [Engine crash on array compile.](https://forums.unrealengine.com/t/engine-crash-on-array-compile/467321)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_77bfa3251](https://forums.unrealengine.com/u/anonymous_user_77bfa3251)\
**Replies:** 7\
**Last updated:** [June 27, 2020, 2:43pm UTC](https://forums.unrealengine.com/t/engine-crash-on-array-compile/467321 "2020-06-27T14:43:52Z")

</div>

Engine crash on array compile. I am following the AEC Blueprints by example tutorial from this site. I am at the step “adding light toggle”. I create a new variable. Set the type to Actor-\>Object Reference. Use the i…

---

## [Generate UV with Blueprint](https://forums.unrealengine.com/t/generate-uv-with-blueprint/146342)

<div class="topic-metadata">

**Author:** [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Replies:** 1\
**Last updated:** [June 25, 2020, 3:21pm UTC](https://forums.unrealengine.com/t/generate-uv-with-blueprint/146342 "2020-06-25T15:21:32Z")

</div>

I figured out that you can make UV for static meshes with Blueprint editor utility. I made a simple blueprint for it you can check it from the link \[GitHub - vahabahmadvand/EditorUtilites: A simple editor blueprint to …

---

## [How can I get the location reference from an Actor Class inside my Character Class?](https://forums.unrealengine.com/t/how-can-i-get-the-location-reference-from-an-actor-class-inside-my-character-class/467210)

<div class="topic-metadata">

**Author:** [@BobsterTV](https://forums.unrealengine.com/u/BobsterTV)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 3:14am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-location-reference-from-an-actor-class-inside-my-character-class/467210 "2020-06-25T03:14:54Z")

</div>

Hey, I am trying to get the location from an Actor inside my Character Class to always face in his direction, but I cant get the variable to work, it says that the actor is always at x=0, y=0 and z=0 but it definitely i…

---

## [Pawn posession and savegame](https://forums.unrealengine.com/t/pawn-posession-and-savegame/467157)

<div class="topic-metadata">

**Author:** [@Claudiu.Schwartz](https://forums.unrealengine.com/u/Claudiu.Schwartz)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 11:26pm UTC](https://forums.unrealengine.com/t/pawn-posession-and-savegame/467157 "2020-06-24T23:26:17Z")

</div>

Hello, I have a game in which the player pawn is a spirit and can possess various characters. All mechanics work as designed/expected. The problem arises on level change/savegame: Since in the moment when the player is …

---

## [Get Selected Shots in the Sequencer](https://forums.unrealengine.com/t/get-selected-shots-in-the-sequencer/145384)

<div class="topic-metadata">

**Author:** [@schiho](https://forums.unrealengine.com/u/schiho)\
**Replies:** 4\
**Last updated:** [June 24, 2020, 6:06am UTC](https://forums.unrealengine.com/t/get-selected-shots-in-the-sequencer/145384 "2020-06-24T06:06:24Z")

</div>

Is there a way to get the currently selected shots from the sequencer?

---

## [Custom blueprint nodes defined in python need to be refreshed every time I reopen the editor](https://forums.unrealengine.com/t/custom-blueprint-nodes-defined-in-python-need-to-be-refreshed-every-time-i-reopen-the-editor/467153)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a223195b](https://forums.unrealengine.com/u/anonymous_user_a223195b)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 10:00pm UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-defined-in-python-need-to-be-refreshed-every-time-i-reopen-the-editor/467153 "2020-06-23T22:00:47Z")

</div>

I have two python files of interest here: “dapi” and “init\_unreal” “dapi” contains code for custom blueprint nodes (like “Launch UI” in the screenshot). “init\_unreal” only contains two statements : “import unreal” and …

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

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