Skip to content

Commit b166170

Browse files
author
rdeioris
authored
Create mass_renamer.py
1 parent 08974d2 commit b166170

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/mass_renamer.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import unreal_engine as ue
2+
from unreal_engine.classes import ParticleSystem
3+
4+
for i in range(0, 10):
5+
# create a particle system
6+
particle_system = ParticleSystem()
7+
# give it a name
8+
particle_system.set_name('ParticleSystem{0}'.format(i))
9+
# save it into a package
10+
particle_system.save_package('/Game/FunnyParticles/ParticlePackage{0}'.format(i))
11+
12+
13+
# now ready for mass renaming !!!
14+
15+
# each particle system will ends in a different folder (bur all of the particle system will have the same name)
16+
17+
for i in range(0, 10):
18+
ue.rename_asset('/Game/FunnyParticles/ParticlePackage{0}.ParticleSystem{0}'.format(i), '/Game/MovedParticles/{0}'.format(i), 'RenamedParticle')

0 commit comments

Comments
 (0)