Hey All,
I am trying to include a string into a json dump text file through the python node. The .json file output correctly but the printing of the variable isn't working.
I am basically feeding an objects name [string] into my python nodes input called "obj_input" but keep getting error message in the console saying "NameError: name 'obj_input' is not defined". How would I go about defining it?
Python node:
import c4d
import os
import json
path = '/Users/user/Desktop/json_export' + '/test.json'
with open(path, 'w') as outfile:
json.dump(obj_input, outfile)