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

    Object type via console

    Scheduled Pinned Locked Moved PYTHON Development
    8 Posts 0 Posters 595 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 30/10/2015 at 12:00, xxxxxxxx wrote:

      I am very excited to start into python via cinema.

      In R16 I am attempting to drag an object into the console command line... expecting to see the object type in the console. Unfortunately, nothing shows up unless I hit return. The information that shows is the following [for a Null]:

      <c4d.BaseObject object called 'Null/Null' with ID 5140 at 0x118f9b370>
      

      This is helpful, but I'm looking for information regarding the type. What I expect to see [following cineversity scripting tutorial] is the following:

      The object 'Null' (Onull) was added as 'Null'
      

      The (Onull) being the important aspect, so I know how to find object types.

      Any suggestions will be greatly appreciated! I hope there are few settings I'm missing as I get started...

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

        On 30/10/2015 at 12:22, xxxxxxxx wrote:

        Welcome to the forum Clark!
        If you drag the object to the consoles commandline and add: .GetType() You will get the object type printed.
        Nothing comes for free with Python in Cinema 🙂

        -b

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

          On 30/10/2015 at 13:17, xxxxxxxx wrote:

          Thank you, Bonsak!

          Although this isn't correct location for this question, could you possibly point me toward decent tutorials regarding Python in Cinema?

          -clark

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

            On 30/10/2015 at 14:01, xxxxxxxx wrote:

            Do you have any previous experience with Python?
            Or other programming languages?

            -b

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

              On 30/10/2015 at 14:08, xxxxxxxx wrote:

              yes, I am comfortable programming with processing [Java, JS], and have a bit of experience with Python.

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

                On 30/10/2015 at 14:19, xxxxxxxx wrote:

                Good!. If you have access to Cineversity there is quite a few tutorials there.
                If you happen to have a FXphd subscription i can recommend this course that Michael Auerswald made: https://www.fxphd.com/fxphd/courseDetails.php?idCourse=339

                I would urge you to take the time to study the Python API even though it can seem a little hard to get into in the beginning, you will be rewarded in the end 🙂

                There's also quite a few script and plugin examples included in the DL version of the Python API. You can find that here: [URL-REMOVED]

                Besides that i'd say that this forum is a good place to get advise and hints as it's frequented by both Maxon developers and a lot of other people that know a lot about python in cinema.

                -b


                [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

                  On 30/10/2015 at 14:26, xxxxxxxx wrote:

                  Great, this helps tremendously!

                  Thank you for taking the time and I hope to be posting examples of my efforts soon.

                  -clark

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

                    On 30/10/2015 at 14:31, xxxxxxxx wrote:

                    Good luck 🙂

                    -b

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