[Submission] ColorLabels, a simply tool to change color of flow items.  [SUBMITTED]

Moderator: SecondMan

User avatar
AlbertoGZ
Posts: 40
Joined: Sat Apr 21, 2018 3:15 am
Location: Barcelona, Spain
Contact:

[Submission] ColorLabels, a simply tool to change color of flow items.

#1

Post by AlbertoGZ » Sun Jun 17, 2018 8:34 am

Color Labels is a tool to assign quickly a color to TileColor and TextColor for items on the flow. Tool is based on the code of ui.ColorPicker snippet example from Greg Bovine.

ColorLabels.jpg

Controls

BG Color
Set the mode color as item TileColor.

Text Color
Sets the mode color as item TextColor

Hue, Sat, Val.
Select desired color from color picker.

Reset color
Set selected items to default color.

Assign color
Set selected items with selected color in the color picker.

Store mode
Turn on/off store mode.
When Store mode is ON then you can save your own custom colors in presets buttons, by hit on each color button.
When Store mode is OFF, you can assign the color in each button by hitting it.

Default colors
Restore presets colors to default ColorLabels config.


Changelog

v1.0 - 17.jun.2018

  • First public release of ColorLabels

Atom file contents:

Code: Select all

Atom {
	Name = "ColorLabels",
	Category = "Comps",
	Author = "",
	Version = 1,
	Date = {2018, 6, 17},
	Description = [[Color Labels is a tool to assign quickly a color to 
TileColor and TextColor for items on the flow. Tool is based on 
the code of ui.ColorPicker snippet example from Greg Bovine.

<p>Installation: Place AlbertoGZ/ColorLabels/ folder in Fusion:/Scripts/Comp

<p>Usage:
<ol>
	<li>Run the script, then select nodes what you want assign color and hit the button Assign Color. You can assign colors from presets palette directly by hit its colored button.</li>
	<li>Press Store Mode button to enter in store mode, then you can store the color selected in the color picker simply pressing the colored button where you want store the color. </li>
</ol>]],
	Deploy = {
		"Scripts/Comp/AlbertoGZ/ColorLabels/ColorLabels.py",
	},
}

You do not have the required permissions to view the files attached to this post.
Last edited by AlbertoGZ on Thu Jun 21, 2018 12:09 pm, edited 1 time in total.

User avatar
Miltos
Fusionista
Posts: 433
Joined: Wed Aug 06, 2014 2:18 am
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#2

Post by Miltos » Sun Jun 17, 2018 8:52 am

This looks nice!

User avatar
SecondMan
Site Admin
Posts: 3772
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 7
Location: Vancouver, Canada
Been thanked: 146 times
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#3

Post by SecondMan » Tue Jun 19, 2018 2:13 pm

Looks sweet @AlbertoGZ,

The script resides in the wrong directory in the repo. It should be in Comp, not Comps.

Also, the Deploy section isn't filled out in the Atom file. Please use Atomizer for creating the Atom, it will help make sure that everything is in order.

Please if you choose to go though GitlLab directly, could you make a Merge request from your branch on submission? It gets a little confusing otherwise :)

Thanks!

User avatar
AlbertoGZ
Posts: 40
Joined: Sat Apr 21, 2018 3:15 am
Location: Barcelona, Spain
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#4

Post by AlbertoGZ » Wed Jun 20, 2018 12:55 am

I've fixed the things that your commented to me, and I've done a Merge request. Thanks SecondMan!

User avatar
SecondMan
Site Admin
Posts: 3772
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 7
Location: Vancouver, Canada
Been thanked: 146 times
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#5

Post by SecondMan » Wed Jun 20, 2018 4:55 pm

Hi @AlbertoGZ, your submission cannot be merged:

Code: Select all

 There are merge conflicts. Resolve these conflicts or ask someone with write access to this repository to merge it locally

Since I have no write access to your branch, I can't resolve these. Please can you look into that?

Alternatively, you may just want to upload your submissions to the forum.

Added in 24 minutes 15 seconds:
By the way, sweet little tool - works nice!

Just as an aside/tip, you may want to consider putting it inside a subdirectory - especially since you're generating a config file alongside it. Just to keep things clean...

User avatar
AlbertoGZ
Posts: 40
Joined: Sat Apr 21, 2018 3:15 am
Location: Barcelona, Spain
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#6

Post by AlbertoGZ » Thu Jun 21, 2018 1:56 am

I've put ColorLabels.py into ColorLabels folder to be placed in Script/Comp path as you suggest for keeping good sort.

I've tried to delete the conflicts merge branch, but I can't find it in gitlab. However I've created another merge request from tool-updates to AlbertoGZ>Reactor>master. My previous merge request I think was to target WeSuckLess>Reactor>master. Which would be the right target for master branch?

