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

    CallButton: Bitmap Animation - Calculate [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 512 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 28/04/2015 at 21:32, xxxxxxxx wrote:

      Hello,

      I'd like to be able to call 2 built in Cinema 4D Buttons.

      1. In a bitmap shader Animation tab, the Calculate  button - frame ranges, frame rate.
      2. In a Texture tag, Camera projection, Calculate Aspect Ratio button.

      I am fairly sure I know how to do this using the  c4d.CallButton() method, but I have no idea on how to find out what the ID of the button is, or exactly how I should write such code.

      Also, I'd love any pointers in how I can find out other various ID's for objects and tags inside of Cinema that aren't obvious. It seems to me. the SDK doesn't cover this is great detail.

      Any help would be great.

      Kind Regards

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

        On 29/04/2015 at 08:39, xxxxxxxx wrote:

        Hello,

        when you write a plugin in Cinema 4D this includes the creation of header and resource files. These resource files and header files include the symbols of the GUI elements. Many elements of Cinema 4D are modules that work like plugins so you can find their resource files in the resource\modules folder of your Cinema installation. The C++ documentation includes the symbols defined in that header files.

        But you can also simply drag and drop (most) parameters from the Attribute Manager into the console; then the symbol identifier will appear there. You find information on that in the Cinema 4D documentation of the Console window or in the Python documentation.

        So the identifiers for the buttons you talk about are and BITMAPSHADER_CALCULATE  and TEXTURETAG_CAMERA_CALCULATE.

        Best wishes,
        Sebastian

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

          On 30/04/2015 at 21:58, xxxxxxxx wrote:

          Again, this is very helpful and will help answer many other questions to come I am sure!

          Thanks very much Sebastian.

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

            On 02/05/2015 at 23:30, xxxxxxxx wrote:

            It should be pointed out that the calculate button has a long-time known bug that causes it to set the fps incorrectly.

            See my post here on how to do it the foolproof way: https://developers.maxon.net/forum/topic/8699/11396_readwrite-keyframes-with-custom-datatype-solved

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