Tell this to an agent:
Task: sort the props in my UEFN level into Content Browser collections
Use Python inside UEFN. Don't change anything in the level.
List all placed actors. Skip devices, spawners and water.
Find the item each prop comes from: the asset registry referencers of its class with PPID in the name. If there are several, take the one whose TextureData dependencies match the actor's texture_data. For plain mesh actors, use the static mesh.
Group the items by theme (words in the prop names) and by area (positions). Show me the groups and wait for my OK.
Create them with unreal.CollectionManagerSubsystem: create_collection, add_assets_to_collection, reparent_collection. Use the collection container that isn't named Game.
Read back the item counts and tell me which props had no match.
Rules:
No spaces in collection names.
Asset paths need the form /Path/Asset.Asset.
Start with LOCAL collections. Use SHARED only if I ask. Those take about 9 seconds each, and their contents must be checked in afterwards.
Never empty or delete my existing collections.
Grey icons or a slow UEFN: tell me to turn off the AI toggle next to the Content Browser search bar.
来源:Wertandrew 🛸 · x.com