Adjust spline layers settings in Field Force Objects with Python?
-
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:
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.
-
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 on2025? Anyway, please share an example scene and the code you have so far. Otherwise we won't be able to help you.Cheers,
Ferdinand