MoI discussion forum
MoI discussion forum

Full Version: Select objects

Show messages: All  1-3  4-6

From: pixelhouse
20 Jan 2020   [#4] In reply to [#2]
Hi Pilou,

thank you for your response :)
I have copied the script and add a short cut, but only curves will be selected.
There are some lines in the code with "curves" :) I need to select objects, no curves. I'm not confirm with scripting.

This script from Petr's MOI page seems to do this :)

script: /* Select objects smaller than the given size */ var size = 1.0; var objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); var bbox = obj.getBoundingBox(); if ( bbox.diagonalLength < size ) obj.selected = true; }

Thanks a lot :)
From: pixelhouse
20 Jan 2020   [#5] In reply to [#3]
Thank you Michael,

this script works fine :)
From: Frenchy Pilou (PILOU)
21 Jan 2020   [#6] In reply to [#4]
Seems you right...

Show messages: All  1-3  4-6