Blender 3D – the measurements addon .

This addon help us with infos and data about measurements with Blender 3D working and output.
If you have used this addon the you need to delete it from this folders:
\Blender Foundation\Blender\2.78\scripts\addons
\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons

The install is easy , just open menu from: File – User Preferences … – Install from File ….
The tool can be fond into the left area of Blender 3D screen on Display tab ( press T key to see the Panel with Display tab).
One simple example is to see the angle of the cube.
So select the Cube object, press Tab key for edit , select with Shift key and right click mouse three vertices .
With all three vertices press Angle button to see the 90 degrees.
If you want to see area then you need to select four vertices and then press Area button.
You can see the distance to origin with Origin button.
The size of the edge can be see with two vertices selected and the using the Segment button.
To put a label , the select just one vertice then add your text and color on MeasureIt Configuration.
Now you can press the Label button.
For rendering the result image is store for UV Editing and can be selected like image for UV;
The last version is 1.70 and come with new features and changes:

  • Redesign of Mesh Debug, Configuration, and N-panel settings layouts ;
  • Added option to rotate text and measurements by angles specified in degrees ;
  • Added option to horizontally align text to left, center, or right ;
  • Added option to expand or collapse all N-panel settings ;
  • Added options to Mesh Debug to display indexes of scene objects and mesh edges ;
  • Added options to Mesh Debug to display object and vertex global locations ;
  • Fixed bug causing NoneType errors when measurments were drawn off screen ;
  • Fixed bug preventing vert locations from displaying unless vert index option was enabled ;
  • Fixed bug preventing mesh position from updating when using MeasureIt’s Render button ;
  • Fixed ensure_lookup_table bug when geometry with measurements was edited ;
  • Hid most/all adjustment options when they would have no affect ;

The addon can be found here.

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 the print python function because will use python ver. 3.
Also the cube object and cursor vars will take the all you need to use it.
Now , this myvar variable show you hou to deal with python 3.

The next two python script will make editable or not the object : your cube.

… now the next line will change it into Object Mode ( can also use TAB key).

The goal of the edit mode_toggle function can be when you will use vertices.
The changing color of the cube can be done with this functions:

Now the cube will show you with a new diffuse color.

Unity 3D – C# script – save and load file.

This is a simple C# script example for a C# class Player.
The class Player come with this content into Player.cs C# script:

To make this C# script for saving the Player into one file I used this C# script named SaveLoadManager.cs:

The script come with two parts for save and load files.
I used Serializable property to save binary file named player.sav.
This script used also the Application.persistentDataPath to take the path of application.
I used a Debug log output but if you want to used into real application then is no need to use.
You can deal with any player settings and make new like: player.magic or player.status.
Take a look at the comments in the script and that script highlights design issues.

Blender 3D – screencast keys addon.

Fist you need to take the python script from here.
The script need to be into Blender script folder to be used.
Open the Blender 3D application, go to the File – User preferences search the word Screencast and enable the addon by check the checkbox.
To use this addon then go to the 3D View, hit Shift+Alt+C keys.
Another way is to press N key to see the right panel and then use the Start Display button.
See the next image:
Blender 3D addon

Fix error: Blender 2.78 alpha – hardware 3D error.

This is the error  from Blender 3D hardware .
Blender 3D fix error
I got this error with version 2.78 alpha – maybe is the same error with old versions.
Also you will see this under window console this text:
Warning! Using result of ChoosePixelFormat.
Warning! Using result of ChoosePixelFormat.
Warning! Legacy WGL is unable to select between OpenGL versions.

This error will break your Nvidia driver and Blender don’t want to work.
To fix this you need to:
– restart the computer/ laptop;
– open Blender 3D software again;
– very important: change your render hardware settings to your video card.
I used CUDA and the old blend file know about hardware settings and will crash your Blender if you don’t set this again.