Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    XPresso Material Links Brake when Importing through Command Line

    Cinema 4D SDK
    2
    3
    459
    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.
    • J
      janine.mcmaster
      last edited by janine.mcmaster

      I am using a python script to render through the command line in R23. I have the render set up in a .pyp and then I start cinema4d using the .exe in the command line. Before my script renders, it imports and merges in another .c4d where I have saved my Redshift material. If the material is XPresso, all the links in the material graph break on import. I need to use XPresso materials because I want to be able to dynamically change the rounded edges radius using the python API. This does not seem possible with node materials (which do not break on import through the command line). This behavior also does not exist when running the python script using the python interpreter in the c4d GUI. Any help would be greatly appreciated! Thank you in advance!

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @janine.mcmaster
        last edited by

        Hello Janine,

        thank you for reaching out to us. Unfortunately, your question is rather hard to answer in its current form, since it is lacking important information. Key points would be the plugin interface you are using in your pyp file, how that plugin is invoked by a scene and some example code. I am also struggling as bit with the term "the .exe in the commandline". Do you mean commandline.exe with that? You can find out more about asking technical questions and what will give you better chances on receiving a fast and precise answer in our Forum Guildelines. You can also share code privately with us as described in the forum guidelines when you code does contain confidential data.

        To your question: Without code and more information, I cannot say much here. But the whole scenario could be an active document issue, i.e, that your code relies in some form on the active document, and this fails under certain conditions, as then the active document is not what you expect it to be. But that is very speculative and vague.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by

          Hello @janine-mcmaster,

          without any further replies or questions, we will consider this thread as solved by Thursday and flag it accordingly.

          Thank you for your understanding,
          Ferdinand

          MAXON SDK Specialist
          developers.maxon.net

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