Menu

Home

TWINGSISTER
Attachments
errors.png (210082 bytes)
screen.png (368441 bytes)

The TWINGSISTER's projects contains a number of Blender addons. So to enjoy something here you first have to download and install Blender. Second we refer you to the documentation for the Quadrics addon. There you will find all the instruction needed to install any of the TWINGSISTER addon.
Basically you need to download the Sverchok or the Animation Nodes addon and the BlendBridge plugin.
BlendBridge is distributed as a perk in the internal TWINGSISTER fundraising champaing. The Color Quadrics addon is an extension of the Quadrics addon so, again you will find in the Quadrics documentation all information about all the parameters in the Color Quadrics addon but the Upload button and the Uploaded output.


It is possible to test the Color Quadrics addon without Sverchock and/or Animation Node. You can find here a web tutorial for this (works only with Blender 2.80).


For those using Sverchock
Once you have loaded the ColorQuadrics addon following the instructions for the Quadrics addon you have to upload the
ColorQuadrics.json file that you can find in the Examples folder. The instruction for doing this are in the Quadrics documentation
in this image (visualize this in full screen and take a look to the yellow part in the lower right corner .
Once you have loaded **ColorQuadrics.json ** file you will find in the situation depicted in the figure below. .
Possibly the system will issue some error windows complaining about missing definitions. That's correct, no Python file has been consulted in, yet. Do the ten easy steps and get some colored quadrics.
The step 1 and 2 require an external file to be uploaded. This file must be a valid Python module (.py) or a valid compiled Python module (.pyc) or a zip file containing a collection of valid Python modules. This file must load a configuration Python module. In Figure below an example of using the Uploaded output that gives the file name, as a string, of the configuration module the node is using. . Some configuration files (all named configuration.py) can be found in the Examples folder


For those using Animation Nodes
Json saving/restoring is not supported by Animation Nodes so you have to build the net yourself. Follow the steps in this figure below. Possibly do first the simpler example in the Quadrics project .


The configuration module
The configuration module can be any valid Python file. Also collection of Python files that uses imports possibly
packaged in a zip file are supported. This addon relies upon the Python loader so you can feed into this module
whatever you want. The ColorQuadrics addon is just a first step in this direction. The much more powerful BlendLink addon generalizes this approach giving full control on the shape, the vertex coloring and the texture mapping.
Basically, with these addons, lightweight prototypes of computational geometry algorithms can be prototyped into Blender, using Python, with little knowledge of the Blender API. To get colorful quadric surfaces, In the configuration module, there must be a definition for three functions red(x,y,z,u,v), green(x,y,z,u,v) and blue(x,y,z,u,v) that returns a float real number between (or equal to) 0.0 and 1.0. Input parameters are the cartesian coordinates P=(x,y,z) of a point P and u,v are the parameters that are assigned internally to get point P. The only known constraint on u and v is that they assume a value between (or equal to) 0.0 and 1.0. If alll thee conditions are met and the configuration module contains a valid function definition for r,g,b then the underlying library take case to assign color specified by red,green and blue functions to point P. Examples of the configuration.py file are provided in the Examples folder . Note that if the configuration file contains an invalid Python code some errors are handed out from the Python interpreter. The amount of information passed is controlled by the parameter DebugLevel.


The DebugLevel parameter
The DebugLevel parameter controls various error information. If DebugLevel is equal to 0 (default) no error message is output.
If DebugLevel is greater of equal to 1 some information is written to a log file. The path of this file is in Blender File>User Preferences>Add-on (tab) look into the parameters for add-om blendbridge. If DebugLevel is greater of equal to 2 information is still written to the log file and also to a window stopping execution. The system opens an error window and gives you some information about what went wrong.


Applications
See at Turbosquid here some models created with this addon.
The wiki uses Markdown syntax.

Project Members: