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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Add Data to Cycle

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 386 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 30/07/2016 at 14:14, xxxxxxxx wrote:

      Hi everybody ! 😄
      I got a litlle problem for adding new data to a cycle button.
      Its a tag then I go through a res file (here is the probleme since without a norma GeDialog is easy to do ^^).
      My goal is to have a dynamic cycle data fetched with a json file.

      Here is my github project in the actual state (it will be more easier for you for testing ^^)
      https://github.com/gr4ph0s/RefractiveIndex-Importer
      In RefractiveIndex.pyp look for line 123 its here I tried some s**t for making it working 😛

      I'm currently asking if a tag is a good choice but since we can't have a proper splineGUI in GeDialog(I mean we can't copy spline data to another SplineControl by doing right click => Copy and paste on the other SplieGUI.)

      If someone got a solution I would love him !!! 😄

      Thanks in advance ! 🙂

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

        On 01/08/2016 at 08:11, xxxxxxxx wrote:

        Hi,

        it is currently not possible in Python to dynamically change the content of a Cycle box, as you'd need to implement GetDDescription() (link to C++ docs, as it's not available in Python, yet).
        Good news is, with R18 Python will be extended for dynamic descriptions.
        Until then you maybe could work around this using a User Data Cycle box.

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

          On 01/08/2016 at 09:28, xxxxxxxx wrote:

          Thanks for the answer Andreas.

          Btw using UD is not the cleaner way since we can't rename UD tab but it will work as excepted.

          Just to be sure its actually not possible to manually copy spline data in a GeDialog?(it will be nice in the future to be able to do this and I guess it's not too hard to implement ^^)

          Thanks you anyway 🙂

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

            On 02/08/2016 at 02:36, xxxxxxxx wrote:

            Hi,

            I never said using User Data would be the cleaner way. I just mentioned it as a possible workaround, as long as you don't have another option in Python.

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