Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Maya

import json
from AtomsMaya.hostbridge.atomsnode import MayaAtomsNodeHostBridge


#importing scene json data
file = open("/path/to/scene/data.json", 'r')
data = json.load(file)
file.close()

MayaAtomsNodeHostBridge.merge_data(data)


#exporting scene json data
data = MayaAtomsNodeHostBridge.get_json_data()

file = open("/path/to/scene/data.json", 'w')
json.dump(data, file)
file.close()


#import variation json data
file = open("/path/to/variation.json", 'r')
data = json.load(file)
file.close()

MayaAtomsNodeHostBridge.merge_variation_data(data)


#export variation json data
data = MayaAtomsNodeHostBridge.get_variation_data()

file = open("/path/to/variation.json", 'w')
json.dump(data, file)
file.close()

Houdini

import json
from AtomsHoudini.hostbridge.atomsnode import HoudiniAtomsNodeHostBridge


#importing scene json data
file = open("/path/to/scene/data.json", 'r')
data = json.load(file)
file.close()

HoudiniAtomsNodeHostBridge.merge_data(data)


#exporting scene json data
data = HoudiniAtomsNodeHostBridge.get_json_data()

file = open("/path/to/scene/data.json", 'w')
json.dump(data, file)
file.close()


#import variation json data
file = open("/path/to/variation.json", 'r')
data = json.load(file)
file.close()

HoudiniAtomsNodeHostBridge.merge_variation_data(data)


#export variation json data
data = HoudiniAtomsNodeHostBridge.get_variation_data()

file = open("/path/to/variation.json", 'w')
json.dump(data, file)
file.close()
  • No labels