• Adding an Icon to a GeDialog Menu Group

    Cinema 4D SDK python sdk windows
    10
    1
    0 Votes
    10 Posts
    1k Views
    ?
    @zipit Thank you, Ferdinand, for looking into it!
  • 0 Votes
    2 Posts
    434 Views
    M
    Hi thanks for the report this was already reported in Phong Tag with ObjectData and this is going to be fixed in the release after R23 SP1. Cheers, Maxime.
  • 1 Votes
    4 Posts
    469 Views
    ferdinandF
    Hi, I did not really expect an answer, I just did put it up to make you guys aware. Regarding your reply, I agree with most of it and am aware that there a some hurdles to overcome in mapping C++ interfaces to Python, i.e. that you do run into problems in general when you want to express overloaded methods in Python. But as @mp5gosu pointed out, my major point was that the function does not accept named arguments at all. Which is mainly a problem because the docs tell you explicitly otherwise in two ways. First of all the docs say explicitly that all arguments are optional which implies for Python usually that I can pick and choose in which arguments I can pass by passing named arguments. And secondly, you print out the signature as Vector.__init__(x=0.0, y=0.0, z=0.0) which implies the same. I would have probably ignored all this and booked it under "that's for me to know and for you to find out", if it wasn't for the fact that the method does not raise a TypeError on attempts of feeding it with such unknown named arguments. Which can make this quite critical IMHO. Cheers, zipit
  • Error reading resource Line 1

    Cinema 4D SDK r20 c++ python windows
    3
    0 Votes
    3 Posts
    905 Views
    B
    After a LOT of testing around I finally found the culprit. The header file was encoded UTF-8 with BOM. I finally figured it out after noticing that two versions of the header file that worked or didn't work had a 3 byte difference in file size. No idea how that snuck in there, but now it finally works. Also now it makes sense that the error was pointing to line 1.
  • 0 Votes
    5 Posts
    1k Views
    B
    Thank you very much, Manuel! This is a working solution for the issue and it helped me a lot! Best regards, Tim
  • 0 Votes
    6 Posts
    913 Views
    M
    Hi @lasselauch sorry for the late reply, I asked about the developer responsible for it. On Windows we use the WebView control of the last iteration of iexplore MS shipped for 8.1 - Internet Explorer 11 (user-agent ID: "Trident"). It supports >most< things other modern browsers do, but sadly not everything... Especially the JS support has become a problem since IE11 is missing parts of the ECMA 6 standard and needs 'polyfills' to emulate those. Many JS frameworks / libraries don't offer IE11 compatibility and instead rely on the developer to add those polyfills themselves. One of the improvements IE11 received back then was the developer console+tools so the user could use those to track > down the JS issues and resolve them." I also forwarded your request about the ability to disable Javascript, but so far nothing planned atm, so the only workaround I see is either fix your javascript framework (maybe a huge task) or you can disable your javascript based on the user agent and if it's an IE11. Hope this help, Cheers, Maxime.
  • Emojis - macOS vs. Windows

    Cinema 4D SDK
    4
    3
    0 Votes
    4 Posts
    1k Views
    CairynC
    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.)
  • R23 plugin windows 10 error

    Cinema 4D SDK r23 c++ windows
    7
    0 Votes
    7 Posts
    1k Views
    ManuelM
    @adam_k_garner said in R23 plugin windows 10 error: . Any idea why this ONE person had the issue on Windows 10? I've move your other question to a new post. Let's try to fix your issue there if we can help Cheers, Manuel
  • C4D in VirtualBox... no viewport displayed

    Cinema 4D SDK windows r21 s22
    3
    0 Votes
    3 Posts
    565 Views
    fwilleke80F
    I guess VirtualBox is just not a good choice then. Damn. But thanks for the answer! Cheers, Frank
  • Merge IsolateObjects into a second document

    Cinema 4D SDK r20 python windows
    2
    0 Votes
    2 Posts
    528 Views
    ManuelM
    hi, you have to save the document to memory and use the result to merge the document. When you merge, you have to set the flags to what you want to merge, otherwise it will not merge what you want. On this example i'm merging a document with another selected document. import c4d from c4d import gui # Welcome to the world of Python # Main function def main(): obj = doc.GetActiveObject() if obj is None: return # Isolate the active object isolateDoc = c4d.documents.IsolateObjects(doc, [obj]) # Creates the Memory File Strcuture mfs = c4d.storage.MemoryFileStruct() # Sets the mfs to write mode mfs.SetMemoryWriteMode() # save the document to mfs c4d.documents.SaveDocument(isolateDoc, mfs, c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST, c4d.FORMAT_C4DEXPORT) # retrieve the data data = mfs.GetData() # Set the MFS to read mode mfs.SetMemoryReadMode(data[0], data[1] ) flags = c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS # Load Document selectedFile = c4d.storage.LoadDialog() if selectedFile is None: return newDoc = c4d.documents.LoadDocument(selectedFile, flags) #Merge the isolated document with the current one. c4d.documents.MergeDocument(newDoc, mfs, flags) c4d.documents.InsertBaseDocument(newDoc) c4d.documents.SetActiveDocument(newDoc) # Execute main() if __name__=='__main__': main() Cheers, Manuel
  • 0 Votes
    4 Posts
    713 Views
    ManuelM
    hi, you could also use LoadDocument lowPoly = c4d.documents.LoadDocument("preset://Optimized_Assets.lib4d/Asset_Library.c4d", c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS) As the documentation says: Similar to LoadFile() but this time the document is not put into the editors list of documents and it gives control over the loaded document. Cheers, Manuel
  • How to enforce StatusBar redraws

    Cinema 4D SDK r21 python windows
    11
    0 Votes
    11 Posts
    1k Views
    M
    I am also having trouble to get the Status bar to update while a script is running. My old scripts using Callcomand nevertheless update the Status bar fine ...?!? nevermind got it working again ... mistake on my end. (passed a small flot to the statusbar instead of 0-100. kind regards mogh
  • GeDialog shadows

    Cinema 4D SDK c++ windows macos r20 r19
    6
    0 Votes
    6 Posts
    1k Views
    ManuelM
    hi, this is the current state: "I think this is related to the ASYNC_POPUPEDIT being a non-resizable, modal dialog - and as such it is displayed kind of "Win legacy style" by the OS. Nothing we actively do set (and something which could change once they do further design overhauls in Win10)" Cheers, Manuel
  • 0 Votes
    5 Posts
    1k Views
    ferdinandF
    Hi, thanks, that answers all my questions. Cheers, zipit
  • Which lock to use?

    Cinema 4D SDK r21 r20 s22 c++ macos windows
    3
    0 Votes
    3 Posts
    358 Views
    fwilleke80F
    Always using the threadIndex, of course Thanks, I'll try that!
  • BaseDraw known issues in S22

    Locked Cinema 4D SDK windows macos c++ python
    1
    1 Votes
    1 Posts
    540 Views
    No one has replied
  • ParallelFor with race conditions

    Cinema 4D SDK c++ windows r21 r20 maxon api
    4
    0 Votes
    4 Posts
    639 Views
    ManuelM
    hi, that really depends on what you are doing. There's different type of lock for different cases and scenario. That also depends on what you care first, speed or memory. but the manual is pretty easy to understand, just pass the lock as a reference to your lambda function and you should be good to go. Cheers, Manuel
  • 0 Votes
    8 Posts
    1k Views
    I
    Hello to all @zipit said in GetFontDescription() on Windows and Mac: FONT_FLAGS Thank you i miss flags in https://developers.maxon.net/forum/post/58961
  • a few strange errors

    Cineware SDK c++ r21 windows
    3
    0 Votes
    3 Posts
    1k Views
    r_giganteR
    Hi @adlarch, thanks for reaching out us. With regard to your issue, I don't understand if it has been solved or not, since the very first post has been deleted and, after, a reply has been left by you in the thread. Can we delete the thread, or can we restore the initial post to give everybody in the community the chance to understand the scope of the second post? Cheers, Riccardo