Search found 2822 matches

by trueBlue
05 Oct 2020, 16:02
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

One other suggestion
RemoteCommand
Add check for the Selection locked widget
if(!Node.Exists("Widgets/Edit/Default context/Select/Selection locked widget"))
System.Alert("Widget based locking is Disabled")
//Replace Alert with code here
Activity.Run(System.ThisOwner() + "/ActivateWidgetLocking")
{
by trueBlue
05 Oct 2020, 15:06
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

There is two reasons why this should be supported with your new plugin and UnSelectable scripts. 1.) Flattening objects removes your selectionLocking node 2.) Backwards compatibility... In the current Unofficial Update(s), your Workspace Layers 3's menuprocessor script has the following: //copy sele...
by trueBlue
05 Oct 2020, 03:38
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

Flattening an object that has an UnSelectable string does not remove the connector Your plugin does not support it currently. If your plugin supported the UnSelectable string, as in, if it exist, it would be locked. Several earlier UnSeletable projects did in fact use the UnSelectable string I belie...
by trueBlue
05 Oct 2020, 02:17
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

There is another possibility
Do not export the UnSelectable boolean attribute
Create the UnSelectable attribute as a string
Untested, but you could even create it as hidden
by trueBlue
04 Oct 2020, 17:37
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

Good point. Attached is the node I plan to use. That works too. I am going to add Space.Unselect() to the Down script Right, I was going to ask you about that, but forgot. I'll do the same. Correction I am going to add Space.Unselect() to the Up script I would also suggest creating an Enable/Disabl...
by trueBlue
04 Oct 2020, 17:20
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

Untested check for and remove old version: Added to the Lockit and the RMB scripts. //check for old version and remove it if(Node.Exists(Space.CurrentScene() + "/unSelectable") && !Node.ConExists(Space.CurrentScene() + "/unSelectable", "Source")) { Node.Delete(Space.CurrentScene() + "/unSelectable"...
by trueBlue
04 Oct 2020, 17:18
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

clintonman wrote:
04 Oct 2020, 16:58
trueBlue wrote:
04 Oct 2020, 16:40
...

For backwards compatibility, it might be necessary to delete the unSelectable node in the scene, in order to replace it in an existing scene
Good point.
Attached is the node I plan to use.
That works too.
I am going to add Space.Unselect() to the Down script
by trueBlue
04 Oct 2020, 16:40
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

But the checkbox doesn't honor the code in the button, so button replaces it. Edit: Maybe your button isn't connected to the UnSelectable value? Mine is linked to it. Correct, it is not linked to the UnSelectable attribute and is assigned to a new boolean, UnLock_Lock. I changed the text to Up = Un...
by trueBlue
04 Oct 2020, 16:15
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

Remove the checkbox?
I think your plugin honors the checkbox, checked or unchecked.

The default state of the selectionLocking node in your UnSelectable scripts is Unlocked
by trueBlue
04 Oct 2020, 14:53
Forum: Repositorium
Topic: Unselectable script
Replies: 75
Views: 2778

Re: Unselectable script

Thank you for the explanation. There is a solution to support your new way and Locked objects that have been Flattened. Add a On/Off button with an assigned boolean to the selectionLocking node. selectionLocking button.png Script on Up - Deactivate Node.ConRemove("%THIS_OWNER_NAME%", "UnSelectable")...