User avatar
SecondMan
Site Admin
Posts: 3772
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 7
Location: Vancouver, Canada
Been thanked: 146 times
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#7

Post by SecondMan » Thu Jun 21, 2018 10:34 am

AlbertoGZ wrote:
Thu Jun 21, 2018 1:56 am
I've put ColorLabels.py into ColorLabels folder to be placed in Script/Comp path as you suggest for keeping good sort.

In Fusion you can organise scripts in submenus simply by placing them in a subdirectory on disk. The menus will follow the same structure. So currently your script ends up in the root. That's not an issue, but if everyone does that you may end up with a list of 100s of scripts in the root menu. Your script also creates a config file alongside it which potentially adds to the clutter. So perhaps you would prefer to put your script in Scrips/Comp/Flow, or Scripts/Comp/AlbertoGZ. Ultimately the choice is up to you, of course :)

AlbertoGZ wrote:
Thu Jun 21, 2018 1:56 am
I've tried to delete the conflicts merge branch, but I can't find it in gitlab. However I've created another merge request from tool-updates to AlbertoGZ>Reactor>master. My previous merge request I think was to target WeSuckLess>Reactor>master. Which would be the right target for master branch?

So you forked Reactor to your account. That's fine, but AlbertoGZ>Reactor>master is obviously not the repo that Reactor connects to, which is WeSuckLess>Reactor>master. It looks like your fork may simply be out of date.

User avatar
AlbertoGZ
Posts: 40
Joined: Sat Apr 21, 2018 3:15 am
Location: Barcelona, Spain
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#8

Post by AlbertoGZ » Thu Jun 21, 2018 11:41 am

SecondMan wrote:
Thu Jun 21, 2018 10:34 am
So perhaps you would prefer to put your script in Scrips/Comp/Flow, or Scripts/Comp/AlbertoGZ. Ultimately the choice is up to you, of course :)
Scripts/Comp/AlbertoGZ/ is right for me. I don't has used author name as sub-folder to give freedom for everyone to put scripts wherever you want.

May be this structure would be good?
  1. /Scripts/Comp/
  2. |--AlbertoGZ
  3.     |--ColorLabels
  4.     |--ReloadLoaders
  5.     |--FutureScript1
  6.     |--FutureScript2
SecondMan wrote:
Thu Jun 21, 2018 10:34 am
So you forked Reactor to your account. That's fine, but AlbertoGZ>Reactor>master is obviously not the repo that Reactor connects to, which is WeSuckLess>Reactor>master. It looks like your fork may simply be out of date.
I don't know how to fix this question about merging branches a this time.
Captura de pantalla 2018-06-21 a las 20.57.45.png
You do not have the required permissions to view the files attached to this post.
Last edited by AlbertoGZ on Thu Jun 21, 2018 11:58 am, edited 1 time in total.

User avatar
SecondMan
Site Admin
Posts: 3772
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 7
Location: Vancouver, Canada
Been thanked: 146 times
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#9

Post by SecondMan » Thu Jun 21, 2018 11:48 am

AlbertoGZ wrote:
Thu Jun 21, 2018 11:41 am

I don't know how to fix this question about merging branches a this time.{"user":"2558","username":"AlbertoGZ","post":"17932","time":"1529606474"}

Not a problem. In that case I would really recommend to just follow this template for how to submit Atom packages straight to the forum. It's the easiest way.

User avatar
AlbertoGZ
Posts: 40
Joined: Sat Apr 21, 2018 3:15 am
Location: Barcelona, Spain
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.  [SUBMITTED]

#10

Post by AlbertoGZ » Thu Jun 21, 2018 12:01 pm

SecondMan wrote:
Thu Jun 21, 2018 11:48 am
AlbertoGZ wrote:
Thu Jun 21, 2018 11:41 am

I don't know how to fix this question about merging branches a this time.{"user":"2558","username":"AlbertoGZ","post":"17932","time":"1529606474"}

Not a problem. In that case I would really recommend to just follow this template for how to submit Atom packages straight to the forum. It's the easiest way.
Thanks!
I have added the .zip with atom and script file.

User avatar
SecondMan
Site Admin
Posts: 3772
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 7
Location: Vancouver, Canada
Been thanked: 146 times
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#11

Post by SecondMan » Fri Jun 29, 2018 7:23 pm

And submitted! :cheer:

User avatar
AlbertoGZ
Posts: 40
Joined: Sat Apr 21, 2018 3:15 am
Location: Barcelona, Spain
Contact:

Re: [Submission] ColorLabels, a simply tool to change color of flow items.

#12

Post by AlbertoGZ » Tue Jul 03, 2018 1:40 am

SecondMan wrote:
Fri Jun 29, 2018 7:23 pm
And submitted! :cheer:
Thank you!! :)