Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Encoding a BaseTag/BaseObject

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 124 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 05/09/2014 at 19:00, xxxxxxxx wrote:

      I am writing a text file in Python, and want to use either Python's Pickle or JSON. When writing a tags locator, I get an error "is not JSON serializable"...

      If I make it a string, then it will write. But then when I read the file, It reads a string and not the object..

      Here's what I need to write:
      <c4d.BaseTag object called 'Test/Test' with ID 10000001at 0x11bcf38f0>

      Any ideas? I just need to save references of an object to a text file, then call it.

      Thanks,
      Joe

      1 Reply Last reply Reply Quote 0
      • First post
        Last post