I’m trying to create a blueprint I can run in the editor to replace static mesh actors (imported via datasmith) that contain a specific key and value with a corresponding blueprint asset.
Other things to consider:
This BP will have a lot of values and different assets spawned so making it clean and legible will be important (use macros?).
The static mesh actor instance locations will be regularly updated (spawn new assets and don’t destroy static mesh actors?)
I’ve attached one of my many BP attempts. It seems simple but am having a lot of difficulty as a newbie. It worked with dataprep (see graphics below) but dataprep is having some issues and wouldn’t allow my next step which would be to drop them on a surface below in the editor with a line trace.
@3dRaven thanks for your quick feedback! I think I needed to give a little more background. I’m wanting to input the different values and spawned assets in the blueprint and not in the widget each time so I can apply the same list of substitutions for numerous projects with a click of a button. I made an attempt to translate your BP to use in a utility editor BP with asset action utility as the parent which didn’t have all of the same nodes available. I got a little lost with the variables so I’m sure I did some things wrong.
The purpose of this BP is to replace imported plant locations with blueprint vegetation assets. Each imported plant species has a unique value for the “key” definition that can be isolated or the overall instanced geometry name can be used. My test example below has 12 species but this blueprint will contain well over a hundred key values for potential plant species used. Instead of clicking on the Datasmith scene one could easily select all the geometries for the species, right click, and go to the scripted action. (Those different colored upside down triangles in the graphic below are the instanced species geometry)