sverchok

Sverchok UdpClientNode

Overview

Sverchok is an excellent add-on of blender and it enables you to create 3D model using glaphical node interface. I am seeking the posibility of this add-on and tried to communicate with other programs. But it didn’t have any network node like udpreceive or udpsend in MaxMSP. So I made a node which enable you to use function of udp client in your nodes. (This node has been already merged to the repository)

Basic

Apprarance

udp_client_appearance

Input

Simple string value to send the remote sever.

Output

String value received from remote server will be sent to the next node inlets.

Interface

IP IP address of remote server you want to access
Port Port number of remote server you want to access
Buffer(Byte) Size of buffer you want to read
Timeout(sec) Timeout length of network connection

Examle

udp_client_example

This is a short usage example of this node. UdpClient node receives current frame number from inlet and send it to the remote server. In this example, I built server as a simple echo server so server returns frame number to the node.

Appendix1

Source code of ParseFrame.py node in above example is as below. Translate frame number form Frame Info Node to simple string.

Appendix2

Sample server’s source code which respond to above example is as below. (Node.js)

Save this code in your machine and kick it.

I’ve already use this node for my own project and will introduce it in the next article.

Blender Sverchok Basics (1)

As I mentioned in the past article, blender sverchok addon is so cool tool to create 3D model by parametric method.

In this article, I introduce basic tips of sverchok. If you find some mistakes in this article, please kindly tell it to my twitter.

Node

Socket

Each node has sockets to comunicate with other nodes. Meaning of the soket color is as follows:

  • Orange: Vertices
  • Green: Edges and any other data
  • Blue: Matrix (like location, rotation and scale)

node

Toggle hide

To toggle hide status of each node, hit “H” key. If your patch has so many node, use this function to hide insignificant information.
Qm5YtxJ2eZ

Connection

Connect

To connect nodes, drag your mouse from one node’s socket to anotehr node’s socket.
Connect node

Disconnect

To disconnect nodes, press CTRL key and drag one terminal of the connection.
Disconnect

Viewer

Toggle visibility of Viewer Draw

To toggle visibility of Viewer Draw, click “Show” button.
Visibility

Blender Sverchok Add-on!

Amazing! I’ve just known Sverchok Blender add-on which enables you to generate 3d object using node-based editor, like Grasshopper in Rhinoceros. Grasshopper is a so famous plugin of Rhinoceros and very useful, but use of Grasshopper is limited to windows os. Sverchok is one of Blender add-on, so of course you can use it on your own mac!

Introduction Movie

This is the introduction movie created by authors of the addon.

How to use it

Firstly, download Sverchok plugin and place downloaded files to your blender addon directory where you place other addon files. After that, launch the blender and enable Sverchok addon at “User Preferences” dialog.
スクリーンショット 2014-03-21 17.02.41

To use Sverchok node editor, you have to open node editor window.
スクリーンショット 2014-03-21 16.52.22

After that, select Sverchok node tree button at the tool bar located at bottom of node editor window.
スクリーンショット 2014-03-21 16.53.43

Finally, you can use Scerchock node editor. You can place nodes from tool shelf located on the left edge of node Editor (If you can not see tool shelf, hit “T” key to see it) or hit “Shift-A” to get the node lists on your screen.
スクリーンショット 2014-03-21 16.59.03

Sample program

I’ve just created  test nodes to generate a face which points are located randomly for Z direction.
SverchokSS
スクリーンショット 2014-03-21 16.31.01

Reference

I peruse this addon and create some node module which is useful for generating model data!