Workspace Layers version 3

free scripts, plugins, models, textures
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Workspace Layers version 3

Post by Draise »

You're my hero. Thanks. I will use it immediately.
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Workspace Layers version 3

Post by Draise »

Sorry Clinton, but I've bumped into a number of errors similar to this one with some scenes. One save it's working fine, then the next time I open the scene, there is this error upon trying to use the layers.

Image

I was thinking to upload the scene file, but apparently it's above 60 MB.
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Layers version 3

Post by clintonman »

Draise wrote:Sorry Clinton, but I've bumped into a number of errors similar to this one with some scenes. One save it's working fine, then the next time I open the scene, there is this error upon trying to use the layers.

I was thinking to upload the scene file, but apparently it's above 60 MB.
This must be the weekend where everyone finds bugs in my scripts. :oops:
I made a fix and it's up for download.
Clinton Reese

http://clintons3d.com
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Workspace Layers version 3

Post by Draise »

I still use your layers like mad! But I am finding a small inconsistency with Encapusalted objects. The layer will only register one object child within the encapsulated family. The other children within the parent have to be selected and "add to layer" for it to register in the layer system.

This is also true of 3D encapsulated objects.

I'm using the version from April, 2014

Sorry for pushing you to make this that much better!
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Layers version 3

Post by clintonman »

Update: Feb 2015

Works with grouped items
Replacement for Show selected object script that preserves the layer number when a hidden object is shown
Ignores the incompatible hair render attributes node
Clinton Reese

http://clintons3d.com
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Workspace Layers version 3

Post by Draise »

Beautiful. I'll update now. Thanks Clinton.
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Layers version 3

Post by clintonman »

Updates March 2020:

fixed bug with 2d encapsulated objects

forgotten update from nov 2017:

visibility and locking status shown
uses webui script based selection locking
removed "enableLocking" option - lives in webui scripts
replaced 3 mutually exlusive states visible, hidden and locked with just visible and locked so object can be both invisible and locked
fix camera and spotlight visibility
cameras and lights move to layer 1 when removed from other layers
count of objects no(t?) in a layer fixed
selection locking works with the marque selection scripts
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Layers version 3

Post by trueBlue »

Think there may be a couple of issues with your Workspace Layers

1.) Replacing the modified Show script inside tS will not survive a Context Reset, unless you also install the Show.xml in the tS directory.
Move the Model status inside the Copy Show statement
Is this for the Standalone version only?

2.) The Show script needs to be updated. Hopefully to the one that does not disconnect the Object hider.
I propose to include this updated Show script in the Updates.
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace Layers version 3

Post by clintonman »

trueBlue wrote: 24 Jun 2020, 12:50 Think there may be a couple of issues with your Workspace Layers

1.) Replacing the modified Show script inside tS will not survive a Context Reset, unless you also install the Show.xml in the tS directory.
Move the Model status inside the Copy Show statement
Is this for the Standalone version only?

2.) The Show script needs to be updated. Hopefully to the one that does not disconnect the Object hider.
I propose to include this updated Show script in the Updates.
1. Doesn't matter if it survives context reset or not since it takes care of itself.
"Move the Model status inside the Copy Show statement" - I don't know what that means.
From website, "This version does not connect to modelside and is limited to 24 layers total." It is workspace only as far as layers are concerned, meaning layer information does not pass through the bridge.

2. Yep, it will need to be updated to work with your new Show/Hide system and maybe it would be a good idea to include the updated Show but then it has the disadvantage of having 2 different versions of the show script, one for std and one for full version. The changes to the show are not for the full version of trueSpace.

The functions in the Visibility Function Set also need to be changed to be compatible with the new changes.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5214
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Layers version 3

Post by trueBlue »

clintonman wrote: 24 Jun 2020, 15:15
trueBlue wrote: 24 Jun 2020, 12:50 Think there may be a couple of issues with your Workspace Layers

1.) Replacing the modified Show script inside tS will not survive a Context Reset, unless you also install the Show.xml in the tS directory.
Move the Model status inside the Copy Show statement
Is this for the Standalone version only?

2.) The Show script needs to be updated. Hopefully to the one that does not disconnect the Object hider.
I propose to include this updated Show script in the Updates.
1. Doesn't matter if it survives context reset or not since it takes care of itself.
"Move the Model status inside the Copy Show statement" - I don't know what that means.
From website, "This version does not connect to modelside and is limited to 24 layers total." It is workspace only as far as layers are concerned, meaning layer information does not pass through the bridge.

2. Yep, it will need to be updated to work with your new Show/Hide system and maybe it would be a good idea to include the updated Show but then it has the disadvantage of having 2 different versions of the show script, one for std and one for full version. The changes to the show are not for the full version of trueSpace.

The functions in the Visibility Function Set also need to be changed to be compatible with the new changes.
Like this:

Code: Select all

	//fix show command for standalone version so layer numbers are preserved
	if(Node.Exists("/Scripts/Commands/Show") && !Node.Exists("/Project/TSScene")) {
		Node.Delete("/Scripts/Commands/Show");
		Node.Copy(owner + "/Show","/Scripts/Commands");
	if(!Node.Exists("Status Line"))
		return;
	if(!Node.ConExists("Status Line", "Model"))
		Node.ConCreate("Status Line", "Model", "string", 4);
	Node.Value("Status Line", "Model") = "Show script overwritten for proper layer number handling.";
	}
So the Status messages does not run in tS761


Wonder if you could include the Hide and Show scripts inside the workspacelayers3.RsObj and just run from within?
I could be wrong but it looks like the having the layerIndex in the Show/Hide scripts, would not cause any issues
Post Reply