snnib.blender.network.Network.__init__

Network.__init__(network_container: bpy.types.Object, template_neuron: bpy.types.Object, network_file: str = None)[source]

constructor

  • generates a random network if no network_file was found

  • otherwise reads the network from network_file

Parameters
  • network_container
    • bpy.types.Object

    • object representing the network container in the scene

    • bounding box of network_container defines the region the network will occupy
      • neuron coordinates will be remapped to lie within the bounding box

  • template_neuron
    • bpy.types.Object

    • object representing a template to use for every neuron contained in the network
      • neurons in the network are instanced from template_neuron

    • you only need to modify template_neuron in order to procedurally apply the changes to all neurons in the network

  • network_file
    • str, optional

    • file containing a save network to load into SNNIB

    • the default is None
      • use random generation instead of reading from a file

Raises

Returns