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

    Adjust spline layers settings in Field Force Objects with Python?

    Scheduled Pinned Locked Moved Cinema 4D SDK
    r25python
    2 Posts 2 Posters 24 Views 1 Watching
    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.
    • S Offline
      Simon Lucas
      last edited by Simon Lucas

      In r25, using Python, I am automating the set up of many objects in a scene, that use and link together Emitters, Spline, Field Forces, and Turbulance Objects

      So far I have acheived all I need to do, but I have become quite stuck when it comes to configuring Spline layers in the Field Forces.

      I have been reading the Python SDK manual on Field LIsts, Field Layers, and have found a helpful example in the forum where a Spline can be added to a deformer using Python - that helped me to get started:

      https://developers.maxon.net/forum/topic/14745/add-remove-modify-fieldlist-with-python/3?_=1763568090346

      I have used that to add splines to Field Force Objects - both under Object tab's field list and under the Fields tab's list. And am able to adjust things like Velocity type, and Strength.

      But I now need to adjust the settings on the Spline Field Layers under the Object tab.

      Eg.
      a. Direction->Length and Direction->Invert
      b. Layer-> DIstance Mode
      and also
      c. And access the Remapping settings on the Spline Layer in the Fields tab.

      This is my first post here and I hope I have described this well enough to ask the question. I cannot find any example that deals with this, or even know whether it is possible with Python.

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF Offline
        ferdinand @Simon Lucas
        last edited by ferdinand

        Hey @Simon-Lucas,

        Welcome to the Maxon developers forum and its community, it is great to have you with us!

        Getting Started

        Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.

        • Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
        • Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
        • Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.

        It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: How to Ask Questions.

        About your First Question

        Do you really mean you are on R25? Or do you mean you are on 2025? Anyway, please share an example scene and the code you have so far. Otherwise we won't be able to help you.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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