Jump to content

Christian Johansson

Limited Member
  • Posts

    3
  • Joined

  • Last visited

HW | SW Information

  • DCC
    C4D R25 117
  • Texturing
    SP2
  • Renderer
    Redshift, Octane
  • OS
    OSX Monterey

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Christian Johansson's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Thanks for this MIGHT, the goal is to build a script that constructs a random constellation of objects (from a library in the file) per each frame in the timeline and spit out a json file for each frame outlining what choices went into the constellation. Going to render a 3D NFT collection so I need to generate meta data. Going to take a look at all your suggestions above and see if I can get it to work.
  2. I am in C4D R25 117 Variable and in-port are named the same, capitalization included. Attached scene file. I am trying a basic test where I try to write the name of the object in the link list into a .json file. python_export_textfile.c4d
  3. 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)
×
×
  • Create New...

Copyright Core 4D © 2023 Powered by Invision Community