Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. lasselauch
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    lasselauch

    @lasselauch

    17
    Reputation
    91
    Posts
    113
    Profile views
    1
    Followers
    2
    Following
    Joined Last Online
    Website www.lasselauch.com Location Hamburg, Germany Age 35

    lasselauch Follow

    Posts made by lasselauch

    • Japanese Language Interface – Problems

      Hi there,

      I'm currently having a japanese customer for my AEC4D-PRO plugin that complains, that the plugin isn't behaving correctly in R23. In older C4D-Versions the plugin seems to behave correctly.

      At first, I thought the problem lies within string encoding. However at further testing, it works for the customer if he changes his "Interface Language" to English. So it's not the typical string encoding when transferring Objects between the two programs.

      I'm actually a bit lost, how this language setup is intertwined with the plugin itself. Sadly, I don't have the time to test the Japanese Language myself, so I thought if anyone has experienced these kind of issues before he or she might jump in and help.

      If you want to test it yourself, feel free to download the 14-day trial here:
      https://aescripts.com/aec4d/

      Thanks so much.

      Cheers,
      Lasse

      posted in Cinema 4D Development
      lasselauch
    • RE: Detect closing of Document

      I guess I found a workaround... I cannot show the whole code involved but something along those lines:

      I have a Treeview that stores an absolute path abs_path of different documents... Now, I just check if one of these filepaths is in my open documents paths via: get_all_docs_paths()

      def get_all_docs_paths():
      
          all_docs_paths = []
      
          first = c4d.documents.GetFirstDocument()
          while first:
              folder = first.GetDocumentPath()
              abs_path = os.path.join(folder, first.GetDocumentName())
              all_docs_paths.append(abs_path)
              first = first.GetNext()
          
          return all_docs_paths
      

      If yes, the document is open, if not it is closed.

      Cheers,
      Lasse

      posted in Cinema 4D Development
      lasselauch
    • RE: Detect closing of Document

      Thanks, @mp5gosu ...!

      @zipit said in Detect closing of Document:

      The easiest way would be to use some kind of plugin node for that. I currently do not see a way to do this in a GeDialog, but I might be wrong. We will discuss that tomorrow in the SDK Team, to see if the others know a clever way to do that. Just wanted to make sure that you do not run down a rabbit hole with no exit ;)

      Hehe, yeah that's exactly what I thought when looking at MSG_DOCUMENTINFO. Thanks for the quick answer, Ferdinand. Looking forward to your thoughts and ideas...

      Cheers,
      Lasse

      posted in Cinema 4D Development
      lasselauch
    • Detect closing of Document

      I basically want to react in my GeDialog if my active document has been closed.
      I'm currently looking at MSG_DOCUMENTINFO but there's no flag for a closed document... one other idea would be to listen to a CallCommand for example via c4d.MSG_DESCRIPTION_COMMAND?

      What would be the best way to approach this..?

      Thanks,
      Lasse

      posted in Cinema 4D Development
      lasselauch
    • RE: Drag and Drop "Command" from Treeview

      @mp5gosu Damn. That's really not the answer I wanted to hear, Robert! 😸

      posted in Cinema 4D Development
      lasselauch
    • Drag and Drop "Command" from Treeview

      Hey everyone,

      I'm currently developing a treeview-plugin for all my scripts/presets etc.. I was wondering if it is possible to drag and drop items of said treeview directly to my layout.

      I'm currently thinking along those lines:

      In my declared ListItem (obj) I have a property of Instance which can hold the reference to the CommandPlugin for each script.

          @property
          def Instance(self):
              # of course this just a placeholder (but a valid one...)
              return c4d.plugins.FindPlugin(600000174)
      

      In the GenerateDragArray I will create an Array with my said Instance/Reference, also I've tried setting different flags for GetDragType to c4d.DRAGTYPE_COMMAND etc....

          def GenerateDragArray(self, root, userdata, obj):
              if obj.IsSelected:
                  return [obj.Instance]
              return None
      
          def GetDragType(self, root, userdata, obj):
              return c4d.DRAGTYPE_COMMAND
      
          def SetDragObject(self, root, userdata, obj):
              return obj.Instance
      

      Drag and Drop "Command" from Treeview

      ...but, sadly it's NOT working as I would expect... :)

      Is this possible with python in general, or a limitation? What am I missing?

      Thanks,
      Lasse

      posted in Cinema 4D Development
      lasselauch
    • RE: developers.maxon.net – Offline?

      Had one aswell....

      explorer_2020-11-23_12-19-58.png

      a rather old one... 🙄 ...haha.

      posted in General Programming & Plugin Discussions
      lasselauch
    • RE: developers.maxon.net – Offline?

      👷 yep, back online... here in hamburg. 😁

      posted in General Programming & Plugin Discussions
      lasselauch
    • developers.maxon.net – Offline?

      Hi there,

      https://developers.maxon.net/ appears to be offline? Is this just a short outage..?

      firefox_2020-11-23_10-37-30.png

      Cheers,
      Lasse

      posted in General Programming & Plugin Discussions
      lasselauch
    • RE: Rename object by filename

      @zipit said in Rename object by filename:

      PS: @lasselauch I know that you meant this in a light-hearted manner, but "let-me-google-that-for-you" can be misconstrued. People have different information needs and things that seem trivial or obvious to you, are not for them. Programming can be a confusing topic and we would like this to be a welcoming place for everyone and subsequently stay away from all "RTFM"-notions.

      Yep, definitely meant in a light-hearted manner!!! :)
      You're totally right.. that's why I provided the correct answer.

      Cheers,
      Lasse

      posted in Cinema 4D Development
      lasselauch