im new in using this awesome launcher but, through some youtube tutorials and reading some posts here, I managed to…

im new in using this awesome launcher but, through some youtube tutorials and reading some posts here, I managed to make an icon animated. I dont really know much about scripts. I did my animated icons by copying and pasting scripts from here.

can anyone please help me make a script and what to edit in bindings? I want to make a looped animation and how can I make something like the binding “left” to start from the right going to the left side of the screen.

and how can I make an icon move after an icon just finished moving using script and what to edit in bindings.

i found this here.

“public void runScript (String name, String data)

Run another script. Same as calling runScript(null, name, data) with a null path.

See Also

runScript(String, String, String)

public void runScript (String path, String name, String data)

Run another script. Optional data can be transmitted to the called script and retrieved using getData().

Parameters

path path of the script (null to look in all directories)

name name of the script as found in the script editor, optionally prefixed with its path

data optional data to send to the script. Use JSON to pass more than a string.”

how should this be written in the script editor if I want to run an icon animation after a previous icon animation?

sorry for so many questions. I really wanted to make an awesome lightning launcher animation.

thank you very much!!!

12 Commentsto im new in using this awesome launcher but, through some youtube tutorials and reading some posts here, I managed to…

  1. I also found many javascript animation scripts in the net and I tried copying and pasting them in the script editor but they dont seem to work or I just didnt know what to edit in the bindings setting.

  2. How do you want to animate your item exactly? For movement you shouldn’t need anything more complex than a few bindings

  3. I want to make an icon move from right to left and then after the animation of that icon another script will automatically run to animate another icon to where ever I assign it.. and also a looped animation. I dont know how to do that using only bindings. and scripting is way too complex for me to understand. lol. so im asking for someone who can write a script for me so I can copy and just paste it in the script editor. and experiment on it for me to learn some more. sorry for the long comment.

  4. I found this script here

    “var bb = LL.getVariables().getInteger(“bb”)||0;

    bb = 1 – bb;

    var editor = LL.getVariables().edit();

    editor.setInteger(“bb”,bb);

    editor.commit();”

    using this script I am able to animate an icon from left to right and then from the top to the bottom of the screen. I want to animate 2 icons, the first from right to left then after that animation another script will run to animate the second icon from the bottom right to left and then another binding to make it go up. and I want to know how to loop an icon from right to left to right to left and so on for at least 20 times. and sorry for some mistakes in typos and grammar.

  5. How do you want to trigger these animations? There is an LL action that sets a variable on which the animation of an item depends. You might want to look into that because you won’t need the script anymore.

    For running one animation after another you can use a delay which the animate functions takes as a third argument.

    For looping the animation you would need a script though. This script would simply toggle the variable the animation is dependent on after a certain amount of time using the setTimeout function.

  6. I did some experiments using the script above and the binding I used is 10+(animate(‘$bb’,300,’bo’,300))*60. I managed to follow what you said about setting the delay time and its a success! I used 2 icons and set the second icon’s binding “left” animation delay to start when the first icon will stop. thanks very much!

  7. Great! I encourage you to look into JavaScripts setTimeout function yourself because you can learn a great deal from it. Almost everything in this launcher becomes possible if you know how to write scripts. If you don’t have the time to do that though, I could help you along a little further because the final script is not that complicated.

  8. please, can you show me a lightning launcher icon loop script with just a “left” binding. I think I can explore it from there.

  9. You can use the script above like this:

    (function toggle(){

    // paste your script here or use runScript

    setTimeout (toggle, 3000);

    })();

    Not tested or anything, but something along those lines should work.

  10. alright! thanks very very much. ill be sharing my creation here as soon as im finished! thaks!

  11. I created an animation that looks like a circuit board with glowing current along its lines. it is not finished yet though. I want to share the .lla backup file of what I did using the scripts that you gave me, sadly, I am having a hard time uploading it here. because im in the philippines, and as everyone know already, we are one of the slowest, highly cost, low stability and to make it worse, my location does not have an lte connection yet. ill try to upload the .lla when it is possible. thank you very much for you help on the scripts!

  12. Wow cool! I’ve thought about creating something like that too for a while. Excited to see what you’ve come with 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *