FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/mass_renamer.py at master · CryptocurrencyDevelopers/UnrealEnginePython · GitHub
CryptocurrencyDevelopers
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
mass_renamer.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (13 loc) · 666 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
mass_renamer.py
Copy path
File metadata and controls
18 lines (13 loc) · 666 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
unreal_engine
as
ue
from
unreal_engine
.
classes
import
ParticleSystem
for
i
in
range
(
0
,
10
):
# create a particle system
particle_system
=
ParticleSystem
()
# give it a name
particle_system
.
set_name
(
'ParticleSystem{0}'
.
format
(
i
))
# save it into a package
particle_system
.
save_package
(
'/Game/FunnyParticles/ParticlePackage{0}'
.
format
(
i
))
# now ready for mass renaming !!!
# each particle system will ends in a different folder (bur all of the particle system will have the same name)
for
i
in
range
(
0
,
10
):
ue
.
rename_asset
(
'/Game/FunnyParticles/ParticlePackage{0}.ParticleSystem{0}'
.
format
(
i
),
'/Game/MovedParticles/{0}'
.
format
(
i
),
'RenamedParticle'
)
Back
|
FazBrowse Home
|
New Git URL