# Editor Scripting

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

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

**Page:** 23

---

## ["Consolidate Asset" BP Action not consolidating Materials with Material Instances](https://forums.unrealengine.com/t/consolidate-asset-bp-action-not-consolidating-materials-with-material-instances/634668)

<div class="topic-metadata">

**Author:** [@Majusbear](https://forums.unrealengine.com/u/Majusbear)\
**Replies:** 0\
**Last updated:** [August 26, 2022, 9:34am UTC](https://forums.unrealengine.com/t/consolidate-asset-bp-action-not-consolidating-materials-with-material-instances/634668 "2022-08-26T09:34:58Z")

</div>

Hey guys, I have a whole bunch of materials that I want to replace with material instances. All is well until I get to the BP node of “Consolidate Assets”, which tells me: The object ‘material’ doesn’t have the same c…

---

## [How to add BP scripts on BP instance modification on level?](https://forums.unrealengine.com/t/how-to-add-bp-scripts-on-bp-instance-modification-on-level/634618)

<div class="topic-metadata">

**Author:** [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Replies:** 0\
**Last updated:** [August 26, 2022, 8:25am UTC](https://forums.unrealengine.com/t/how-to-add-bp-scripts-on-bp-instance-modification-on-level/634618 "2022-08-26T08:25:38Z")

</div>

I’m wanting to setup some blueprint scripts that would fire when someone modifies Actors in editor. For example if some properties on the Actor are modified I want to run a BP script that generates some other actors. Or …

---

## [Problem Setting Up Visual Studio for Unreal Engine](https://forums.unrealengine.com/t/problem-setting-up-visual-studio-for-unreal-engine/634024)

<div class="topic-metadata">

**Author:** [@SlaynalQueen](https://forums.unrealengine.com/u/SlaynalQueen)\
**Replies:** 0\
**Last updated:** [August 25, 2022, 10:21am UTC](https://forums.unrealengine.com/t/problem-setting-up-visual-studio-for-unreal-engine/634024 "2022-08-25T10:21:14Z")

</div>

I’ve recently began learning Unreal Engine 5.03, and I’ve been struggling to get Visual Studio working so I can program with C++. When trying to create a project with C++ instead of blueprints, I’m told to install visual…

---

## [\[SOLVED\] Images As Planes For Unreal](https://forums.unrealengine.com/t/solved-images-as-planes-for-unreal/152292)

<div class="topic-metadata">

**Author:** [@AtomicPerception](https://forums.unrealengine.com/u/AtomicPerception)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 7:47pm UTC](https://forums.unrealengine.com/t/solved-images-as-planes-for-unreal/152292 "2022-08-24T19:47:06Z")

</div>

I put together a short script that scans a folder and creates a mesh for each image. It links the image to a material and assigns the material to the mesh. It stacks up your images in z-space. # Images As Planes, for …

---

## [Player looks at a pawn and the pawn starts chasing the player](https://forums.unrealengine.com/t/player-looks-at-a-pawn-and-the-pawn-starts-chasing-the-player/633479)

<div class="topic-metadata">

**Author:** [@Kajmak999](https://forums.unrealengine.com/u/Kajmak999)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 4:30pm UTC](https://forums.unrealengine.com/t/player-looks-at-a-pawn-and-the-pawn-starts-chasing-the-player/633479 "2022-08-24T16:30:16Z")

</div>

I want to make a quick jumpscare. An enemy spawns behind you and when you turn around and look at the enemy it starts chasing you. Does anybody know how to make that?

---

## [Scripted Action Array Input bug (UE-151122)](https://forums.unrealengine.com/t/scripted-action-array-input-bug-ue-151122/632962)

<div class="topic-metadata">

**Author:** [@Grainofsalt](https://forums.unrealengine.com/u/Grainofsalt)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 4:02pm UTC](https://forums.unrealengine.com/t/scripted-action-array-input-bug-ue-151122/632962 "2022-08-24T16:02:15Z")

</div>

I’ve noticed this exact bug in UE5.0.3 (Same repro steps, same results) UE-151122 - Unreal Engine Issues and Bug Tracker (UE-151122) The bug is closed as Duplicate, but there are no links to the other bug. So my quest…

---

## [How can I get all AssetData tags for specific asset?](https://forums.unrealengine.com/t/how-can-i-get-all-assetdata-tags-for-specific-asset/568822)

<div class="topic-metadata">

**Author:** [@Kein](https://forums.unrealengine.com/u/Kein)\
**Replies:** 2\
**Last updated:** [August 23, 2022, 3:22am UTC](https://forums.unrealengine.com/t/how-can-i-get-all-assetdata-tags-for-specific-asset/568822 "2022-08-23T03:22:23Z")

</div>

When you cook a project, automation tool also cooks AR data for each asset. I can get basic asset data via exposed python API: assetData = unreal.AssetRegistryHelpers.create\_asset\_data(assetObject, True) However I cant…

---

## [How to convert an "asset path" to a "os/system path" in Python?](https://forums.unrealengine.com/t/how-to-convert-an-asset-path-to-a-os-system-path-in-python/248087)

<div class="topic-metadata">

**Author:** [@skunkiferous](https://forums.unrealengine.com/u/skunkiferous)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 3:13pm UTC](https://forums.unrealengine.com/t/how-to-convert-an-asset-path-to-a-os-system-path-in-python/248087 "2022-08-19T15:13:07Z")

</div>

What is the “correct” way to do this in Python, so that it also works for directories not starting with “/Game/” (for example, content-only plugins)? unreal\_paths = unreal.Paths() CONTENT\_DIR = unreal\_paths.project\_cont…

---

## [Can I change what fbx a file references as source without reimporting (in python)?](https://forums.unrealengine.com/t/can-i-change-what-fbx-a-file-references-as-source-without-reimporting-in-python/137741)

<div class="topic-metadata">

**Author:** [@lumberjackprince](https://forums.unrealengine.com/u/lumberjackprince)\
**Replies:** 3\
**Last updated:** [August 19, 2022, 10:10am UTC](https://forums.unrealengine.com/t/can-i-change-what-fbx-a-file-references-as-source-without-reimporting-in-python/137741 "2022-08-19T10:10:15Z")

</div>

I know how to get the source fbx, via someAsset.get\_editor\_property('asset\_import\_data').extract\_filenames() What I really need is to edit the paths because when renaming an asset, I’m renaming the source content too…

---

## [How can I get the .fbx source file path from a static mesh asset using python editor scripting?](https://forums.unrealengine.com/t/how-can-i-get-the-fbx-source-file-path-from-a-static-mesh-asset-using-python-editor-scripting/450640)

<div class="topic-metadata">

**Author:** [@bryan\_smyth](https://forums.unrealengine.com/u/bryan_smyth)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 10:05am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-fbx-source-file-path-from-a-static-mesh-asset-using-python-editor-scripting/450640 "2022-08-19T10:05:54Z")

</div>

I’ve gotten as far as having a FbxStaticMeshImportData object and a AssetImportInfo object. But I’m struggling to figure out how the get source file path from there. Any help greatly appreciated. import unreal asset\_pa…

---

## [Is it ok to delete the vault cache?](https://forums.unrealengine.com/t/is-it-ok-to-delete-the-vault-cache/629413)

<div class="topic-metadata">

**Author:** [@jin8864y](https://forums.unrealengine.com/u/jin8864y)\
**Replies:** 9\
**Last updated:** [August 18, 2022, 8:58pm UTC](https://forums.unrealengine.com/t/is-it-ok-to-delete-the-vault-cache/629413 "2022-08-18T20:58:49Z")

</div>

The vault cache folder is getting bigger and bigger. It eats my hard drive quickly. Is it ok to delete the vault cache folders?

---

## [Blender send2ue Plugin rpc error](https://forums.unrealengine.com/t/blender-send2ue-plugin-rpc-error/583337)

<div class="topic-metadata">

**Author:** [@Mr\_Survival](https://forums.unrealengine.com/u/Mr_Survival)\
**Replies:** 2\
**Last updated:** [August 18, 2022, 11:25am UTC](https://forums.unrealengine.com/t/blender-send2ue-plugin-rpc-error/583337 "2022-08-18T11:25:32Z")

</div>

I have a problem with the “send2ue” plugin for Blender. I use version 3.2. I did the setup in Blender and Ue and have a mesh in the export collection. When I press Export → send2ue comes the first error. When I click Uti…

---

## [PYTHON How to check if a file already exists?](https://forums.unrealengine.com/t/python-how-to-check-if-a-file-already-exists/630836)

<div class="topic-metadata">

**Author:** [@PhiiLL](https://forums.unrealengine.com/u/PhiiLL)\
**Replies:** 1\
**Last updated:** [August 18, 2022, 8:51am UTC](https://forums.unrealengine.com/t/python-how-to-check-if-a-file-already-exists/630836 "2022-08-18T08:51:43Z")

</div>

Hey guys, how can I check if a file already exists with python? I now about unreal.Paths.file\_exists(path), but this method needs a path on disc. Instead I want to use something like “/Game/Folder/File”. Thank you!

---

## [How to import CUSTOM asset with Python?](https://forums.unrealengine.com/t/how-to-import-custom-asset-with-python/630341)

<div class="topic-metadata">

**Author:** [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Replies:** 0\
**Last updated:** [August 17, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/how-to-import-custom-asset-with-python/630341 "2022-08-17T15:10:55Z")

</div>

I have Nvidia Omniverse plugin. This plugin adds a item in Right mouse button menu in Asset browser - “Import facial animation”. Manually - i RMB, then click this item. Choose \*.usd files, and set options. Omniver…

---

## [How to maintain save game compatibility with newer game versions?](https://forums.unrealengine.com/t/how-to-maintain-save-game-compatibility-with-newer-game-versions/380619)

<div class="topic-metadata">

**Author:** [@CyberblastSoft](https://forums.unrealengine.com/u/CyberblastSoft)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 6:02am UTC](https://forums.unrealengine.com/t/how-to-maintain-save-game-compatibility-with-newer-game-versions/380619 "2022-08-17T06:02:11Z")

</div>

Hey Guys! I was wondering if there is a “proper” way to make sure that old save files are able to be read by newer game versions. I know that whether you are using custom binary save or SaveGame classes, if you completel…

---

## [Unreal Python API: specific property is unreachable](https://forums.unrealengine.com/t/unreal-python-api-specific-property-is-unreachable/625341)

<div class="topic-metadata">

**Author:** [@baikgyul](https://forums.unrealengine.com/u/baikgyul)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 1:26am UTC](https://forums.unrealengine.com/t/unreal-python-api-specific-property-is-unreachable/625341 "2022-08-16T01:26:46Z")

</div>

Hi, I would like to use properties of lightcomponent: max draw distance and max fade range , as the document clarified. however, it sends me error message that the LightComponent has no such attribute. Is it an …

---

## [Execute procedure from another py-file not working](https://forums.unrealengine.com/t/execute-procedure-from-another-py-file-not-working/628853)

<div class="topic-metadata">

**Author:** [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Replies:** 0\
**Last updated:** [August 15, 2022, 2:43pm UTC](https://forums.unrealengine.com/t/execute-procedure-from-another-py-file-not-working/628853 "2022-08-15T14:43:18Z")

</div>

I want to execute procedure “MyProc” from another py - file. UE 5.0.3 main.py import unreal unreal.log("Script Started") import module level\_sequence=module.MyProc() module.py def MyProc(): print("Procedure exec…

---

## [Descriptor 'get\_editor\_world' of 'UnrealEditorSubsystem' object needs an argument](https://forums.unrealengine.com/t/descriptor-get-editor-world-of-unrealeditorsubsystem-object-needs-an-argument/625651)

<div class="topic-metadata">

**Author:** [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Replies:** 1\
**Last updated:** [August 11, 2022, 8:33am UTC](https://forums.unrealengine.com/t/descriptor-get-editor-world-of-unrealeditorsubsystem-object-needs-an-argument/625651 "2022-08-11T08:33:58Z")

</div>

I’m playing with Python in editor. When i use construction world = unreal.EditorLevelLibrary.get\_editor\_world() it works, but says that this construction is deprecated, and i must ““Use the function in Unreal Editor S…

---

## [How to get Python Unit Tests to run inside of the Unreal Editor?](https://forums.unrealengine.com/t/how-to-get-python-unit-tests-to-run-inside-of-the-unreal-editor/618444)

<div class="topic-metadata">

**Author:** [@IMGoose](https://forums.unrealengine.com/u/IMGoose)\
**Replies:** 2\
**Last updated:** [August 11, 2022, 7:47am UTC](https://forums.unrealengine.com/t/how-to-get-python-unit-tests-to-run-inside-of-the-unreal-editor/618444 "2022-08-11T07:47:14Z")

</div>

Hi all, I am trying to test some Python code inside of the Unreal Editor. However I seem to be having some difficulty getting the python unittest module to run inside of the editor. To ensure I can get unit tests to ru…

---

## [Where is the Python API source?](https://forums.unrealengine.com/t/where-is-the-python-api-source/448293)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4636fdcd](https://forums.unrealengine.com/u/anonymous_user_4636fdcd)\
**Replies:** 3\
**Last updated:** [August 10, 2022, 8:59am UTC](https://forums.unrealengine.com/t/where-is-the-python-api-source/448293 "2022-08-10T08:59:47Z")

</div>

Where can I find the source of the unreal Python module?

---

## [help！Character and background motion do not match in the sequence when import cameraTracker fbx from fusion](https://forums.unrealengine.com/t/help-character-and-background-motion-do-not-match-in-the-sequence-when-import-cameratracker-fbx-from-fusion/624408)

<div class="topic-metadata">

**Author:** [@han77087977](https://forums.unrealengine.com/u/han77087977)\
**Replies:** 3\
**Last updated:** [August 9, 2022, 1:20pm UTC](https://forums.unrealengine.com/t/help-character-and-background-motion-do-not-match-in-the-sequence-when-import-cameratracker-fbx-from-fusion/624408 "2022-08-09T13:20:15Z")

</div>

Let me describe the process first，First I shot a real background video, and then I used Fusion's cameraTracker to solve for a camera animation ，and then I added a cube to Fusion and tested that it matched well， I then…

---

## [Item system from excel with lots of items and variety](https://forums.unrealengine.com/t/item-system-from-excel-with-lots-of-items-and-variety/417299)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5f425dc7](https://forums.unrealengine.com/u/anonymous_user_5f425dc7)\
**Replies:** 2\
**Last updated:** [August 3, 2022, 2:42am UTC](https://forums.unrealengine.com/t/item-system-from-excel-with-lots-of-items-and-variety/417299 "2022-08-03T02:42:30Z")

</div>

I am trying to design some kind of item management system. I have the following requirements: lots of items share meshes (for example I have 15 different machineguns and each use the same mesh) lots of items. 10 gr…

---

## [How to get this brush style for tabs?](https://forums.unrealengine.com/t/how-to-get-this-brush-style-for-tabs/618986)

<div class="topic-metadata">

**Author:** [@CodesBreaker](https://forums.unrealengine.com/u/CodesBreaker)\
**Replies:** 0\
**Last updated:** [August 1, 2022, 12:50pm UTC](https://forums.unrealengine.com/t/how-to-get-this-brush-style-for-tabs/618986 "2022-08-01T12:50:53Z")

</div>

I would like to use this style in my plugins for tabs. How can i do this?

---

## [Animation Montage Not Translating Correctly](https://forums.unrealengine.com/t/animation-montage-not-translating-correctly/616895)

<div class="topic-metadata">

**Author:** [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Replies:** 0\
**Last updated:** [July 29, 2022, 4:38am UTC](https://forums.unrealengine.com/t/animation-montage-not-translating-correctly/616895 "2022-07-29T04:38:28Z")

</div>

So, I’m animating a character to operate a rowboat. The preview meshes are all translated correctly in the Rowboat’s viewport. Here: However, when I run the code in GAME MODE, the animation montage is in the complete…

---

## [Opencv for ue5 build errors 'GNUC'](https://forums.unrealengine.com/t/opencv-for-ue5-build-errors-gnuc/616117)

<div class="topic-metadata">

**Author:** [@Anonymous\_c366f9943e97b58e67bcc676cd1e2e50](https://forums.unrealengine.com/u/Anonymous_c366f9943e97b58e67bcc676cd1e2e50)\
**Replies:** 0\
**Last updated:** [July 28, 2022, 7:43am UTC](https://forums.unrealengine.com/t/opencv-for-ue5-build-errors-gnuc/616117 "2022-07-28T07:43:27Z")

</div>

I have used opencv in ue4.26 but it doesn’t work in ue5 and get this error. How to fix it? |Error|C4668|‘GNUC’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’|

---

## [Error: Failed to resolve the table input](https://forums.unrealengine.com/t/error-failed-to-resolve-the-table-input/477346)

<div class="topic-metadata">

**Author:** [@Paulocasnd54](https://forums.unrealengine.com/u/Paulocasnd54)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 3:07pm UTC](https://forums.unrealengine.com/t/error-failed-to-resolve-the-table-input/477346 "2022-07-27T15:07:12Z")

</div>

As the title says i’m having a error with a inventory system i made, everything works fine until i click on a drop button in which it works but when i exit the editor the output log gives me the following error: “Bluepri…

---

## [Variable name in Structure mangled in Blueprint debugger](https://forums.unrealengine.com/t/variable-name-in-structure-mangled-in-blueprint-debugger/446164)

<div class="topic-metadata">

**Author:** [@T.Slappy](https://forums.unrealengine.com/u/T.Slappy)\
**Replies:** 3\
**Last updated:** [July 27, 2022, 11:35am UTC](https://forums.unrealengine.com/t/variable-name-in-structure-mangled-in-blueprint-debugger/446164 "2022-07-27T11:35:02Z")

</div>

Hello. When debugging Structures in Blueprint it is not possible to clearly see the values of variables in the struct. It looks like some GUID is appended to the variable name that makes it hard to read variable name a…

---

## [Using the Python API to find out the texture type of any given texture file?](https://forums.unrealengine.com/t/using-the-python-api-to-find-out-the-texture-type-of-any-given-texture-file/615360)

<div class="topic-metadata">

**Author:** [@IMGoose](https://forums.unrealengine.com/u/IMGoose)\
**Replies:** 0\
**Last updated:** [July 27, 2022, 9:19am UTC](https://forums.unrealengine.com/t/using-the-python-api-to-find-out-the-texture-type-of-any-given-texture-file/615360 "2022-07-27T09:19:08Z")

</div>

If I select any given texture file in the content browser, is there any python script that I can run that would tell me if this is a normal map, roughness map, lighting map etc?

---

## [Create Asset - Native C++ base clas](https://forums.unrealengine.com/t/create-asset-native-c-base-clas/154293)

<div class="topic-metadata">

**Author:** [@Alwarren](https://forums.unrealengine.com/u/Alwarren)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 4:28pm UTC](https://forums.unrealengine.com/t/create-asset-native-c-base-clas/154293 "2022-07-26T16:28:46Z")

</div>

Hey. Sorry if this has been asked before, I checked the search function but it’s hard to formulate a good search term for it. I am trying to generate a couple of assets via an Editor Utility Widget, but it seems I am in…

---

## [i cant do the bluprints](https://forums.unrealengine.com/t/i-cant-do-the-bluprints/613920)

<div class="topic-metadata">

**Author:** [@SuperGamerPlaer1](https://forums.unrealengine.com/u/SuperGamerPlaer1)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 8:18pm UTC](https://forums.unrealengine.com/t/i-cant-do-the-bluprints/613920 "2022-07-25T20:18:55Z")

</div>

i am making a horror game and when my enemy is chasing me a music starts. The problem is that i have a background music. and when my enemy is chasing me the background music dodoesn’t stop please help!

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

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