# Editor Scripting

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

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

**Page:** 27

---

## [Text depending of a float value](https://forums.unrealengine.com/t/text-depending-of-a-float-value/493203)

<div class="topic-metadata">

**Author:** [@Legalcjoo](https://forums.unrealengine.com/u/Legalcjoo)\
**Replies:** 2\
**Last updated:** [February 2, 2022, 4:47am UTC](https://forums.unrealengine.com/t/text-depending-of-a-float-value/493203 "2022-02-02T04:47:22Z")

</div>

Hello. I got player ability(float) and on m key i got menu. I want to display it in this way: When float=0 display it as “-”, when float=1 display it as “Beginner”, when float=2 display it as “Advanced” and when float=3 …

---

## [How can I automatically proceed with Fbx import without a dialog box?](https://forums.unrealengine.com/t/how-can-i-automatically-proceed-with-fbx-import-without-a-dialog-box/275000)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_685c1b43](https://forums.unrealengine.com/u/anonymous_user_685c1b43)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 5:53pm UTC](https://forums.unrealengine.com/t/how-can-i-automatically-proceed-with-fbx-import-without-a-dialog-box/275000 "2022-02-01T17:53:28Z")

</div>

I have a large amount of files (Texture, obj, mtl). And I want to import these. However, when you perform an import, the Fbx import option dialog box appears for each file. After modifying the option, I want to apply the…

---

## [Custom Flow Control Node](https://forums.unrealengine.com/t/custom-flow-control-node/492779)

<div class="topic-metadata">

**Author:** [@DeckSmeck1](https://forums.unrealengine.com/u/DeckSmeck1)\
**Replies:** 8\
**Last updated:** [February 1, 2022, 5:37pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779 "2022-02-01T17:37:25Z")

</div>

Hello, I ama beginner. It would be handy for me if there was a flow control node with two execution input pins and one execution output pin and one Boolean output pin. If the execution flow happens through input pin 1…

---

## [Problem with sRGB](https://forums.unrealengine.com/t/problem-with-srgb/143204)

<div class="topic-metadata">

**Author:** [@Hirk](https://forums.unrealengine.com/u/Hirk)\
**Replies:** 1\
**Last updated:** [January 29, 2022, 3:24am UTC](https://forums.unrealengine.com/t/problem-with-srgb/143204 "2022-01-29T03:24:25Z")

</div>

Hello, my Editor Utility (UE4.24.1) for Texture assets is working very well on preparing MetallicRoughness textures from Substance Painter. It sets the texture to Mask no sRGB, sets the Composite channel to green and add…

---

## [Access specific StaticMesh from a Editor Utility Widget](https://forums.unrealengine.com/t/access-specific-staticmesh-from-a-editor-utility-widget/491790)

<div class="topic-metadata">

**Author:** [@scottunreal](https://forums.unrealengine.com/u/scottunreal)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 4:52pm UTC](https://forums.unrealengine.com/t/access-specific-staticmesh-from-a-editor-utility-widget/491790 "2022-01-27T16:52:38Z")

</div>

If I want to create a very simple Editor Utility Widget to simply toggle the visibility of a specific static mesh already in the level, what’s the proper way to access that static mesh? Most Editor Widget examples requi…

---

## [How to share my Scripted Action with other people](https://forums.unrealengine.com/t/how-to-share-my-scripted-action-with-other-people/274768)

<div class="topic-metadata">

**Author:** [@kakyoism](https://forums.unrealengine.com/u/kakyoism)\
**Replies:** 1\
**Last updated:** [January 27, 2022, 10:22am UTC](https://forums.unrealengine.com/t/how-to-share-my-scripted-action-with-other-people/274768 "2022-01-27T10:22:08Z")

</div>

I wrote a Scripted Action through an Editor Utility Blueprint that works fine within my local Unreal project. Now I want to share it across the team. Here is what I tried: Copy my\_proj/Contents/Blueprints/my\_editor\_uti…

---

## [Python script - how to change and apply material base color](https://forums.unrealengine.com/t/python-script-how-to-change-and-apply-material-base-color/274055)

<div class="topic-metadata">

**Author:** [@sturelygren](https://forums.unrealengine.com/u/sturelygren)\
**Replies:** 1\
**Last updated:** [January 25, 2022, 10:17pm UTC](https://forums.unrealengine.com/t/python-script-how-to-change-and-apply-material-base-color/274055 "2022-01-25T22:17:29Z")

</div>

Hi, How would one go about changing the base color for a material by scripting (I’ve got \>5k that needs altering and I really want to avoid manual work)? Here’s what I’ve tried m = unreal.EditorAssetLibrary.load\_asset…

---

## [How to add custom menu item to AnimNotify?](https://forums.unrealengine.com/t/how-to-add-custom-menu-item-to-animnotify/274773)

<div class="topic-metadata">

**Author:** [@kakyoism](https://forums.unrealengine.com/u/kakyoism)\
**Replies:** 0\
**Last updated:** [January 25, 2022, 10:13am UTC](https://forums.unrealengine.com/t/how-to-add-custom-menu-item-to-animnotify/274773 "2022-01-25T10:13:55Z")

</div>

I’d love to add context-aware actions to AnimNotify within the Notify track of an animation sequence. However, there is little documentation on how to customize this particular portion of the menus. Should I still use E…

---

## [With Python (UE 4.26), how to retrieve a selected AnimNotify on a notify track?](https://forums.unrealengine.com/t/with-python-ue-4-26-how-to-retrieve-a-selected-animnotify-on-a-notify-track/274732)

<div class="topic-metadata">

**Author:** [@kakyoism](https://forums.unrealengine.com/u/kakyoism)\
**Replies:** 0\
**Last updated:** [January 25, 2022, 3:47am UTC](https://forums.unrealengine.com/t/with-python-ue-4-26-how-to-retrieve-a-selected-animnotify-on-a-notify-track/274732 "2022-01-25T03:47:10Z")

</div>

In my Python script, I’m trying to get the selected animation notify event object from the Animation Editor, but couldn’t find a simple accessor or any structure from AnimSequence acquired from load\_asset(). What would …

---

## [Automating Asset Export Task](https://forums.unrealengine.com/t/automating-asset-export-task/223189)

<div class="topic-metadata">

**Author:** [@Jimbimbimbap](https://forums.unrealengine.com/u/Jimbimbimbap)\
**Replies:** 8\
**Last updated:** [January 21, 2022, 4:30pm UTC](https://forums.unrealengine.com/t/automating-asset-export-task/223189 "2022-01-21T16:30:35Z")

</div>

Hi! I would like to ask if anyone has a solution to automating static mesh asset exports within Editor Utility Widget by: Building an asset export task with the static mesh asset as the object to export. Running Asset…

---

## [How To?: UMG Button Update in User Interface on Pressed GAMEPAD Buttons in UMG?](https://forums.unrealengine.com/t/how-to-umg-button-update-in-user-interface-on-pressed-gamepad-buttons-in-umg/254113)

<div class="topic-metadata">

**Author:** [@Cherine](https://forums.unrealengine.com/u/Cherine)\
**Replies:** 6\
**Last updated:** [January 21, 2022, 5:43am UTC](https://forums.unrealengine.com/t/how-to-umg-button-update-in-user-interface-on-pressed-gamepad-buttons-in-umg/254113 "2022-01-21T05:43:42Z")

</div>

I have seen tons and tons and tons of UMG tutorials on selecting buttons in Menus, but what I want is a visual representation of button textures I have in various states to show that the PARTICULAR GAMEPAD button, such a…

---

## [How To edit StaticMesh BodySetup via Python Script UE 4.27.2](https://forums.unrealengine.com/t/how-to-edit-staticmesh-bodysetup-via-python-script-ue-4-27-2/273736)

<div class="topic-metadata">

**Author:** [@DevDad](https://forums.unrealengine.com/u/DevDad)\
**Replies:** 1\
**Last updated:** [January 20, 2022, 2:54pm UTC](https://forums.unrealengine.com/t/how-to-edit-staticmesh-bodysetup-via-python-script-ue-4-27-2/273736 "2022-01-20T14:54:25Z")

</div>

Hello guys, I am trying to modify StaticMesh asset BodySetup and set double\_sided\_geometry using Python script and I am having small problem to make it work. I am doing this: import unreal as ue asset = ue.EditorAss…

---

## [Batch applying a blueprint class to selected actors](https://forums.unrealengine.com/t/batch-applying-a-blueprint-class-to-selected-actors/273428)

<div class="topic-metadata">

**Author:** [@byolante](https://forums.unrealengine.com/u/byolante)\
**Replies:** 2\
**Last updated:** [January 19, 2022, 11:13pm UTC](https://forums.unrealengine.com/t/batch-applying-a-blueprint-class-to-selected-actors/273428 "2022-01-19T23:13:12Z")

</div>

Hi I am trying to make a blutility to do batch application of blueprint classes to selected actors. Currently I have this which when I run prompts me to select a class to apply then doesn’t actually apply anything. Is…

---

## [How to make a springboard/high jump mechanic in Unreal Engine 4?](https://forums.unrealengine.com/t/how-to-make-a-springboard-high-jump-mechanic-in-unreal-engine-4/273541)

<div class="topic-metadata">

**Author:** [@C9XCD](https://forums.unrealengine.com/u/C9XCD)\
**Replies:** 6\
**Last updated:** [January 19, 2022, 8:04pm UTC](https://forums.unrealengine.com/t/how-to-make-a-springboard-high-jump-mechanic-in-unreal-engine-4/273541 "2022-01-19T20:04:44Z")

</div>

I’m trying to create a springboard (higher jump) mechanic in Unreal Engine. I would like my character to perform a higher jump if the object (like a wall) in front is shorter than, let’s say, 50 cm (Unreal units). I figu…

---

## [Execute console command for set resolution not work in editor utility widget (4-27) ](https://forums.unrealengine.com/t/execute-console-command-for-set-resolution-not-work-in-editor-utility-widget-4-27/265355)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_29345dee](https://forums.unrealengine.com/u/anonymous_user_29345dee)\
**Replies:** 1\
**Last updated:** [January 19, 2022, 4:21pm UTC](https://forums.unrealengine.com/t/execute-console-command-for-set-resolution-not-work-in-editor-utility-widget-4-27/265355 "2022-01-19T16:21:43Z")

</div>

I’ve been trying to make an editor utility widget that changes the resolution through console command. When pressing the submit button console command gives the correct command without complaining, e.g. r.setRes 1280x720…

---

## [EditorCallable UFUNCTION and GEngine-\>GetWorld() issue](https://forums.unrealengine.com/t/editorcallable-ufunction-and-gengine-getworld-issue/273114)

<div class="topic-metadata">

**Author:** [@gomi](https://forums.unrealengine.com/u/gomi)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 6:59pm UTC](https://forums.unrealengine.com/t/editorcallable-ufunction-and-gengine-getworld-issue/273114 "2022-01-17T18:59:15Z")

</div>

I have a EditorCallable UFUNCTION inside my character class. I added this kind of script inside it in order to track line: if (GEngine-\>GetWorld()) { FVector Loc; FRotator Rot; FHitResult Hit; GEngine-\>GetWorld(…

---

## [Adding Buttons to an Editor Utility Widget using Python](https://forums.unrealengine.com/t/adding-buttons-to-an-editor-utility-widget-using-python/272956)

<div class="topic-metadata">

**Author:** [@ElfaKju](https://forums.unrealengine.com/u/ElfaKju)\
**Replies:** 0\
**Last updated:** [January 17, 2022, 12:31am UTC](https://forums.unrealengine.com/t/adding-buttons-to-an-editor-utility-widget-using-python/272956 "2022-01-17T00:31:12Z")

</div>

I am creating an editor tool with an editor utility widget and Python. One aspect of the tool involves getting every material from the project and displaying them in the widget. Now I have a Python script that finds all …

---

## [How to get texture imported dimensions using python if max\_texture\_size was set?](https://forums.unrealengine.com/t/how-to-get-texture-imported-dimensions-using-python-if-max-texture-size-was-set/272868)

<div class="topic-metadata">

**Author:** [@tsweeper](https://forums.unrealengine.com/u/tsweeper)\
**Replies:** 0\
**Last updated:** [January 16, 2022, 3:22pm UTC](https://forums.unrealengine.com/t/how-to-get-texture-imported-dimensions-using-python-if-max-texture-size-was-set/272868 "2022-01-16T15:22:07Z")

</div>

I am trying to get texture imported size for my custom texture resource statistics. I tried Texture2D.blueprint\_get\_size method and it does not returns imported size but Max In-Game size, affected by maximum texture siz…

---

## [Get size of the compiled asset](https://forums.unrealengine.com/t/get-size-of-the-compiled-asset/266661)

<div class="topic-metadata">

**Author:** [@martian272](https://forums.unrealengine.com/u/martian272)\
**Replies:** 2\
**Last updated:** [January 15, 2022, 12:38pm UTC](https://forums.unrealengine.com/t/get-size-of-the-compiled-asset/266661 "2022-01-15T12:38:43Z")

</div>

Hello everyone! How can I get the size of the compiled asset using python or Editor blueprints? I need to create a CSV table of all assets in a project with a column size for multiple platforms. I figured out how to get …

---

## [How to batch export scene components to glb/glTF file](https://forums.unrealengine.com/t/how-to-batch-export-scene-components-to-glb-gltf-file/272036)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_674a0c2f1](https://forums.unrealengine.com/u/anonymous_user_674a0c2f1)\
**Replies:** 2\
**Last updated:** [January 14, 2022, 1:39pm UTC](https://forums.unrealengine.com/t/how-to-batch-export-scene-components-to-glb-gltf-file/272036 "2022-01-14T13:39:02Z")

</div>

Hello, What I want is to batch export my scene components or blueprint actor as glb/glTF file. I found a free plugin (glTF Exporter) from Unreal Marketplace which is a great plugin that help me to export my scene compo…

---

## [Does Unreal have something similar to Build Report (Unity)?](https://forums.unrealengine.com/t/does-unreal-have-something-similar-to-build-report-unity/266689)

<div class="topic-metadata">

**Author:** [@martian272](https://forums.unrealengine.com/u/martian272)\
**Replies:** 2\
**Last updated:** [January 14, 2022, 8:52am UTC](https://forums.unrealengine.com/t/does-unreal-have-something-similar-to-build-report-unity/266689 "2022-01-14T08:52:56Z")

</div>

Does Unreal have something similar to Build Report (Unity)? I need to know the size of each asset after the build for PS5 for example

---

## [One-click configuration and packaging](https://forums.unrealengine.com/t/one-click-configuration-and-packaging/272266)

<div class="topic-metadata">

**Author:** [@egr](https://forums.unrealengine.com/u/egr)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 6:07pm UTC](https://forums.unrealengine.com/t/one-click-configuration-and-packaging/272266 "2022-01-13T18:07:21Z")

</div>

Hi I want to create a custom editor extension with several buttons each would do the following: set build target (aka server/client) set build configuration (development/shipping etc.) set target platform (android/ios…

---

## [Copy morph targets from one SkeletalMesh to another](https://forums.unrealengine.com/t/copy-morph-targets-from-one-skeletalmesh-to-another/151088)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f92919d11](https://forums.unrealengine.com/u/anonymous_user_f92919d11)\
**Replies:** 9\
**Last updated:** [January 13, 2022, 2:36pm UTC](https://forums.unrealengine.com/t/copy-morph-targets-from-one-skeletalmesh-to-another/151088 "2022-01-13T14:36:18Z")

</div>

I would like to enable modders to copy morphs from one SkeletalMesh to another. I wrote simple Python script to do that. #Takes the last element of all selected stuff in the Content Browser #Copies all morph targets f…

---

## [Using Python to export a FBX file with Materials](https://forums.unrealengine.com/t/using-python-to-export-a-fbx-file-with-materials/270865)

<div class="topic-metadata">

**Author:** [@IMGoose](https://forums.unrealengine.com/u/IMGoose)\
**Replies:** 0\
**Last updated:** [January 7, 2022, 10:57pm UTC](https://forums.unrealengine.com/t/using-python-to-export-a-fbx-file-with-materials/270865 "2022-01-07T22:57:46Z")

</div>

Hi, Is there any way to use python scripting to export an asset as an .FBX file with the materials contained within, or go I need to export the mesh separately from the materials?

---

## [How to create new Blueprint child class asset without C++?](https://forums.unrealengine.com/t/how-to-create-new-blueprint-child-class-asset-without-c/270038)

<div class="topic-metadata">

**Author:** [@eobet](https://forums.unrealengine.com/u/eobet)\
**Replies:** 7\
**Last updated:** [January 6, 2022, 7:31pm UTC](https://forums.unrealengine.com/t/how-to-create-new-blueprint-child-class-asset-without-c/270038 "2022-01-06T19:31:41Z")

</div>

I want to create Blueprint assets (from a world outliner selection) and I’m trying to figure out the “Create Asset” node, but I can’t even get it to accept any path: No matter what I do, it always complains about eit…

---

## [How to open Level Blueprint using python?](https://forums.unrealengine.com/t/how-to-open-level-blueprint-using-python/235990)

<div class="topic-metadata">

**Author:** [@Ashkental](https://forums.unrealengine.com/u/Ashkental)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 5:01pm UTC](https://forums.unrealengine.com/t/how-to-open-level-blueprint-using-python/235990 "2021-06-17T17:01:17Z")

</div>

I’m looking for something very simple, I just want the same function I would get by clicking: Is that possible? I know that I can use the AssetEditorSubsystem to open the editor for other types of assets, and the Edit…

---

## [Creating Blueprint node graph for material with Python?](https://forums.unrealengine.com/t/creating-blueprint-node-graph-for-material-with-python/153462)

<div class="topic-metadata">

**Author:** [@aliasense](https://forums.unrealengine.com/u/aliasense)\
**Replies:** 4\
**Last updated:** [January 4, 2022, 5:23pm UTC](https://forums.unrealengine.com/t/creating-blueprint-node-graph-for-material-with-python/153462 "2022-01-04T17:23:40Z")

</div>

How can one create a new Blueprint material nodes from a python script? import unreal material = unreal.Material(‘Material’) … is there an example?

---

## [PySide module import error: DLL load failed: %1 is not a valid Win32 application](https://forums.unrealengine.com/t/pyside-module-import-error-dll-load-failed-1-is-not-a-valid-win32-application/122724)

<div class="topic-metadata">

**Author:** [@Code\_Goblin](https://forums.unrealengine.com/u/Code_Goblin)\
**Replies:** 4\
**Last updated:** [January 4, 2022, 8:07am UTC](https://forums.unrealengine.com/t/pyside-module-import-error-dll-load-failed-1-is-not-a-valid-win32-application/122724 "2022-01-04T08:07:00Z")

</div>

I’m trying to make some simple UI tools in Unreal using PySide and Qt Designer. However I can’t seem to be able to import any PySide modules. For instance, if I run this code: import sys sys.path.append('C:/Python27/Li…

---

## [Adding virtual bones using Python](https://forums.unrealengine.com/t/adding-virtual-bones-using-python/269865)

<div class="topic-metadata">

**Author:** [@nilusss](https://forums.unrealengine.com/u/nilusss)\
**Replies:** 0\
**Last updated:** [January 3, 2022, 2:47pm UTC](https://forums.unrealengine.com/t/adding-virtual-bones-using-python/269865 "2022-01-03T14:47:14Z")

</div>

Quick rundown of what I want to achieve. I have different skeleton assets that I want to add virtual bones to, and want to acomplish this using Python. However the documentation about adding virtual bones is rather confu…

---

## [Python, how to add sockets and virtual bones to skeleton](https://forums.unrealengine.com/t/python-how-to-add-sockets-and-virtual-bones-to-skeleton/233091)

<div class="topic-metadata">

**Author:** [@artakattack](https://forums.unrealengine.com/u/artakattack)\
**Replies:** 1\
**Last updated:** [January 3, 2022, 2:25pm UTC](https://forums.unrealengine.com/t/python-how-to-add-sockets-and-virtual-bones-to-skeleton/233091 "2022-01-03T14:25:15Z")

</div>

Hello, Been digging through the Python API for a way to add sockets and virtual bones to skeletons without any luck. Anyone know how to do this? Thanks!

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

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