ScriptSpot home

selected by wirecolor

3ds Max compatibility
See original listing claims
Report a problem
Community reviewsNo reviews yet.

Listing details

From original requirements
2009
Original version requirement
Max2009
Legacy votes
12
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

k.asa

Credited author: asa

Description

Hi all,

I was wondering if there is already a script or you have a simple solution for the following:

I want to select some objects (A) by other object(B) that has the same color as the objects (A).
(Max file have any wirecolr objects in sceen.)

Sorry I'm not good at English.

best regards.

Comments (7)
Gabriel

only for visible obj?

Hey there. Thanks for the code. Unfortunetly it also selects obj that are hidden by layer. I tried to write a function "where not a.ishidden" but it doesn work. Anyone able to help.

Would need the part where it sees what is visible/or not hidden and then selects by wirecolor
i = $.wirecolor
select (for o in objects where o.wirecolor == i collect o)

slimatron

even simpler:

max select by color

fajar

rollout Selec "Select"
(
button one "Select by Color"
on one pressed do
if selection.count== 1 then
(
i = $.wirecolor
select (for o in objects where o.wirecolor == i collect o)
)
else
(
messageBox "Select only one objct please" Title: "Selection Error..."
)
)
createDialog selec

inspired by MartinSkinner
I just make a dialog

VegeBird

hi... use the tool at the toolbars --
Edit > select by > Color

or you can assign shortcuts the "select by color " tools.

Dave Buchhofer

You can also select by wirecolor in the same dialog where you SET the wirecolor for an object manually, there is a small button with 4 little blocks on it that will select all of the same color object you have currently selected.

 

its a bit hidden.

 

horrible explanation, oh well!

martinskinner

hi, should be easy enough. run the following lines seperately in the Maxscript listener.

with first object selected run:-

i = $.wirecolor

then run:-

select (for o in objects where o.wirecolor == i collect o)

this will select all objects with wirecolor of the original selected object.

thank you for your kindness.
i successfully did it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

yes!yes!yes!yes!yes!yes!yes!yes!yes!yes!yes!yes!yes!yes!yes!

best regards k.asa