RE_HIDE_HIDDEN

Next
 From:  neilwilson3412
11855.1 
hi Michael,


is there a script that can act as the eye button on the hidden layer ?

just want to quickly re hide all the stuff i dump in hidden layer .....wish this layer would not show up when un hide command runs and to un hide HIDDEN LAYER user has to click a button instead. its hidden for a reason right lol.

cheers neil
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11855.2 In reply to 11855.1 
Hi neil,

re:
> is there a script that can act as the eye button on the hidden layer ?

I'm not sure what you mean by "the hidden layer" - do you mean a style that is named "Hidden"?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  neilwilson3412
11855.3 In reply to 11855.2 
yes the style called hidden
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  neilwilson3412
11855.5 In reply to 11855.4 
thank you i wanted that one. legend
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All