Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Change Dialog Text color

    Cinema 4D SDK
    2024 python
    3
    4
    493
    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.
    • M
      momoko
      last edited by

      Hello guys,

      I have a dialog ... Can I change display color of a specific id which belongs to a text?

      DunhouD 1 Reply Last reply Reply Quote 0
      • DunhouD
        Dunhou @momoko
        last edited by

        Hi @momoko ,

        You can try SetDefaultColor, it should do want you want.

        Cheers~
        DunHou

        
        TEXT_COLOR_GREEN = c4d.Vector(0.424, 0.898, 0.51)
        
        self.SetDefaultColor(self.ID_TXT, c4d.COLOR_TEXT,  TEXT_COLOR_GREY)
        

        https://boghma.com
        https://github.com/DunHouGo

        1 Reply Last reply Reply Quote 0
        • M
          momoko
          last edited by

          @Dunhou Thanks a lot!

          i_mazlovI 1 Reply Last reply Reply Quote 0
          • i_mazlovI
            i_mazlov @momoko
            last edited by

            Hello @momoko ,

            Welcome to the Maxon developers forum and its community, it is great to have you with us!

            Getting Started

            Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.

            • Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
            • Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
            • Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.

            It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: Asking Questions.

            About your First Question

            Thanks to @Dunhou for providing correct solution!

            Cheers,
            Ilia

            MAXON SDK Specialist
            developers.maxon.net

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