For e.g I’d write a script to select all objects of a certain type or string and iterate over the collection to apply a script to all objects within that collection.
Makes sense ?
Thanks for any help.
For e.g I’d write a script to select all objects of a certain type or string and iterate over the collection to apply a script to all objects within that collection.
Makes sense ?
Thanks for any help.
what are you trying to do?
it almost sounds like your just trying to get a reference to many actors then do something to each one, like a aoe attack for example. to do this you just need to add them all to an array which there are many ways to do such as the get all actors of class or get overlapping actors. then you just need a for each loop and the script for what you want to do. so for a AOE attack you would get overlapping actors → for each loop → apply damage. pretty simple.
if however your looking to add a script to the event graph for each actor thats another story entirely. in this case you should look into interfaces, though this process is not automated.
Hello @ThompsonN13,
I have CAD model of an industrial part. The whole model has many other small parts.
When I attach a script to this model I don’t want select 100’s of its other parts and apply the same script to them manually. I was hoping for a way to do this programmatically ?
Thanks,
Hello boomji,
If you’re using a CAD model, you may have better results importing using DataSmith from Unreal Studio, which is currently in beta, and is free until September 2019. However, any version of Unreal Studio you download during the beta period will continue to be free to use even after the beta ends.
I’m going to provide a link here: link text
Could you also provide a screenshot of the model’s mesh? Or how it appears within your content folder in editor?
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.
Thanks!
Hello ,
Thanks for the heads up,Yes we are using Data smith. Its just that we were looking at ways to speed up the loading time when using the editor.
You can mark this post as resolved.
Thanks,