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

    vertex manipulation

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 297 Views
    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.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 28/12/2013 at 20:01, xxxxxxxx wrote:

          Got it working, thanks.

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