ScriptSpot

Forum topic · Scripts Wanted

Select Similar

By pedroamorim · 2014-02-08

Description

Hi guys,

Trying to make a macro that selects similar objects when im in subobject 0.

And when im in a subobject other than 0, it will select the apropriate similar elements.

i have this


macroScript PedroSelectSimilar
category:"Pedro Scripts"
toolTip:"Selects similar objects or subobjects"

(
    try
    (
		if (subobjectlevel = 0) then
        (
            actionMan.executeAction 0 "40099"
        )

        if (subobjectlevel >= 1) then
        (
            PolyBoost.SimilarSelect()
        )

        if ( $ != undefined) then
        (
			-- does nothing
        )

    )
	catch()
)

Any help is appreciated!

Cheers!

Comments (2)

pedroamorim · 2014-02-09

Awesome! Thanks! It worked!

barigazy · 2014-02-08

Take a look this tool by Anubis
And for your tool you can try

macroScript PedroSelectSimilar
category:"Pedro Scripts"
toolTip:"Selects similar objects or subobjects"
(
if selection.count != 0 do
(
if subobjectlevel < 1 then (actionMan.executeAction 0 "40099")
else (PolyBoost.SimilarSelect())
)
)