Works like a charm, thank you!
in this thread it is explained how to set the size of the IRR.
I would also like to set parameters like the resolution.
When dragging the GUI element into the console it says:
and when I execute it without the ID I get
<c4d.BaseList2D object called Sniper/Sniper with ID 430000000 at 4756143680>
How can I get access to this inside a script?
works like a charm, thank you!
now with the updated Vector Import object in S26 I thought there might be a more elegant way to import an SVG directly to a spline.
But after playing around with it for a bit I am struggling to extract the spline from the setup using python only.
Here is my code:
vector_import = c4d.BaseObject(1057899)
# set file path
file_path = os.path.join(SVG_PATH, self.file_name + ".svg")
vector_import[c4d.ART_FILE] = file_path
# extract spline from hierarchy
vector_import[c4d.ART_SHOW_HIERARCHY] = True
spline = vector_import.GetDown().GetDown().GetDownLast()
The problem seems to be that even after calling the reload button and c4d.EventAdd() which makes the hierarchy containing the spline visible in the GUI, C4D does not recognise that the vector_import object now has children.
Help would be appreciated!
I found a code sample here which does the job
Sorry for the late reply, my issue went away after reinstalling C4D so I forgot about it
Thank you for your feedback
I want to link an already existing linear field to an effector.
For that I need to provide/update a c4d.FieldList object. But in the SDK I don't understand how to insert objects into the list.
help would be greatly appreciated
I am trying to set up pip on my new machine but keep running into this error:
Davids-MBP-2 Maxon Cinema 4D R26 % c4dpy -m get-pip.py
sysctl: No such file or directory
Thank you so much!
I was really delighted to hear that svg import is now supported natively in S25. But the only method I am aware of so far is via drag and drop.
I would like to import an svg file using only its path as input in a python script. Is there a way to do that?