Graphics

 View Only
Expand all | Collapse all

How to link the Counter Widget to a quad?

  • 1.  How to link the Counter Widget to a quad?

    Posted 06-16-2023 17:08

    Hi all,

    I want to build a scene where the Counter Widget is linked to a 'quad'. So if I have a quad which is a football icon and if I use the Counter Widget by 1, there will be two of them. I know in Visual Logic there's a thing called 'Counter' but I don't know how to use it perfectionally. Is there anybody who can help me with this?

    Kind Regards,

    Nik Cramer  



    ------------------------------
    Nik Cramer
    ------------------------------


  • 2.  RE: How to link the Counter Widget to a quad?

    Posted 06-16-2023 18:14

    Please restate the problem. It sounds like you want 2 footballs when the counter = 1, but 1 football otherwise?

    Or do you want the number of footballs to match the number on the counter?

    How high will the counter go?



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



  • 3.  RE: How to link the Counter Widget to a quad?

    Posted 06-16-2023 18:57

    I want the number of footballs to match the number of the counter with a maximum of 8.

    And all of them next to each other! Hopefully its now a bit clearer. 



    ------------------------------
    Nik Cramer
    ------------------------------



  • 4.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 09:41

    if you are willing to do just a little scripting, this is easy. Let me know.



    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 5.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 09:51

    Is it possible to do it only with Visual Logic? 



    ------------------------------
    Nik Cramer
    ------------------------------



  • 6.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 11:59
    Let me fire up Xpression and give it a shot.

    Sent from my iPhone




  • 7.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 12:41

    give this a try. I'm sure there are better ways to do it, but this one gets it done. In the greater than block, I incremented the value by one on each one. 



    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 8.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 15:42

    Hi Malcom,

    Thanks for your help! Great that you took time to make this for me.

    But i'm not getting it done. And I don't know where the problem is. Build everything what you send in the photo!

    Which value dit you put in the greather than block? And did you put the index offset to another value in the input selector? And is every 0,0 value put to the '0' and every 100 value put to the '1'?

     



    ------------------------------
    Nik Cramer
    ------------------------------



  • 9.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 15:48
    I didn't do any offset. The first value at the top is 0 zero. And it controls visibility of the first football. So if the counter is greater than zero, turn on the first football. Next block is 1. It controls the second football if the counter is greater than 1 turn on football 2. And so on. 





  • 10.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 16:06

    It worked! Thanks a lot man. 

    I gave the first greater than allready '1' instead of '0'. That worked!

    And one last question; if i want this system but every football is centered like in the picture below. How would I fix that?



    ------------------------------
    Nik Cramer
    ------------------------------



  • 11.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 16:32
    A quick fix would be to lay out the balls in photoshop where they are positioned like you want. Then export them, numbered 1-8. Then apply those materials to the quads 1-8. But instead of using greater than, use the equals. So if the counter is “1” then then in football 1 and so on.

    Sent from my iPhone




  • 12.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 16:44

    Thank you so much for this info Malcom!



    ------------------------------
    Nik Cramer
    ------------------------------



  • 13.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 16:37
    You could also use dynamic material. But that’s getting into the weeds.

    Sent from my iPhone




  • 14.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 16:45
    Or you could turn on all the footballs and pre-position them.

    Sent from my iPhone




  • 15.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 17:06

    I made it in Photoshop first what you mentioned first. That works so nice! 



    ------------------------------
    Nik Cramer
    ------------------------------



  • 16.  RE: How to link the Counter Widget to a quad?

    Posted 06-17-2023 17:10
    Excellent. This will give you a foothold on visual logic. Now you can really start playing. 





  • 17.  RE: How to link the Counter Widget to a quad?

    Posted 06-19-2023 14:42

    Well, I'm late getting back to the party on this one, but another possible solution (if it is just a row of balls) is have the final graphic with all 8 and use a mask that is repositioned based on the counter to reveal the balls. Simple multiplication.

    The counter can also be used to reposition the whole graphic to keep it centered.



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



  • 18.  RE: How to link the Counter Widget to a quad?

    Posted 06-19-2023 14:46

    Very true. He wanted to have the footballs center each time they changed, not add left to right. You could also do it using XY scale. So many different ways.



    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 19.  RE: How to link the Counter Widget to a quad?

    Posted 06-18-2023 12:05

    Malcolm,

    May I ask why you have all the input options to choose between "0" and "100" per "FB" object? Visibility is a boolean (zero or one) function so the outcome of the the "Greater Than" block (being zero or one) is enough to set the visibility of the "FBx" objects in my opinion...



    ------------------------------
    Rob van Rooyen
    Senior Graphics Specialis
    NEP The Netherlands
    Hilversum Netherlands
    ------------------------------



  • 20.  RE: How to link the Counter Widget to a quad?

    Posted 06-18-2023 12:51

    a throwback to when I used to use an alpha value. But look, the world is still turning.



    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------