Graphics

 View Only
  • 1.  dynamically change the color of a quad to match the colors in a logo

    Posted 01-15-2025 02:03

    Hello everyone,
    I need help changing the color of a quad to match the color of a logo. Additionally, I want the logo to be linked via DataLinq, and the quad should be able to handle multiple color variations dynamically.

    Can someone guide me on how to achieve this?



    ------------------------------
    Sahil thakur
    expression motion graphic designer
    NODWIN GAMING
    ------------------------------


  • 2.  RE: dynamically change the color of a quad to match the colors in a logo

    Posted 01-15-2025 05:26

    Hello,

    It seems to me that XPression is not able to automatically detect the dominant color of a logo in order to adapt the color of a quad.

    I recommend that you add the hexadecimal code of the color in the name of your logo, which you can retrieve via Visual Logic. This will enable you to modify the color of the quad according to that of the logo.

    You can get the image path via datalinq or dynamic Material, or watch this video. 

    https://www.rossvideo.com/resources/ross-university/datalinq-dynamic-materials-in-xpression/



    ------------------------------
    Alan LAMY
    Intégrateur graphique
    Paris France
    ------------------------------



  • 3.  RE: dynamically change the color of a quad to match the colors in a logo

    Posted 01-15-2025 10:38

    If you are using a spreadsheet via datalinq, have the logo one column and the color in another.

    I prefer VB and the XPression API SDK to change the color of the material. However, anything else using the same material gets the color change.

    Or dynamically create a new material with the SDK.

    Make a color chip image and set it as a volatile material without affecting others using the same material.

    You could add a Color Correct -> Color Adjust effect to the quad and rotate hue, adjust saturation and brightness to match affecting only the quad and not the material. Choosing a base color and then the adjustments would be a bit of a pain.

    ---

    I prefer the volatile material because it is least likely to affect anything other than that quad and is a simpler bit of programming.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 4.  RE: dynamically change the color of a quad to match the colors in a logo

    Posted 01-16-2025 09:34

    If you have a specific point in your logo file where you want to pick the color from, you could use Texture Coordinates on the quad to "zoom in" to that color.

    In this case, I've used visual logic to copy the material I've selected for my Logo quad to the face of my Color quad

    Then on the Color quad, I've set the Texture Scale to be .005, and the Pivot to 0 and 0, so the texture is scaling out from the upper right. You can adjust the Pivot values to point to the coordinate in your texture where you would like to pull color from.

    I've seen this done where a specific color chip was included in the logo file as well, usually in the corner of the file where it could be placed outside the bounding box of the Logo's quad.

     



    ------------------------------
    Jeff Mayer
    Ross Video
    ------------------------------