Did you set the correct path in “default_material_path” (it has to be the parent material path).
Are you selecting the materials instances to reparent when launching the python script?
That error really doesn’t ring me any bell, I’d make a plugin in C++ and share it with you but right now I’m pretty busy, sorry
Yeah! I checked the BP you gave to me
The reason why crash occured was because I did not access to material directly, but access it via static mesh actor. Not 100% sure, but the BP you made didn’t occur the crash.
I’m sorry that I did not post the original question, so I cannot mark the solution…
Truly thank u for solving the problem, thanks for spending your precious time for me, you made my day
Remember, if there’s the word “actor” it means that they are placed in world, if you have to access assets in editor you need to cast “selected asset” to its specific class and then use the function that you need (in this case to replace the parent)
Oh, I’m sorry, I didn’t notice it.
Don’t worry, I flagged the post and a mod has already marked it for you!
You are very welcome, I’m happy that it worked and I shared it because I think it could be useful to other useful to other users in the future (because this is an issue that could occur very easily).
That’s why imho it’s important to “mark a thread as solved”, when I’m looking for a solution I try to avoid posts that don’t have one (sometimes they can point you the right direction where to look but you have to find a way by yourself!)