User Tag List

Results 1 to 2 of 2

Thread: RGB range with surface object?

  1. #1
    Clicker Fusion 2.5 Mac

    Join Date
    Dec 2008
    Posts
    237
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RGB range with surface object?

    Hi, is it possible to work with a color range using Surface Object or any other extenion?

    I would like to "crop out" chroma key, as an example.

    Thanks a lot in advance.

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,540
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The surface object has functions that let you iterate through each pixel in your image and change it, using the action "callback: loop though area" or "loop through image" to initiate a loop, then the condition "on callback" and action "return color" (or return alpha) to set that pixel. If you simply wanted to set a color or range of colors to be transparent, you can do something like;

    +always
    =loop through image with callback {name} flags set to 3 (get color + set color)

    +on callback {name}
    +compare two general values getGreen(CallbackSrcCol("surface")) >= 240
    =return color TranspColor("surface")

    that would change every pixel in the image with a Green component of 240+ into a transparent pixel.

Similar Threads

  1. how do i spawn a object in a random range?
    By shoppa in forum Fusion 2.5
    Replies: 2
    Last Post: 21st April 2018, 12:53 PM
  2. Replies: 11
    Last Post: 15th February 2017, 04:22 PM
  3. Event to happen when Object A is within a certain range of Object B?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 20th April 2012, 10:56 PM
  4. Detect Object within a certain range
    By cchapeton in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st June 2010, 05:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •