Tag Archives: scripting

Using bpy – changing colors .

This tutorial show you a simple example of python scripting into Blender 3D software. You need to select the window for scripting and to test with python scripting shell. First you need to add one object : cube. The default script and most common python script, start with this :

You need to see […]

Bash: Get IP and IPv6 address and interfaces.

First use this commands to see your IP and IPv6 address and interfaces.

Now if you want to use this every day, just open your .bashrc file from your home folder. Add this functions to the .bashrc file:

Now open a new terminal shell and use it:

Bash: Changing extension to multiple files

To change file extension from *.txt file to *.text file use this command into your shell:

JavaScript – geolocation.

This is a simple java script to take the geolocation and show it on webpage. The example start with a default HTML 5 page and the part from tags scripts get the geolocation and using innerHTML is show on webpage. To see the location then is need to use this: navigator.geolocation.getCurrentPosition.

JavaScript – toggle button example.

Is a simple example about toggle button. You need to start with input button and then get the state of this

Then add the type and id and style. You can remove the text-indent: -9999px; and Toggle button if you don’t want to see text to this toggle button. Let’s see the full source […]