vertex manipulation
-
On 15/12/2013 at 18:26, xxxxxxxx wrote:
Hi all,
I'm pretty new to scripting Cinema 4D with Python. I'm trying to figure out how to manipulate individual vertices via Python and not having much luck. At the moment I'm just instantiating a box and I'd like to be able to translate its points to get the hang of it. Do I need to make it editable somehow, or do I have direct access to them after I instantiate it this way:
cube = c4d.BaseObject(c4d.Ocube)
Any help is appreciated, thanks!
Jake
-
On 16/12/2013 at 09:44, xxxxxxxx wrote:
No parametric objects are sealed like they are in the editor. You have either to convert them
to a PolygonObject (there are several ways, use the search function) or alternatively you could
instantiate a PolygonObject directly. The vertices are then accessed with the methods of
PointObject, the parent class of PolygonObject. -
On 28/12/2013 at 20:01, xxxxxxxx wrote:
Got it working, thanks.