hi there,
I’m trying to generate replicated items with replicator script,
I need every new item to have a 3 digits incremental number after the name,
can I use something like
'name_' + '%f.3'
in python?
thanks!
hi there,
I’m trying to generate replicated items with replicator script,
I need every new item to have a 3 digits incremental number after the name,
can I use something like
'name_' + '%f.3'
in python?
thanks!
The replicator callbacks have several arguments you can loop through to do simple things like this - such as newOps or allOps. A simple example is below demonstrating what you are looking for…
digits = 0
for c in newOps:
c.name = 'name_{}'.format(digits)
digits += 3