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

    Create a nullobjet

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 353 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 03/07/2014 at 08:33, xxxxxxxx wrote:

      Hi,
      I'm looking for the command to create a nullobject.
      In the documentation i find Spline, Camera, ...
      But not a nullobject.

      thanks a lot

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

        On 03/07/2014 at 15:31, xxxxxxxx wrote:

        OK,
        I found it by myselve 🙂

          
        obj = c4d.BaseObject(c4d.Onull)          
        obj.SetMg(m)   
        doc.InsertObject(obj)   
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 04/07/2014 at 03:19, xxxxxxxx wrote:

          No need to add "obj.SetMg()".
          The null is automatically placed at 0,0,0.
          Also best to add at the end "c4d.EventAdd()".

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

            On 04/07/2014 at 04:09, xxxxxxxx wrote:

            Hi PGROOF

            Thanks for yout answer
            I want to set the possition of the obj

            In my second post i askt how to define the matrix

            obj.SetMg(Matrix)
            Thanks

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