We used PNG sequences a lot in our workflow for production, so I’m trying to make a tool to automate the creation of the ImgMediaSource asset, name it accordingly and set it’s path to where the PNG sequence is inside the Movies folder in the Content folder.
I’m executing a python script file and I’m using the editor utility widget, the only part so far that I’m not able to get working is setting the sequence path using sequence_path.
The path I need to appear is “Content/Movies/” + whatever the asset is named, however if I use:
sequence_path = "/Content/Movies/" + dir_name + "/"
new_media_source.set_sequence_path(sequence_path)
and then I check the asset in Unreal, the path has the engine full system path prepended to it and it ends up being:
C:/Program Files/Epic Games/UE_5.3/Engine/Binaries/Win64/Content/Movies/Frame_22_Mom_UK
and if I use:
sequence_path = "./Content/Movies/" + dir_name + "/"
new_media_source.set_sequence_path(sequence_path)
I get the path in the asset as ./Content/Movies/Frame_22_Mom_UK, which then I have to click inside the sequence path textbox, click outside and that removes the “./” and then save the asset, but it’s adding extra steps that I should be able to automate.
Is this a bug? I am doing something wrong?? I’ve tried already for several days and asked chatgpt for any help but I haven’t been able to resolve this.
Any help is appreciated and I’ll try any solution thank you!!