I see, already done, noticed the bug earlier.trueBlue wrote: ↑24 Jun 2020, 16:19 ...
Like this:So the Status messages does not run in tS761Code: 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."; }
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
The workspace layers does already have a copy of show and hide inside it. The problem is outside the workspace layers scripts the layer number gets messed up, that's why the need to replace the Show script in Commands for standalone.