Giter Site home page Giter Site logo

Asset ID about core HOT 2 CLOSED

getavalon avatar getavalon commented on August 11, 2024
Asset ID

from core.

Comments (2)

mottosso avatar mottosso commented on August 11, 2024

Some progress on this.

Proposed database layout

{
	"f034a4b": {
		"type": "asset",
		"name": "Bruce",
		"path": "{projectdir}/assets/{name}",
		"parent": null,
		"children": [
			"b07deyha",
			"u02f0dyh"
			"046kdaog"
		]
	},
	"b07deyha": {
		"type": "subset",
		"name": "modelDefault",
		"path": "{parentdir}/{name}",
		"parent": "l35dsog3",
		"children": [
			"od45qffl",
			"l35dsog3",
		]
	},
	"l35dsog3": {
		"type": "version",
		"name": "v001",
		"path": "{parentdir}/{name}",
		"parent": "b07deyha",
		"children": [
			"dre0463f",
			"ked4g9af",
		],
		"metadata": "{parentdir}/{name}/.metadata.json"
	},
	"dre0463f": {
		"type": "representation",
		"path": "{parentdir}/modelDefault.ma",
		"parent": "l35dsog3",
	}
}

This would require..

  1. Upon creating a new project, a new database is created
  2. Upon creating a new asset, an entry is made
  3. For each published subset, an entry is made
  4. For each version and representation, entries are made

Requirements 1 and 2 are currently not possible due to both projects and assets being created by primitive Windows-specific .bat files. What would need to happen is for the Terminal API to be written in a higher level language with the ability to open and modify the database which would be JSON for starters, Firebase later and eventually a self-hosted equivalent such as MongoDB.

from core.

mottosso avatar mottosso commented on August 11, 2024

Implemented in #116.

Every project, asset, subset, version and representation now have a unique address accessible via find.

from mindbender import io
asset = io.find({"_id": "unique_id_here}
asset["name"] == "Bruce"

from core.

Related Issues (20)

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.