SceneVolumetric

Parent
Imports
NodeJS Imports
const {
  	Scene,
  	SceneVolumetric,
  	Server
} = require('@plattar/plattar-api');
Initialisation
Initialise the SceneVolumetric Object
const volumetric = new SceneVolumetric('your-scene-volumetric-id');
.get()
Populate the object with data
volumetric.get().then((volumetric) => {
	// do something with volumetric
}).catch((error) => {
	// do something with error
});
.update()
Update the object with new data
Server.default().auth(process.env.PLATTAR_AUTH_TOKEN);

volumetric.attributes.title = 'your-new-scene-volumetric-title';

volumetric.update().then((volumetric) => {
	// do something with volumetric
}).catch((error) => {
	// do something with error
});
.create()
Create a new object
Server.default().auth(process.env.PLATTAR_AUTH_TOKEN);

volumetric.attributes.title = 'your-new-scene-volumetric-title';

// you must pass the parent object during create function
const parent = new Scene('your-scene-id');

volumetric.create(parent).then((volumetric) => {
	// do something with volumetric
}).catch((error) => {
	// do something with error
});
.delete()
Delete a previous object
Server.default().auth(process.env.PLATTAR_AUTH_TOKEN);

volumetric.delete().then((volumetric) => {
	// do something with volumetric
}).catch((error) => {
	// do something with error
});