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

    How to hide the origin data of object

    Scheduled Pinned Locked Moved PYTHON Development
    10 Posts 0 Posters 858 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 16/11/2015 at 11:34, xxxxxxxx wrote:

      Hello there,

      by searching the web I board find "how to hide user data" but not how to hide the origin data of an object.
      in my exemple, is it possible to hide some data of Text Object with python?

      see image below:

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

        On 17/11/2015 at 01:48, xxxxxxxx wrote:

        Hello,

        you cannot change the display of parameters of another object.

        If you just want to present a simplified user interface you could add the needed parameters as userdata to your python tag. When these parameters are changed, you could catch that event and copy the values onto the host object.

        Best wishes,
        Sebastian

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

          On 20/11/2015 at 07:30, xxxxxxxx wrote:

          Thanks Sebastian for your replay!

          I wanted to divert a problem that I had met, I think that it is not possible to find a solution to solve this problem using python tag.

          In fact, I sought a solution to change the default icon of a null object.

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

            On 20/11/2015 at 11:52, xxxxxxxx wrote:

            The icons are all in an external file so you can edit them with a paint program, so if it's only the default icon, you can do that...

            (I am rarely doing that any more b/c the icons are changed with every version, being all in one single file... but sometimes it helps with a custom interface)

            If you want to change the icon dynamically depending on some settings, then that won't work of course. Ultimately the object tells the C4D GUI which icon it wants to use, I don't think that you can control that from the outside.

            However: A Null object doesn't exactly do a lot beyond the default behavior of a BaseObject. So, you may be able to program (in a simple way) a Python or C++ object that provides no geometry, essentially being a Null. This object could show any icon you want, even dynamically, and you might provide a way to change the icon from the outside by sending it self-defined messages, or by providing a method for direct access by other objects.

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

              On 21/11/2015 at 04:57, xxxxxxxx wrote:

              Aka Container Object

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

                On 22/11/2015 at 17:15, xxxxxxxx wrote:

                Container Object it is a great plugin, but in my case, as I want to market my product, I think that is not a good idea to use a external plugin.
                The latter requires the installation of this plugin to be able to use my product.

                Thanks for all your suggestions guys.

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

                  On 23/11/2015 at 07:13, xxxxxxxx wrote:

                  You won't get around making a plugin if you want a custom icon for your object, so the user will have
                  to install a plugin anyway. You can include the plugin in your product download as long as you link to the
                  source on the GitHub repository.

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

                    On 23/11/2015 at 09:43, xxxxxxxx wrote:

                    I had already thought about this idea but this plugin is not compatible with R12 & R13 and this presents problem for the user who uses a lower version to R14.
                    For this project i have abandoned the idea to custom icons. For my future projects I hope to use the SDK, I think is it the right choice.

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

                      On 23/11/2015 at 09:51, xxxxxxxx wrote:

                      It certainly is compatible, you only have to compile it with R12. 😉

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

                        On 23/11/2015 at 10:09, xxxxxxxx wrote:

                        Oh Thank! Good news, I hope that the version compiled with R12 will be compatible with the higher version to R12 it will relieve me to include several version of Container Object in my product download.

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