# Editor Scripting

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

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

**Page:** 42

---

## [Python: Getting the source file of a texture map](https://forums.unrealengine.com/t/python-getting-the-source-file-of-a-texture-map/156405)

<div class="topic-metadata">

**Author:** [@mad\_guru](https://forums.unrealengine.com/u/mad_guru)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 4:55am UTC](https://forums.unrealengine.com/t/python-getting-the-source-file-of-a-texture-map/156405 "2021-01-18T04:55:43Z")

</div>

Hi, I’m trying to get the source file of a texture map asset via python. I can get all the Texture2D maps, but I am not sure how to get the source file. I saw that there is an AssetImportData and asset\_import\_data flag …

---

## [DIfference between using .SAV files and using a custom save file with FMemoryWriter/Reader?](https://forums.unrealengine.com/t/difference-between-using-sav-files-and-using-a-custom-save-file-with-fmemorywriter-reader/477345)

<div class="topic-metadata">

**Author:** [@indivelope](https://forums.unrealengine.com/u/indivelope)\
**Replies:** 4\
**Last updated:** [January 17, 2021, 2:16pm UTC](https://forums.unrealengine.com/t/difference-between-using-sav-files-and-using-a-custom-save-file-with-fmemorywriter-reader/477345 "2021-01-17T14:16:23Z")

</div>

Hi! I’ve been looking at this : Legacy/Save System, Read & Write Any Data to Compressed Binary Files And it says write out literally any game-related data you want But all I see is the usual, Vector, int etc… not ‘gam…

---

## [Unable to assign an Actor Component to a variable in Details panel](https://forums.unrealengine.com/t/unable-to-assign-an-actor-component-to-a-variable-in-details-panel/403610)

<div class="topic-metadata">

**Author:** [@JN](https://forums.unrealengine.com/u/JN)\
**Replies:** 1\
**Last updated:** [January 17, 2021, 1:28am UTC](https://forums.unrealengine.com/t/unable-to-assign-an-actor-component-to-a-variable-in-details-panel/403610 "2021-01-17T01:28:23Z")

</div>

I have a variable of an Actor Component type, set to both Instance Editable and Expose on Spawn. In the Details panel I’m unable to assign to it any custom actor component using the drop-down menu: Drag&Drop doesn’t …

---

## [Does "EditorStaticMeshLibrary.get\_number\_materials()" work?](https://forums.unrealengine.com/t/does-editorstaticmeshlibrary-get_number_materials-work/156327)

<div class="topic-metadata">

**Author:** [@Anjeong](https://forums.unrealengine.com/u/Anjeong)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 5:47am UTC](https://forums.unrealengine.com/t/does-editorstaticmeshlibrary-get_number_materials-work/156327 "2021-01-15T05:47:28Z")

</div>

Hello!!! I am struggling to get number of materials from static mesh with python. I found unreal.EditorStaticMeshLibrary — Unreal Python 4.27 (Experimental) documentation but there is an error : LogPython: Error: Attr…

---

## [maya camera rotation convert to UE4 moviescene sequence camera rotation](https://forums.unrealengine.com/t/maya-camera-rotation-convert-to-ue4-moviescene-sequence-camera-rotation/135780)

<div class="topic-metadata">

**Author:** [@Sengunbanba](https://forums.unrealengine.com/u/Sengunbanba)\
**Replies:** 1\
**Last updated:** [January 14, 2021, 8:36pm UTC](https://forums.unrealengine.com/t/maya-camera-rotation-convert-to-ue4-moviescene-sequence-camera-rotation/135780 "2021-01-14T20:36:47Z")

</div>

https://forums.unrealengine.com/filedata/fetch?type=thumb I am writing the conversion from Maya camera to UE4 camera manually . But I found that camera rotation between Maya and UE was very different. Can anyone tell…

---

## [How do I set a variable to a combo box in UI editor?](https://forums.unrealengine.com/t/how-do-i-set-a-variable-to-a-combo-box-in-ui-editor/156349)

<div class="topic-metadata">

**Author:** [@EGGMANDOOM2828](https://forums.unrealengine.com/u/EGGMANDOOM2828)\
**Replies:** 0\
**Last updated:** [January 14, 2021, 7:29pm UTC](https://forums.unrealengine.com/t/how-do-i-set-a-variable-to-a-combo-box-in-ui-editor/156349 "2021-01-14T19:29:10Z")

</div>

I have a script to change the resolution using a combo box, and would like it to show the chosen resolution when the player opens the settings menu after closing it, instead of a default one. Every time the player chang…

---

## [Best way to save and load checkpoints in my game?](https://forums.unrealengine.com/t/best-way-to-save-and-load-checkpoints-in-my-game/477174)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ecdb79aa](https://forums.unrealengine.com/u/anonymous_user_ecdb79aa)\
**Replies:** 0\
**Last updated:** [January 12, 2021, 11:51pm UTC](https://forums.unrealengine.com/t/best-way-to-save-and-load-checkpoints-in-my-game/477174 "2021-01-12T23:51:30Z")

</div>

I would like to make a checkpoint system and save/load system where there are “n” levels with “n” checkpoints each, and everytime the player gets to one checkpoint, it automatically saves what level and what checkpoint t…

---

## [USTRUCT works in blueprint not in editor](https://forums.unrealengine.com/t/ustruct-works-in-blueprint-not-in-editor/477118)

<div class="topic-metadata">

**Author:** [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Replies:** 1\
**Last updated:** [January 12, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/ustruct-works-in-blueprint-not-in-editor/477118 "2021-01-12T18:25:57Z")

</div>

I’ve been working with this struct a for a while now, but needed to add a new variable to it, but for some reason I can’t access it from the details panel. Here is my code: USTRUCT(BlueprintType) struct FNeuron { GEN…

---

## [USTRUCT constructor argument in Blueprint](https://forums.unrealengine.com/t/ustruct-constructor-argument-in-blueprint/477150)

<div class="topic-metadata">

**Author:** [@GenerationLost](https://forums.unrealengine.com/u/GenerationLost)\
**Replies:** 0\
**Last updated:** [January 12, 2021, 4:22pm UTC](https://forums.unrealengine.com/t/ustruct-constructor-argument-in-blueprint/477150 "2021-01-12T16:22:49Z")

</div>

I’ve found nothing regarding my question, so I ask it here: Is it possible to “Make Struct” within Blueprints and provide arguments to the struct’s constructors if there’s more than the default constructor? The “Make St…

---

## [Batch altering of material graphs](https://forums.unrealengine.com/t/batch-altering-of-material-graphs/156097)

<div class="topic-metadata">

**Author:** [@studiogomito](https://forums.unrealengine.com/u/studiogomito)\
**Replies:** 2\
**Last updated:** [January 12, 2021, 8:31am UTC](https://forums.unrealengine.com/t/batch-altering-of-material-graphs/156097 "2021-01-12T08:31:57Z")

</div>

hi! I often find myself needing to do the same alterations to all the materials coming out of other applications. As a simple and current example, I need to import FBX files from the tiltbrush VR painting app, which can…

---

## [how to find the UE\_PYTHON\_DIR environment variable?](https://forums.unrealengine.com/t/how-to-find-the-ue_python_dir-environment-variable/156170)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_35ed7544](https://forums.unrealengine.com/u/anonymous_user_35ed7544)\
**Replies:** 2\
**Last updated:** [January 12, 2021, 3:31am UTC](https://forums.unrealengine.com/t/how-to-find-the-ue_python_dir-environment-variable/156170 "2021-01-12T03:31:46Z")

</div>

Hi, I am a beginner in using unreal engine(4.25). I am trying to use python in my project but I found that the version of the python plugin is 2.7. The unreal document told me that I can change the version of python by s…

---

## [use for loop to render sequence?](https://forums.unrealengine.com/t/use-for-loop-to-render-sequence/156173)

<div class="topic-metadata">

**Author:** [@WoodenAX](https://forums.unrealengine.com/u/WoodenAX)\
**Replies:** 0\
**Last updated:** [January 11, 2021, 1:55pm UTC](https://forums.unrealengine.com/t/use-for-loop-to-render-sequence/156173 "2021-01-11T13:55:53Z")

</div>

hi I try to render bunch of sequence using for loop in python but it only render the last sequence, is there a way to do it in loop?

---

## [how can i use dynamic uasset without reboot ue4](https://forums.unrealengine.com/t/how-can-i-use-dynamic-uasset-without-reboot-ue4/477071)

<div class="topic-metadata">

**Author:** [@Raul1234](https://forums.unrealengine.com/u/Raul1234)\
**Replies:** 0\
**Last updated:** [January 11, 2021, 7:44am UTC](https://forums.unrealengine.com/t/how-can-i-use-dynamic-uasset-without-reboot-ue4/477071 "2021-01-11T07:44:07Z")

</div>

Hello,I want to sync my asset to my partner. So i write a server to upload my uasset and asset’cache。But when my partner download ussat from cloud.they have to reboot the ue4 or else they can’t see any asset in content …

---

## [Get Python commands from Log File](https://forums.unrealengine.com/t/get-python-commands-from-log-file/155973)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f76c73ff](https://forums.unrealengine.com/u/anonymous_user_f76c73ff)\
**Replies:** 1\
**Last updated:** [January 9, 2021, 6:31pm UTC](https://forums.unrealengine.com/t/get-python-commands-from-log-file/155973 "2021-01-09T18:31:16Z")

</div>

Hello, is it possible to check a sort of log file for python commands after manually doing some stuff in unreal engine? Thank’s

---

## [Render by Python Code](https://forums.unrealengine.com/t/render-by-python-code/155855)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f76c73ff](https://forums.unrealengine.com/u/anonymous_user_f76c73ff)\
**Replies:** 1\
**Last updated:** [January 5, 2021, 10:21am UTC](https://forums.unrealengine.com/t/render-by-python-code/155855 "2021-01-05T10:21:38Z")

</div>

Hello, I’m trying to render a sequence using the sequencer\_examples.py . import sequencer\_examples sequencer\_examples.render\_sequence\_to\_movie(sequencer\_asset\_path) with sequencer\_asset\_path = r"...Unreal Proje…

---

## [Referencing objects in streaming level from persistent](https://forums.unrealengine.com/t/referencing-objects-in-streaming-level-from-persistent/379271)

<div class="topic-metadata">

**Author:** [@moushkka](https://forums.unrealengine.com/u/moushkka)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 6:13pm UTC](https://forums.unrealengine.com/t/referencing-objects-in-streaming-level-from-persistent/379271 "2021-01-04T18:13:01Z")

</div>

What is the recommended way to reference objects in other streaming levels? Tags seems to require me to iterate through all actors in the world. StaticFindObject seems to require the object ID name to stay the same. T…

---

## [I can't reach Layers Subsystem from blueprint. My aim is to use "Add All Layers To" method.](https://forums.unrealengine.com/t/i-cant-reach-layers-subsystem-from-blueprint-my-aim-is-to-use-add-all-layers-to-method/476679)

<div class="topic-metadata">

**Author:** [@Tayami](https://forums.unrealengine.com/u/Tayami)\
**Replies:** 0\
**Last updated:** [January 2, 2021, 4:13pm UTC](https://forums.unrealengine.com/t/i-cant-reach-layers-subsystem-from-blueprint-my-aim-is-to-use-add-all-layers-to-method/476679 "2021-01-02T16:13:54Z")

</div>

What should I do to get a reference from Layers Subsystem or is there any other way to get names of all layers?

---

## [runner game forward movement Add Forward Movement](https://forums.unrealengine.com/t/runner-game-forward-movement-add-forward-movement/155718)

<div class="topic-metadata">

**Author:** [@Hannibal\_Chang](https://forums.unrealengine.com/u/Hannibal_Chang)\
**Replies:** 0\
**Last updated:** [December 31, 2020, 5:08am UTC](https://forums.unrealengine.com/t/runner-game-forward-movement-add-forward-movement/155718 "2020-12-31T05:08:43Z")

</div>

I tried different things for the input on forward direction, and got strange results. This is the default thirdPerson Character BP. Need to press W to move forward. Replacing the InputAxis MoveForward with a Tick g…

---

## [Save game always has default values](https://forums.unrealengine.com/t/save-game-always-has-default-values/476543)

<div class="topic-metadata">

**Author:** [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Replies:** 0\
**Last updated:** [December 30, 2020, 10:20pm UTC](https://forums.unrealengine.com/t/save-game-always-has-default-values/476543 "2020-12-30T22:20:03Z")

</div>

I’m trying to make a simple saving and loading system and have been following the Docs for help. I have the following code: // Declaration in the .h file UCustomSave\* saveGame; .cpp file // Loads the topology from a …

---

## [Trying to limit spring arm rotation](https://forums.unrealengine.com/t/trying-to-limit-spring-arm-rotation/224125)

<div class="topic-metadata">

**Author:** [@RikoSuave0007](https://forums.unrealengine.com/u/RikoSuave0007)\
**Replies:** 0\
**Last updated:** [December 29, 2020, 2:40pm UTC](https://forums.unrealengine.com/t/trying-to-limit-spring-arm-rotation/224125 "2020-12-29T14:40:35Z")

</div>

I can’t seem to get this to work. I can still over rotate camera (spring arm pitch). Every thing seems to be in order. Any ideas?

---

## [How to get access to the free learning materials about Python? Pl](https://forums.unrealengine.com/t/how-to-get-access-to-the-free-learning-materials-about-python-pl/476507)

<div class="topic-metadata">

**Author:** [@michaelfoyy](https://forums.unrealengine.com/u/michaelfoyy)\
**Replies:** 0\
**Last updated:** [December 28, 2020, 7:42pm UTC](https://forums.unrealengine.com/t/how-to-get-access-to-the-free-learning-materials-about-python-pl/476507 "2020-12-28T19:42:06Z")

</div>

I would like to pass some course on Python. Please share.

---

## [Destroying Class instances? (Destroy SaveGame Obj Ref)](https://forums.unrealengine.com/t/destroying-class-instances-destroy-savegame-obj-ref/476315)

<div class="topic-metadata">

**Author:** [@FindingDway](https://forums.unrealengine.com/u/FindingDway)\
**Replies:** 1\
**Last updated:** [December 27, 2020, 7:06pm UTC](https://forums.unrealengine.com/t/destroying-class-instances-destroy-savegame-obj-ref/476315 "2020-12-27T19:06:22Z")

</div>

As a coder I understand that when you initialize a class instance, give it a name which is basically a pointer to the instanced data in the memory, and then access it through said reference to interact with it. Once the …

---

## [\[Groom\] how to assign hair group preview in groom import options to prevent crash ?](https://forums.unrealengine.com/t/groom-how-to-assign-hair-group-preview-in-groom-import-options-to-prevent-crash/155502)

<div class="topic-metadata">

**Author:** [@Anas\_Rin](https://forums.unrealengine.com/u/Anas_Rin)\
**Replies:** 1\
**Last updated:** [December 24, 2020, 8:46am UTC](https://forums.unrealengine.com/t/groom-how-to-assign-hair-group-preview-in-groom-import-options-to-prevent-crash/155502 "2020-12-24T08:46:15Z")

</div>

I want to assign groom group preview but can not see any preview groups property on groom import options but instead just interpolation settings, it causing crash. Assertion failed: OutHairAsset-\>AreGroupsValid() \[File…

---

## [Changes made by python commandlet doesn't get saved to disk](https://forums.unrealengine.com/t/changes-made-by-python-commandlet-doesnt-get-saved-to-disk/155324)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_abd6575a](https://forums.unrealengine.com/u/anonymous_user_abd6575a)\
**Replies:** 0\
**Last updated:** [December 19, 2020, 4:01pm UTC](https://forums.unrealengine.com/t/changes-made-by-python-commandlet-doesnt-get-saved-to-disk/155324 "2020-12-19T16:01:55Z")

</div>

I am trying to use python to change the position keys of the camera inside sequencer and render movie with it. I was able to get and set the value of Camera’s keys with the in-editor python. But then when I tried to ru…

---

## [Python - Access and alter contents (Graphs, Nodes) of Blueprints](https://forums.unrealengine.com/t/python-access-and-alter-contents-graphs-nodes-of-blueprints/155260)

<div class="topic-metadata">

**Author:** [@TadParty](https://forums.unrealengine.com/u/TadParty)\
**Replies:** 1\
**Last updated:** [December 18, 2020, 7:21pm UTC](https://forums.unrealengine.com/t/python-access-and-alter-contents-graphs-nodes-of-blueprints/155260 "2020-12-18T19:21:17Z")

</div>

I’ve been doing a lot of research, but apparently can’t find anything that answers my question. Is it generally possible to access all or some of the properties of graphs, nodes and such inside a blueprint? (Basically I…

---

## [How to get level's Event/Function names in C++/Blueprint?](https://forums.unrealengine.com/t/how-to-get-levels-event-function-names-in-c-blueprint/155082)

<div class="topic-metadata">

**Author:** [@theGreatDW](https://forums.unrealengine.com/u/theGreatDW)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 10:06am UTC](https://forums.unrealengine.com/t/how-to-get-levels-event-function-names-in-c-blueprint/155082 "2020-12-15T10:06:06Z")

</div>

I just started my little project and I’m digging in the Editor utility widget right now. I’m stuck in the Level blueprint right now. And I need to get all my Level Blueprint Function Names(Include the sub level), so th…

---

## [How to import Camera fbx into sequence and make it spawnable?](https://forums.unrealengine.com/t/how-to-import-camera-fbx-into-sequence-and-make-it-spawnable/145117)

<div class="topic-metadata">

**Author:** [@WoodenAX](https://forums.unrealengine.com/u/WoodenAX)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-import-camera-fbx-into-sequence-and-make-it-spawnable/145117 "2020-12-14T20:50:47Z")

</div>

Hi guys, I am trying to make a script that can automatically import camera fbx file into sequence and the problem is: when I try to make it spawnable(using add\_spawnable\_from\_class()), what the function returned is the …

---

## [What is the 'Property Reference" Variable type](https://forums.unrealengine.com/t/what-is-the-property-reference-variable-type/469491)

<div class="topic-metadata">

**Author:** [@Jerome\_Boulbes](https://forums.unrealengine.com/u/Jerome_Boulbes)\
**Replies:** 2\
**Last updated:** [December 13, 2020, 9:00pm UTC](https://forums.unrealengine.com/t/what-is-the-property-reference-variable-type/469491 "2020-12-13T21:00:02Z")

</div>

Hello everybody When creating a Blueprint variable, in the variable types, there is “Property Reference” type. Does anyone understand what this is for, and how it works ? After creating a variable of this type, you ca…

---

## [Reference that already set is only valid on last spawned actor, others will return null???](https://forums.unrealengine.com/t/reference-that-already-set-is-only-valid-on-last-spawned-actor-others-will-return-null/475830)

<div class="topic-metadata">

**Author:** [@ryanwang0521](https://forums.unrealengine.com/u/ryanwang0521)\
**Replies:** 5\
**Last updated:** [December 13, 2020, 3:59pm UTC](https://forums.unrealengine.com/t/reference-that-already-set-is-only-valid-on-last-spawned-actor-others-will-return-null/475830 "2020-12-13T15:59:43Z")

</div>

Actor: It’s spawning from other actor class, This is how it spawned. This actor is dynamic spawned. But I don’t understand why this reference only valid in last spawned actor? All function work fine in last spa…

---

## [GAS Transfer information inside Ability?](https://forums.unrealengine.com/t/gas-transfer-information-inside-ability/475807)

<div class="topic-metadata">

**Author:** [@Lucy80](https://forums.unrealengine.com/u/Lucy80)\
**Replies:** 0\
**Last updated:** [December 12, 2020, 3:36pm UTC](https://forums.unrealengine.com/t/gas-transfer-information-inside-ability/475807 "2020-12-12T15:36:22Z")

</div>

We have a MMO Game with an inventory. The inventory has for example 20 Slots. On postion 1 and 5 are the same potion for health. If we you use the potion on postion 5, we want to decrease the numer of potions for the slo…

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

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