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

    UberTracer: Trying to access an input dynamically

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 247 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 24/07/2013 at 17:17, xxxxxxxx wrote:

      I am trying to set  Trace Link A in the UberTracer plugin in a python script.

      The python console tells me that the Element ID for the  Trace Link A  input is 
      _
      _
      _   UberTracer[c4d.UBERTRACER_ELEMENTS1]. _
      _
      _
      I then am  trying to access the Trace Link A field like this
      _
      _
      _    uberTracer = doc.SearchObject("UberTracer")   #returns a valid object_
      _    lst = tracer[c4d.UBERTRACER_ELEMENTS1]_
      _    print type(lst)_
      _
      _
      which prints

      < type 'NoneType'>

      Analogous code works for the regular Tracer object.

      What am I doing wrong?
      _
      _
      Thanks.

      --8

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 16/08/2013 at 16:24, xxxxxxxx wrote:

        Juste in case, your code shouldn't work because of the name of your variables (uberTracer and after tracer[blabla])

        but anyway, i think this will return None until you put an element in the list.

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