Jump to content


Photo

Color Correction


  • Please log in to reply
28 replies to this topic

#16 shaily

shaily

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 380 posts

Posted 14 April 2006 - 08:15 AM

I tried to replicate it with another Wand tool and HLS gave me only HLS! Is it a F5 bug???

<{POST_SNAPBACK}>


indeed!
its hue
click on rgb then click on hls again

shaily.
  • angenrorsJape likes this

#17 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 14 April 2006 - 10:04 AM


how hard does that sound

its a quick setup (if only i had enough time!)

shaily.

<{POST_SNAPBACK}>

But Magic Wand will work only when objects are not moving...
Here are two other ways:

Attached Files



#18 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 14 April 2006 - 10:23 AM

Ah well, while we're at it :-)...

Attached Files



#19 shaily

shaily

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 380 posts

Posted 16 April 2006 - 09:59 AM

But Magic Wand will work only when objects are not moving...

<{POST_SNAPBACK}>


wand is not using like 0.5r,0.1g,0.1b.
its using a range of colors and we can always track the wand centre.
im not trying to force the use of wand mask its no harm in trying things.

perhaps good enough only for the resolution u are working at.
heres another workaroundAttached File  flower00007of.zip   662.8KB   44 downloads
ive used ccv
wish it had a more friendly interface.

i would like to do a macro(no keyers)for that; like pick source color and pick destination color, perhaps some time later

shaily.

#20 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 09 October 2009 - 05:04 PM

Yet another example of selective color correction by Fusion native tools.

SelectColorRange_v02-1 macro acts like a bitmap mask. It selects a range of colors according to Hue. You can also select a range of Saturation, Luminance, R, G, B, A.
It has the following unique controls:
  • Range Low - defines lower selection limit
  • Range High - higher selection limit
  • Low Decay - lower limit softness
  • High Decay - higher limit softness

Copy the .setting file under your Fusion:\Macros folder. It will be available from the Tools/Macros menu.

Attached Files



#21 Pilalitos

Pilalitos

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 791 posts

Posted 09 October 2009 - 06:03 PM

Yet another example of selective color correction by Fusion native tools.

SelectColorRange_v02-1 macro acts like a bitmap mask. It selects a range of colors according to Hue. You can also select a range of Saturation, Luminance, R, G, B, A.
It has the following unique controls:

  • Range Low - defines lower selection limit
  • Range High - higher selection limit
  • Low Decay - lower limit softness
  • High Decay - higher limit softness


This looks like a helpful tool Gringo! I will PM you in a couple of minutes with a question.

#22 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 10 October 2009 - 04:33 AM

A similar tool which uses a Gradient control to select a range.
It's slower, but it allows you to select a compound range.
Selects Reds by defaults.

By the way, is it possible to change gradient colors by intool scripts?
I'd connect the Channel Map (example) to the channel selection then (spectrum for Hue, black to white for Luminance, black to red for Red etc.)

Attached Files



#23 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 11 October 2009 - 03:08 PM

Another version of the previous macro with a possibility of inversion (good to select reds)
and a question: why can't I modify Bitmap.PaintMode with a simple expression like some other droplists? I need it to use inversion along with level.

Attached Files



#24 Daniel Koch

Daniel Koch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 661 posts

Posted 12 October 2009 - 03:47 AM

The PaintMode dropdown is set with a text ID, like "Invert". Here's an example simple expression that switches to "Invert" when Ellipse1's Invert checkbox is set:
(Ellipse1.Invert == 1) and "Invert" or "Merge"
For gradients, here's how to set them up:
Background1.Gradient[0] = Gradient{ [0] = {0,0,0,1}, [0.5] = {1,0,0,1}, [1] = {1,1,0,1} }
and how to read them:
> grad = Background1.Gradient[0]
> dump(grad.Value)
table: 124894A0
	0 = table: 07D22890
		1 = 0
		2 = 0
		3 = 0
		4 = 1
	0.5 = table: 07D22890
		1 = 1
		2 = 0
		3 = 0
		4 = 1
	1 = table: 124274A0
		1 = 1
		2 = 1
		3 = 0
		4 = 1
Unfortunately, that doesn't seem to work in 6.0 build 476. I've fixed that now.

#25 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 12 October 2009 - 07:31 AM

Thank you Daniel!

It made possible to finish the macro (now with the Level control):
Attached File  SelectColorRange_v02-3.setting   4.71KB   24 downloads

However, it's strange PaintMode can't be modified numerically like ChannelBooleans.Operation, for example... It'd make the solution more elegant.

Can you please answer some more macro questions:
  • Is it possible to create standard Common Controls and 3D Controls tabs in macros with icons instead of text labels? I use the Page tag, but I don't know can it define standard common tabs...
  • Is it possible to define the color of a node input? Would be great to paint the Effect Mask input standard lavender.
    I've tried
    MaskInput = InstanceInput {
    					SourceOp = "Merge1",
    					Source = "EffectMask",
    					Color = "Red",
    				},
    
    instead of
    MainInput2 = InstanceInput {
    					SourceOp = "Merge1",
    					Source = "EffectMask",
    				},
    
    And it works, but doesn't change the color.
Looking forward to getting my access to gradients via simple expressions :)

#26 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 12 October 2009 - 08:23 AM

Is it possible to define the color of a node input? Would be great to paint the Effect Mask input standard lavender.

EffectMask = InstanceInput {
					SourceOp = "Merge1",
					Source = "EffectMask",
				},
works for me :mf_laughbounce2:

Attached Files



#27 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 23 November 2009 - 05:38 AM

For gradients, here's how to set them up:

Background1.Gradient[0] = Gradient{ [0] = {0,0,0,1}, [0.5] = {1,0,0,1}, [1] = {1,1,0,1} }
Unfortunately, that doesn't seem to work in 6.0 build 476. I've fixed that now.

I've tried this in b511, but it doesn't work for me.
This in-tool script:
if Channel.Value == "Red" then
      BG_ChannelMap.Gradient[0] = Gradient{ [0] = {0,0,0,1}, [1] = {1,0,0,1} }
      Offset = 0.2
   else
if Channel.Value == "Green" then
      BG_ChannelMap.Gradient[0] = Gradient{ [0] = {0,0,0,1}, [1] = {0,1,0,1} }
      Offset = 0.4
   else
if Channel.Value == "Blue" then
      BG_ChannelMap.Gradient[0] = Gradient{ [0] = {0,0,0,1}, [1] = {0,0,1,1} }
      Offset = 0.6
   else
if Channel.Value == "Hue" then
      BG_ChannelMap.Gradient[0] = Gradient{ [0] = {1,0,0,1}, [0.3333333333333] = {0,1,0,1}, [0.6666666666666] = {0,0,1,1}, [1] = {1,0,0,1} }
      Offset = 0.8
   else
      BG_ChannelMap.Gradient[0] = Gradient{ [0] = {0,0,0,1}, [1] = {1,1,1,1} }
      Offset = -0.5
   end
   end
   end
   end
only changes the Offset, but the color markers aren't affected.

Attached Files



#28 drswoboda

drswoboda

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 268 posts

Posted 28 November 2009 - 10:08 PM

These are very handy Macros and excellent discussion, thank you gentlemen!

-David

#29 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 16 January 2012 - 11:31 AM

Minor interface cleanup:
SelectColorRange_v02-6.setting




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users