Page 1 of 1

INVISIBLE LAYERS in one COLOR GROUP

Posted: 06 Apr 2021, 09:59
by Animationriver
Hello.
I have a humble proposal.
If there is a possibility in the new version of the program. Lay in the layers menu. Select item: ALL INVISIBLE LAYERS IN ONE COLOR GROUP. And, perhaps. ALL INVISIBLE LAYERS IN THE WHOLE PROJECT IN ONE COLOR GROUP.
Because when I make a project easier, I often look for such an opportunity, I would be very happy. Thanks. :D

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 24 May 2021, 11:13
by Xavier
Hi, could you please explain what these menus entries should do exactly ? I'm not sure to fully understand what you mean.

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 09 Jun 2021, 15:32
by Animationriver
Hello. Thank you for responding. I want to clean all the invisible layers from the project. Often they are never needed again. And when I save the storyboard project. A lot of information in the INVISIBLE (DISABLED) layers creates a heavy file. And loads the work. The file can be 40MB in size. But it weighs 100 mb. If I can combine all the invisible layers with one group color, I will be very happy. If I delete all the invisible layers with one button I will be very happy. Thank you.
Look in video. Thank you.

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 09 Jun 2021, 16:23
by Peter Wassink
i think it could be achieved by adding two new layer selection options.
We now have:
-select All
-select Group
-select Layer


If we Add:
-select Active (layers)
-invert (layer) Selection


you can select all the active/inactive layers and the assign them a group or delete them...

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 11 Jun 2021, 14:51
by Animationriver
Peter Wassink wrote: 09 Jun 2021, 16:23 i think it could be achieved by adding two new layer selection options.
We now have:
-select All
-select Group
-select Layer


If we Add:
-select Active (layers)
-invert (layer) Selection


you can select all the active/inactive layers and the assign them a group or delete them...
 Hello. Maybe. But you need a button to delete all inactive layers in the entire project. This will make cleaning work easy. :D

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 11 Jun 2021, 15:51
by Svengali
Here's a short script that might do what you want (but it removes ALL hidden layers, no matter what their COLOR GROUP) :?

1. It loops through all the layers creating a list of all inactive layers.
2. Once all inactive layers are found, it will loop through all those layers...
3. Layer by layer, it will display the message "Layer named (name of layer) will be deleted ..."
4. You simply click OK, then that layer is deleted.
5. The original current layer is re-selected and the script is done.
6. Once done, if necessary, ALL the deleted layers can be resurrected in one UNDO operation.

TO USE: Make a new button, then copy the script below and EMBED it in the Embedded GEORGE Script button action, save the button and assign an ICON to the new button.

Code: Select all

Param none
ScriptName = "DeleteHidden"

tv_LayerCurrentID
OriginalLayerID = result

ExitFlag = 0
Counter = 0
SelectedLayerCounter = -1

tv_UndoOpenStack

While ExitFlag == 0
	tv_LayerGetID Counter
	LayerID = result
	IF CMP(LayerID, "none")
		Total = Counter - 1
		ExitFlag = 1
		tv_LayerSet OriginalLayerID
	ELSE
		tv_LayerInfo LayerID
		parse result LDisplay LPosition LOpacity LName LType LStart LEnd LPre_LT LPost_LT LSelection LEditable LStencilState
		IF CMP(LDisplay,"OFF")
			SelectedLayerCounter = SelectedLayerCounter + 1
			LayerInfo(SelectedLayerCounter) = LayerID
			LayerName(SelectedLayerCounter) = LName
		END
	END
	Counter = Counter + 1
END

IF SelectedLayerCounter > -1		
	FOR i = 0 to SelectedLayerCounter
		LayerID =  LayerInfo(i)

		tv_warn "Layer named " LayerName(i) " will be deleted..."

		tv_LayerKill LayerID
	END
END

tv_LayerSet OriginalLayerID
tv_UndoCloseStack

This is a modification of the script that was posted a few days ago for Peter (that executes the same FX operation on all layers)... its really a simple script that could be adapted to other layer processes as well.

sven

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 13 Jun 2021, 19:13
by Animationriver
Svengali wrote: 11 Jun 2021, 15:51 Here's a short script that might do what you want (but it removes ALL hidden layers, no matter what their COLOR GROUP) :?

1. It loops through all the layers creating a list of all inactive layers.
2. Once all inactive layers are found, it will loop through all those layers...
3. Layer by layer, it will display the message "Layer named (name of layer) will be deleted ..."
4. You simply click OK, then that layer is deleted.
5. The original current layer is re-selected and the script is done.
6. Once done, if necessary, ALL the deleted layers can be resurrected in one UNDO operation.

TO USE: Make a new button, then copy the script below and EMBED it in the Embedded GEORGE Script button action, save the button and assign an ICON to the new button.

Code: Select all

Param none
ScriptName = "DeleteHidden"

tv_LayerCurrentID
OriginalLayerID = result

ExitFlag = 0
Counter = 0
SelectedLayerCounter = -1

tv_UndoOpenStack

