Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4140

Selected objects into list

$
0
0

Hi all,

Lately I’ve been learning to script a bit in python and I’ve been trying to create a script that loops through the selected objects (polysurfaces) and puts a minimum boundingbox around each and then selecting all of those at once it’s done.

So far I’ve found a script that creates a minimum bounding box around an object and that works great, but I’m having troubles trying to adapt it to multiple objects.

This is where I’m at right now.

MinBoundingboxAll.py (509 Bytes)

I’m guessing trying to put objects into a list isn’t going to work? Is there any other way to remember the objects in order to loop through them or am I approaching this the wrong way?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4140

Trending Articles