Search found 4 matches

by sussea
Tue Jul 16, 2013 7:15 pm
Forum: Python
Topic: "for obj in bpy.data.objects" changes order?
Replies: 5
Views: 2323

I just took the max number of digits any of them would have and added a power of ten higher than that to everything. It's basically the same as trailing zeros, but with a 1 at the front and it's a little easier to write if you know the math. I don't know which is more efficient, but I'm happy enough...
by sussea
Mon Jul 15, 2013 4:39 pm
Forum: Python
Topic: "for obj in bpy.data.objects" changes order?
Replies: 5
Views: 2323

The issue has been solved. It was an automatic sort-by-name issue. I was making the planes as 1,2,3,4... but bpy.data.objects was storing them as 1,10,11,... Changing to .copy() made the program much smaller and a little faster, too! My old solution was to run all my primitive_add() functions one ti...
by sussea
Tue Jul 02, 2013 4:22 pm
Forum: Python
Topic: "for obj in bpy.data.objects" changes order?
Replies: 5
Views: 2323

No name changes happened, but that's very helpful advice! Thanks, CoDEmanX.
by sussea
Mon Jul 01, 2013 6:14 pm
Forum: Python
Topic: "for obj in bpy.data.objects" changes order?
Replies: 5
Views: 2323

"for obj in bpy.data.objects" changes order?

Sorry in advance if this is the wrong place for this. I'm making a script that visualizes a bunch of particles (~10,000) moving around according to inputted data. The particles are represented by planes. I noticed it takes a long time to plane_primitive_add() 10,000 particles, so I decided to make t...