Thanks for replay. but found a faster solution in blender compositing while waiting that might suited me more due to the fact while i needed to make the color lvl decide the alpha lvl i also needed the RGB channel to be one color but didn't include that part in the post. I might use the plugin for future use.
But people who locate this thread on google can use your answer to find what they need for future solutions.