Decoding a message animation, a step-by-step Python script tutorial using Blender 2.76. Designed to emulate a fictitious computer decoding (hacking) of a message.
----------
DOWNLOAD:
If you just want to use the Python script, you can download it from Google Drive here:
[UPDATE: The script has been updated so the animation STARTS with blank spaces - added line 19. It's also been updated - line 8 - so when closing the file and opening again, the first part of the script does not run. Also, you no longer need the controller empty, so just delete it. Finally, it's been updated to work either with Blender Render or Cycles (see below).]:
https://drive.google.com/file/d/0B9ol...
----------
CYCLES:
If you want to use this Python script in Cycles Render, read the following instructions: When setting up the original material, BEFORE making it single user for all the text objects, go to Material context / Surface panel / click Use Nodes /
Surface: Mix Shader
Fac: 1.0
Shader: Transparent BSDF
Shader: Emission
Color: FFFFFF (white)
Texture context: Click the Texture drop-down menu icon and choose the default Tex. Type: Wood. Click the F button (fake user) and click the X button.
In the Python script, change the following code
obj.material_slots[0].material.alpha =
to the following code:
obj.material_slots[0].material.node_tree.nodes['Mix Shader'].inputs[0].default_value =
This has already been done in the decrypter.py script provided by the download link which will now run in either Blender Render or Cycles.
----------
ALTERNATIVE:
Another effect you can easily achieve with this script is the following: Below the line with the following code,
i = min(ie, floor(abs(f - fs) / speed))
create an if statement on its own line like so:
if False:
Highlight the text below that related to changing the alpha/transparency of the material. Hit the Tab-key to indent the line(s) of highlighted text by four more spaces. (Change the if condition to True, when you want to animate the alpha/transparency.) Click the Run Script button.
Now, select the second letter. Properties editor / Object context / Custom Properties panel / letters: Add three spaces to the beginning. There should now be four spaces at the beginning. Delete or add letters before the ending match letter so there are only THREE visible letters before the match letter (four visible letters total). As an example, the second letter's custom property letters would have four spaces followed by something like MKVL, where L is the match letter.
Change the speed custom property for all the letters to 1, the same speed. So all custom property letters should have the same NUMBER of visible characters and the same SPEED.
Select the third letter. Add 2 x 3 spaces to the beginning of the letters custom property (should be seven spaces total). This can most easily be done by copying three spaces, then pasting two times. It should also only have THREE visible letters BEFORE the ending match letter.
Similarly, make all the same changes on all the letters, except add 3 x 3 spaces to the beginning of the fourth letter's custom property letters. Add 4 x 3 spaces to the fifth. Add 5 x 3 spaces to the sixth and so forth.
Here is a demo on this alternative (a download link to the *.blend file is in the video Description there):
• Decrypt Message Script Demo (alternative) ...
In questa pagina del sito puoi guardare il video online Decrypt Message Script (walk-through), Blender 2.76 Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato TheNoChimpsBus 23 ottobre 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 511 volte e gli è piaciuto 7 spettatori. Buona visione!