Giter Club home page Giter Club logo

synaptic's Introduction

Synaptic

Synaptic is a very light weight metadata system for maya. You can use it to definte a metadata blob for any given node in a maya scene.

Each metadata block contains its own data storage for any json serialisable information as well as a mechanism to tag other nodes with string look up keys.

Example of Use

import synaptic
import maya.cmds as mc

# -- Create some nodes
node_a = mc.createNode("transform")
node_b = mc.createNode("transform")

# -- Create (or get pre-existing) metadata representing
# -- node_a
meta = synaptic.get(node_a)

# -- Lets store some information in the metadata
meta.set("foobar", 123)
meta.set("is_awesome", True)

# -- Now lets show how we can retrieve that information
if meta.get("is_awesome"):
    print(meta.get("foobar"))

# -- Now lets make a link between node_a and node_b
meta.tag("rainbow", node_b)

# -- We can now retieve node_b from the metadata
# -- using the tag
print(f"Rainbow Node : {meta.find_first('rainbow')}")

synaptic's People

Contributors

ldunhamci avatar mikemalinowski avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

mikfr83 ldunhamci

synaptic's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.