Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. Tags
    3. application development
    Log in to post

    • Y

      SOLVED compiling for r20 new solution
      Cinema 4D Development • r20 c++ sdk application development • • Yaroslav  

      4
      0
      Votes
      4
      Posts
      26
      Views

      Y

      @PluginStudent Thank you so much! It worked! Yaroslav.
    • M

      SOLVED Difficulty with cloners and and lifetime of objects
      Cinema 4D Development • c++ sdk api microsoft windows r23 apple macos application development • • mastergog  

      13
      0
      Votes
      13
      Posts
      112
      Views

      M

      All right, thank you for all the help. I'll close this now.
    • Detect closing of Document
      Cinema 4D Development • python api classic api application development • • lasselauch  

      7
      0
      Votes
      7
      Posts
      52
      Views

      Hi @lasselauch, we talked about your problem this morning. There are two ways of looking at your question: You are interested in the event of a closing document (i.e. present progressive) and you want to react to that event by making some changes before this process is finalized (i.e. the document closed). As already stated yesterday by me, there is currently no way to do that in a GeDialog. You will need some kind of node for that. It is also noteworthy that currently CommandData is bugged in this regard in Python. As @mp5gosu already pointed out, MessageData is a really good way to go, unless you do not have already something like TagData plugin where you could squeeze in that functionality. You are interested in the state of the loaded documents list, i.e. if a document has closed (past tense), but not exactly when it happens. This is possible in a dialog. You already provided your own answer here (thanks for making it visible to everyone). The basic idea is just to build some hashmap/list to compare against what Cinema considers to be loaded documents. As an added note, you might want to look at GeDialog.Timer, which will let you execute things in fixed intervals, in order to get closer to the point of when something happened. This won't be to much of a performance strain if implemented carefully. Cheers, Ferdinand
    • SOLVED Drag and Drop "Command" from Treeview
      Cinema 4D Development • python api classic api issue application development limitation • • lasselauch  

      6
      0
      Votes
      6
      Posts
      51
      Views

      Hi, I understand that this thread has not yet come to a final conclusion, but without further feedback, we will consider this thread as solved by Monday and flag it accordingly. Cheers, Ferdinand
    • Plugin not loaded in R23 on macOS
      Cinema 4D Development • python api issue r23 bug report application development apple macos • • lasselauch  

      14
      1
      Votes
      14
      Posts
      96
      Views

      Python plugins do not work reliably in R23 on OSX 10.13.6. The C4D minimum spec is for 10.14.6 as Riccardo mentioned. And even if you try to debug a plugin on 10.13.6 what you will notice is that many calls (such as print) don't even work on this OS. So you can't even write anything out to the console to see what the problem might be. No amount of re-installing C4D will help you at all. You just have to let your customers know that the minimum spec for R23 is 10.14.6 and not guarantee any support for anything below that spec.
    • M

      SOLVED Cannot set ID_BASEOBJECT_USECOLOR to a child object.
      Cinema 4D Development • c++ sdk api classic api r23 maxon api application development • • mastergog  

      4
      0
      Votes
      4
      Posts
      46
      Views

      M

      @m_adam Yay thank you very much! Was almost ready to compromise with the default color. Will use the Q&A functionality, excuse me for the posts so far. Warm regards, Georgi.
    • E

      SOLVED Tracking object lifetime in a scene
      Cinema 4D Development • c++ r23 maxon api application development • • ECHekman  

      4
      0
      Votes
      4
      Posts
      57
      Views

      Hi, without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly. Cheers, Ferdinand
    • SOLVED BaseDraw – DrawLine2D – Transparency?
      Cinema 4D Development • classic api application development feedback • • lasselauch  

      5
      0
      Votes
      5
      Posts
      95
      Views

      Hi, without further feedback, we will consider this thread as solved by tomorrow and flag it accordingly. Cheers, Ferdinand
    • Emojis - macOS vs. Windows
      Cinema 4D Development • python microsoft windows application development apple macos general notes • • lasselauch  

      4
      0
      Votes
      4
      Posts
      46
      Views

      why do you think C4D has any special handling for emojis? The font rendering is OS dependent, so any kind of text - including emoji codepoints - is drawn by the underlying operating system routines. Anything else would mean a ridiculous effort by Maxon to replicate font behavior. (I do not know how Windows internally handles emojis, I doubt that every available font has all these characters so most likely certain codepoints are mapped to common glyphs regardless of the font... but that is not a C4D question anyway.)
    • S

      SOLVED Radio button groups in two columns
      Cinema 4D Development • python application development • • stanDM  

      6
      0
      Votes
      6
      Posts
      84
      Views

      S

      Hi Maxime, it now works great, thank you very much for your support! Cheers, Stan
    • SOLVED TreeView Multiple Selection With LMB
      Cinema 4D Development • c++ r21 application development • • Danchyg1337  

      13
      0
      Votes
      13
      Posts
      116
      Views

      @m_adam Now i see the problem. Thanks alot for helping!
    • SOLVED Custom mouse icon, define touch point.
      Cinema 4D Development • python application development • • RenatoT  

      4
      0
      Votes
      4
      Posts
      55
      Views

      Anyway, i'll add my custom offset to the mouse coordinate to match the point from the center, as seem by default.
    • N

      UNSOLVED Directory UI component ?
      Cinema 4D Development • python application development • • nicholas_yue  

      2
      0
      Votes
      2
      Posts
      29
      Views

      M

      Hi @nicholas_yue this can be done with the CUSTOMGUI_FILENAME Here a complete example import c4d class ExampleDialog(c4d.gui.GeDialog): def CreateLayout(self): """ This Method is called automatically when Cinema 4D Create the Layout (display) of the Dialog. """ settings = c4d.BaseContainer() settings[c4d.FILENAME_DIRECTORY] = True self.AddCustomGui(1000, c4d.CUSTOMGUI_FILENAME, "", c4d.BFH_SCALEFIT | c4d.BFV_CENTER, 0, 0, settings) # Creates a Ok and Cancel Button self.AddDlgGroup(c4d.DLG_OK | c4d.DLG_CANCEL) return True def Command(self, messageId, bc): """ This Method is called automatically when the user clicks on a gadget and/or changes its value this function will be called. It is also called when a string menu item is selected. :param messageId: The ID of the gadget that triggered the event. :param bc: The original message container :return: False if there was an error, otherwise True. """ # User changed the file path if messageId == 1000: print(self.GetFilename(1000)) # User click on Ok button if messageId == c4d.DLG_OK: print(self.GetFilename(1000)) return True # User click on Cancel button elif messageId == c4d.DLG_CANCEL: print("User Click on Cancel") # Close the Dialog self.Close() return True return True def main(): # Creates a new instance of the GeDialog dlg = ExampleDialog() # Opens the GeDialog, since it's open it as Modal, it block Cinema 4D dlg.Open(c4d.DLG_TYPE_MODAL_RESIZEABLE, defaultw=300, defaulth=50) if __name__ == "__main__": main() Cheers, Maxime.
    • N

      SOLVED Keeping text and edit UI component horizontally
      Cinema 4D Development • python application development • • nicholas_yue  

      3
      1
      Votes
      3
      Posts
      27
      Views

      M

      Hi @nicholas_yue I confirm the correct way is to define the number of columns you want in a group. Please next time, post on the correct forum see How to post a Question, to set up tags and be sure to set up your topic as q question(QA Functionality. Cheers, Maxime.
    • Y

      SOLVED Shader plugin & object
      Cinema 4D Development • r21 application development • • yac4duser  

      7
      0
      Votes
      7
      Posts
      107
      Views

      Y

      I have time and you have my attention sir Manuel! I'm looking forward for this :) I think adding this feature to C4D will be a good improvement... at least, for those who are interested in. Thank you again
    • SOLVED Change Color of Hyperlink Customgui
      Cinema 4D Development • python classic api application development • • lasselauch  

      3
      0
      Votes
      3
      Posts
      62
      Views

      Okay! Thanks for the info @m_adam ! Oh, and on macOS it is General - Text - Flag Edit Saved ¯_(ツ)_/¯ Cheers, Lasse
    • G

      SOLVED Insert String Info Into AddStaticText dialog command
      Cinema 4D Development • python application development • • geese780  

      3
      0
      Votes
      3
      Posts
      57
      Views

      G

      Thanks Maxime, understood on the rules and regulations, sorry about that. I understand the group concept now, read up more on it and I have a better idea on how to approach the goal I'm trying to get to. I have another error I'm getting but I'll try to do another post and see if I tag it right! Thanks for your time! Cheers! MattG
    • SOLVED Design Choices for shared variables across Plugins & Classes
      Cinema 4D Development • python issue application development 3d concept module • • lasselauch  

      4
      0
      Votes
      4
      Posts
      101
      Views

      M

      hello, I will consider this thread as solved without new information from you :) Cheers, Manuel
    • SOLVED How do I access Redshift AOV settings from Python?
      Cinema 4D Development • python r21 sdk application development request • • jcooper  

      3
      0
      Votes
      3
      Posts
      149
      Views

      Wow, thanks for the example, @r_gigante. Was it always possible to import a redshift module? Or is there any info from which version on (C4D / Redshift) this is possible!? Thanks, Lasse
    • SOLVED SetData() with FindCustomGui / CUSTOMGUI_BITMAPBUTTON
      Cinema 4D Development • python classic api issue application development • • lasselauch  

      4
      0
      Votes
      4
      Posts
      71
      Views

      M

      @lasselauch said in SetData() with FindCustomGui / CUSTOMGUI_BITMAPBUTTON: there's no way to flush a single Element and insert at that position, right? It has to be a group For what I know, correct. Cheers, Manuel