RE_HIDE_HIDDEN

 From:  Michael Gibson
11855.4 In reply to 11855.3 
Hi neil, paste this in as the "command" part of a shortcut key. Then when you press that key all objects assigned to a style named "Hidden" will be hidden.

code:
script: var objects = moi.geometryDatabase.getObjects();
var style = moi.geometryDatabase.findStyle( 'Hidden' );
if ( style )
{
	for ( var i = 0; i < objects.length; ++i )
	{
		var obj = objects.item(i);
		if ( obj.styleIndex == style.index )
		{
			obj.hidden = true;
		}

		var subobjs = obj.getSubObjects();
		for ( var j = 0; j < subobjs.length; ++j )
		{
			var subobj = subobjs.item(j);
			if ( subobj.styleIndex == style.index )
			{
				subobj.hidden = true;
			}
		}
	}
}


- Michael