Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Home
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • fwilleke80F

      C4D in VirtualBox... no viewport displayed

      windows r21 s22 • • fwilleke80
      3
      0
      Votes
      3
      Posts
      295
      Views

      fwilleke80F

      I guess VirtualBox is just not a good choice then. Damn. But thanks for the answer!

      Cheers,
      Frank

    • A

      Controlling tessellation of c4d.SplineObject in python

      python classic api • • android
      5
      0
      Votes
      5
      Posts
      223
      Views

      CairynC

      @android Here's a thread for reference regarding the limitation of a Generator spline:
      https://developers.maxon.net/forum/topic/12596/is-it-possible-to-get-a-spline-wrap-object-to-use-a-python-generated-spline

    • B

      Re-performing Hair Edit > Convert from Spline Command?

      r21 python • • bentraje
      5
      0
      Votes
      5
      Posts
      286
      Views

      B

      @m_magalhaes

      Thanks! It works as expected.
      So that's what you mean by UniformToNatural. Basically, even if the segment guides are not the same as spline points, it will conform to its overall shape.

    • mfersaouiM

      Toggle bitmap button on .res file

      python • • mfersaoui
      4
      0
      Votes
      4
      Posts
      240
      Views

      ManuelM

      hi,

      Group is the key in UI. Simply add a SCALE_H; property for your slider. so for that two columns group, the slider will take all the place minus the button.

      GROUP { COLUMNS 2; REAL ONEFLOAT { CUSTOMGUI REALSLIDER; SCALE_H;} BITMAPBUTTON BUTTON_ID { SIZE 16; TOGGLE; BUTTON; ICONID1 5160; ICONID2 5159; } }

      Cheers,
      Manuel

    • CairynC

      How to use GetPolygonW/R under Python? ...if at all

      r21 python c++ • • Cairyn
      4
      0
      Votes
      4
      Posts
      156
      Views

      ferdinandF

      Hi,

      jeah, that is probably somewhat the reason. Although Python has true statically typed arrays, which also can be used to directly in-place manipulate C arrays (i.e. array.array), from what I understand it is quite cumbersome to achieve such linkage. This is probably the reason why Maxon does not bother in this case and others like for example vertex colors. Including these access points is still a bit puzzling though. Maybe they are somehow used internally? But I cannot think of a case where this would make sense.

      Cheers,
      zipit

    • B

      Changing Face Normal's Direction?

      r21 python • • bentraje
      5
      0
      Votes
      5
      Posts
      262
      Views

      ManuelM

      hi,

      everything have been said, nothing to add here 🙂

      Cheers,
      Manuel

    • I

      Thinking Particles allocation failure in new document

      python s22 • • ivodow
      7
      0
      Votes
      7
      Posts
      284
      Views

      ManuelM

      @ivodow said in Thinking Particles allocation failure in new document:

      So, would ExecutePasses() with the BUILDFLAGS_EXPORT flag set be typically called just before exporting to alembic (to be on the safe side)?

      the exporter is calling ExecutePasses several times, you don't really need it.
      And because the scene can be sometimes quiet complexe, you have to call it several times in a row.

      for example, in the alembic exporter :

      68d39647-ef56-430b-ae1a-2189e1b83617-image.png

      Cheers,
      Manuel

    • C4DSC

      Mouse positions and screen dimensions

      r20 r21 c++ • • C4DS
      17
      0
      Votes
      17
      Posts
      588
      Views

      ManuelM

      hi,

      sorry, it get out of my mind.

      Cheers,
      Manuel

    • C4DSC

      GeDialog shadows

      c++ windows macos r20 r19 • • C4DS
      6
      0
      Votes
      6
      Posts
      266
      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

    • oli_dO

      Problem with TreeViewFunctions.HeaderClick in c4d r20, 21 22

      python r20 r21 s22 • • oli_d
      3
      0
      Votes
      3
      Posts
      144
      Views

      ManuelM

      hi,

      Since R20, arguments have been added, and the problem is coming from the last one 🙂

      def HeaderClick(self, root, userdata, lColID, lChannel, bDblClk, mouseX, mouseY, ua):

      I've opened a bug report

      Cheers,
      Manuel

    • mfersaouiM

      Change the default name of ID_OBJECTPROPERTIES

      python • • mfersaoui
      3
      0
      Votes
      3
      Posts
      207
      Views

      mfersaouiM

      @m_magalhaes said in Change the default name of ID_OBJECTPROPERTIES:

      DEFAULT 1;

      Thank you much.

    • O

      Merge IsolateObjects into a second document

      r20 python windows • • owen
      2
      0
      Votes
      2
      Posts
      225
      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

    • ?

      Creating a Python Script box

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      162
      Views

      ManuelM

      hi,

      except what @zipit said, there's nothing outof the box that you can use in our API to do it.
      You have to come with your own solution.

      Remotion have create such a tool few years ago:
      https://bitbucket.org/remotion/code-editor-gui-for-c4d/downloads/

      I would say that it's not really hard to do, it's just long and during the path you are walking to build such a tool, you could find some walls that you didn't expect ^^'

      I would start using the function GetDParameter, check the content and change the color of some words accordingly.

      Cheers,
      Manuel

    • ?

      Centering an icon in a BITMAPBUTTON

      python • • A Former User
      3
      0
      Votes
      3
      Posts
      208
      Views

      ?

      @m_magalhaes Thank you for clarifying the Bitmap Button, Manuel.

    • ?

      Adding Undos for CommandData Changes

      python • • A Former User
      7
      0
      Votes
      7
      Posts
      181
      Views

      ?

      @m_magalhaes That's helpful, thank you, Manuel! 😄

    • N

      Camera Position/Rotation to POS/DIR/UP Vectors

      r21 c++ • • neon
      5
      0
      Votes
      5
      Posts
      220
      Views

      N

      Hello Manuel,
      thanks for your input!
      I got it working correctly with the values you mentioned.
      Reading through the docs again I feel kinda dumb for not getting it right myself.
      Thanks to both you and zipit for your great help!

      Best Regards,
      Florian

    • ?

      Getting an Object to Follow Another Regardless of Hierarchy

      sdk python • • A Former User
      12
      0
      Votes
      12
      Posts
      379
      Views

      ?

      @m_magalhaes That's okay. Thank you for letting me know!

    • O

      How to work with LoadFile from content browser

      python windows r20 • • owen
      4
      0
      Votes
      4
      Posts
      233
      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

    • ?

      Mirroring with Matching or Different Axes

      s22 python • • A Former User
      26
      0
      Votes
      26
      Posts
      1.0k
      Views

      kbarK

      @zipit I also want to say that the amount of time you contribute here to help out developers is very generous of you. You are doing an amazing job. I would hope that Maxon would actually pay you some retainer fee for your time or at least provide you with a free subscription for all the help you have given everyone here.

    • kbarK

      ZipFile extracting spanned files

      r20 c++ sdk classic api maxon api • • kbar
      10
      0
      Votes
      10
      Posts
      445
      Views

      kbarK

      @zipit Really great insights.Totally appreciate all your comments. I have worked with zlib for many years and integrated it into many different platforms, apps and plugins. This is just the first time I have ever looked into splitting or spanning features.

      Off topic: Would be great to work on compression algorithms again. I keep eyeing up all the image compression formats being used and developed these days. Fun stuff.