While ExitFlag == 0
	tv_LayerGetID Counter
	LayerID = result
	IF CMP(LayerID, "none")
		Total = Counter - 1
		ExitFlag = 1
		tv_LayerSet OriginalLayerID
	ELSE
		tv_LayerInfo LayerID
		parse result LDisplay LPosition LOpacity LName LType LStart LEnd LPre_LT LPost_LT LSelection LEditable LStencilState
		IF CMP(LDisplay,"OFF")
			SelectedLayerCounter = SelectedLayerCounter + 1
			LayerInfo(SelectedLayerCounter) = LayerID
			LayerName(SelectedLayerCounter) = LName
		END
	END
	Counter = Counter + 1
END

IF SelectedLayerCounter > -1		
	FOR i = 0 to SelectedLayerCounter
		LayerID =  LayerInfo(i)

		tv_warn "Layer named " LayerName(i) " will be deleted..."

		tv_LayerKill LayerID
	END
END

tv_LayerSet OriginalLayerID
tv_UndoCloseStack

This is a modification of the script that was posted a few days ago for Peter (that executes the same FX operation on all layers)... its really a simple script that could be adapted to other layer processes as well.

sven
OK. Thank you SVEN!
The button works for 1 clip. Then for the 2nd clip. So....
Can you do this for the whole project at once? Please.

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 14 Jun 2021, 17:43
by Svengali
I updated the script a little and made it to work automatically for all clips. Here is the button/script.
.
Delete Inactive Layers in All Clips.png
Delete Inactive Layers in All Clips.png (12.89 KiB) Viewed 50502 times
To use:
1.Preparation: In all clips, make layers you want to delete inactive.
2. Press button to start.
3. beginning with clip 1, each will be searched for inactive layers which will be removed.
4. message confirming that the clip was processed, the clip's position in the clip list, the total number of layers in clip and number of layers that were removed.
5. Each time you press OK, the next clip will be processed... etc.
6. In a case where ALL layers in the current clip have been removed, you will be warned, and a temporary, one-frame layer for that clip will be created - no clip in itself is ever removed.
7. A single UNDO will restore all clips and layers.
8. FIRST, TEST BEFORE USING ON PROJECTS = RUN ON COPY OF PROJECT OR TEST PROJECT TO BE SAFE.

sven

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 17 Jun 2021, 23:24
by Animationriver
Svengali wrote: 14 Jun 2021, 17:43 I updated the script a little and made it to work automatically for all clips. Here is the button/script.
.
Delete Inactive Layers in All Clips.png

To use:
1.Preparation: In all clips, make layers you want to delete inactive.
2. Press button to start.
3. beginning with clip 1, each will be searched for inactive layers which will be removed.
4. message confirming that the clip was processed, the clip's position in the clip list, the total number of layers in clip and number of layers that were removed.
5. Each time you press OK, the next clip will be processed... etc.
6. In a case where ALL layers in the current clip have been removed, you will be warned, and a temporary, one-frame layer for that clip will be created - no clip in itself is ever removed.
7. A single UNDO will restore all clips and layers.
8. FIRST, TEST BEFORE USING ON PROJECTS = RUN ON COPY OF PROJECT OR TEST PROJECT TO BE SAFE.

sven
Thank you very mach, Sven!

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 18 Jun 2021, 02:56
by Svengali
:D

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 18 Jun 2021, 22:04
by schwarzgrau
Thank you, this will be sooo useful

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 29 Oct 2021, 10:50
by Xavier
Hi, I'm going to refactor the selection menu.
What do you think of such options ? (they will be associated to keyboard shortcut functions, of course)
Capture d’écran_2021-10-29_10-35-03.png
Capture d’écran_2021-10-29_10-35-03.png (26 KiB) Viewed 40275 times
Capture d’écran_2021-10-29_10-32-13.png
Capture d’écran_2021-10-29_10-32-13.png (28.38 KiB) Viewed 40275 times

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 01 Nov 2021, 13:40
by Animationriver
Xavier wrote: 29 Oct 2021, 10:50 Hi, I'm going to refactor the selection menu.
What do you think of such options ? (they will be associated to keyboard shortcut functions, of course)

Capture d’écran_2021-10-29_10-35-03.png
Capture d’écran_2021-10-29_10-32-13.png

This is genius.
But it has to do with one clip.
If you have the skill of organizing a project. I often use clips. The clip is my main tool.
Therefore, it would be nice to have a toolbox for all clips at once. Or a command for the selected clip only.
I'm a storyboarder.
This is very important to me. Be able to influence clips. Not just layers.
Thanks.
Your idea is perfect for 1 clip.
Thanks!
You will be very helpful! Thanks.

Re: INVISIBLE LAYERS in one COLOR GROUP

Posted: 02 Nov 2021, 11:04
by Xavier
Animationriver wrote: 01 Nov 2021, 13:40 If you have the skill of organizing a project. I often use clips. The clip is my main tool.
Therefore, it would be nice to have a toolbox for all clips at once. Or a command for the selected clip only.
Sorry, I don't understand. You would like to select layers from a right click on the clip ?