• glTF Exporter

    2
    0 Votes
    2 Posts
    364 Views
    r_giganteR
    Hi Index, thanks for reaching out us. I confirm that the development is on supporting glTF is continuing. Stay tuned! Best, R
  • DistanceQuery

    c++ r20 sdk
    3
    0 Votes
    3 Posts
    503 Views
    N
    thank you so much!!
  • Create a circle with specific area size.

    python
    3
    0 Votes
    3 Posts
    638 Views
    mfersaouiM
    @PluginStudent Thank you.
  • Blit to MultipassBitmap GeClipMap not working

    r20 c++
    15
    0 Votes
    15 Posts
    2k Views
    C4DSC
    @r_gigante While doing some code cleanup to add new features to a plugin, I noticed some comments regarding this particular topic. The comment mentioned the need for a workaround since the Blit() functionality on Windows was faulty. Problem with Blit() and MultipassBitmap still occurs after switching to Visual Studio 2017, Windows 10, running R20.059
  • How to use STRINGTABLE with a Python Command Plugin

    sdk python
    7
    0 Votes
    7 Posts
    865 Views
    P
    I don't think there are any official "tools". But the docs describe how to handle unicode (Dialog Layout The encoding is 7-bit ASCII with other characters encoded as \uHHHH. For example 'Natürlich' is written 'Nat\u00fcrlich'. Byte-order marks are not used.
  • 0 Votes
    6 Posts
    799 Views
    D
    @m_magalhaes Thank you
  • Logging in Cinema 4D

    sdk python
    4
    0 Votes
    4 Posts
    1k Views
    M
    Hi @blastframe unfortunately for the moment is not possible to implement its own logger in python. However, you could use any existing loggers. Here an example that writes into the Application (Default) Logger. import maxon txt = "My Wonderfull Text" defaultLogger = maxon.Loggers.Default() defaultLogger.Write(maxon.TARGETAUDIENCE.ALL, txt, maxon.MAXON_SOURCE_LOCATION(1), maxon.WRITEMETA.DEFAULT) Note that the print simply reroutes to the Python logger. But it can be useful to directly use the logger to write if you pass the write meta maxon.WRITEMETA.UI_SYNC_DRAW this way you can force a redraw of the console (slower) after each print, this can be used to avoid the limitation mentioned in the second part of this post. Cheers, Maxime
  • How to prevent a LinkBoxGui from accepting an object?

    python
    4
    0 Votes
    4 Posts
    470 Views
    ?
    @PluginStudent Thanks for the idea of how to solve this! I was doing what you described before posting my example, but probably making it too complicated. The documentation for the Link gadget describes the pointer LINKBOX_ACCEPT_MESSAGE_ACCEPT as 'A pointer to a boolean value. Set this value to true to accept the object.' so that sounded like what I needed. I've rewritten the approach you described and have it seemingly working.
  • Did something change in the Bevel operation after R21.026?

    python r21
    9
    2
    0 Votes
    9 Posts
    1k Views
    ManuelM
    hi, must be monday, sorry, the 21.207 IS the current last public version (and after another test, the bug is definitely there). It's already out the next update we can't tell what and when. Cheers, Manuel
  • GetId() returns a long and not a int!

    r21 python
    5
    1
    0 Votes
    5 Posts
    647 Views
    P
    Great, thank you.
  • Connect + Delete groups iteratively

    python r20
    5
    0 Votes
    5 Posts
    2k Views
    ManuelM
    hello, I'will consider this thread as solved tomorrow if you have nothing to add Cheers, Manuel
  • Best plugin type for background (thread) processing?

    r20 python
    16
    0 Votes
    16 Posts
    4k Views
    M
    Since this topic is older than a week I marked is as closed, but feel free to reopen it if you have further questions. Cheers, Maxime
  • Performance Issue with Symmetry - and other

    Moved
    2
    0 Votes
    2 Posts
    620 Views
    M
    Hi @chakuew0, plugincafe is only a support for Cinema 4D API and SDK, and I don't see in any way how your question is related to the API, but more an issue within Cinema 4D. So please contact the Cinema 4D support for all no related API questions in this page. Cheers, Maxime.
  • NBIT xHIDE visibility flags - THIDE deprecated?

    c++ python r21
    7
    0 Votes
    7 Posts
    755 Views
    CairynC
    Thanks, it's good to know that there are internal functionalities actually using these flags!
  • 0 Votes
    5 Posts
    896 Views
    P
    Thank you so much! This helps me a lot with the understanding of what was going on. I am digging back into my work on this today and will follow up with your advice.
  • 0 Votes
    6 Posts
    1k Views
    mfersaouiM
    @zipit Hi, Thank you so much.
  • List of all Cinema 4D IDs?

    r21 sdk python
    5
    0 Votes
    5 Posts
    710 Views
    ?
    @m_adam Thank you for the clarification and the code example, Maxime!
  • GetSplinePointSegment Offset

    r20 c++ sdk
    8
    0 Votes
    8 Posts
    1k Views
    r_giganteR
    Hi @JohnThomas thanks for the follow-up. I see the point, but when you're dealing with uniform splines you've also to consider the number of intermediate points you're using to approximate the natural spline. With a natural parametrization even with a low number of points the vertexes position returned from SplineHelp::GetPosition() are accurate, whilst with a uniform parametrization you get higher accuracy as long as you increase the number of points. See the data below, where first coordinate is the position returned by the SplineHelp::GetPosition and the second coordinate is returned by quering the points vector PointsObject::GetPointR() Natural_4 [4, 2123.461, BEZIER, 1] 0 [0/0], 0.000[0.000] --> (200.000,0.000,0.000) -- (200.000,0.000,0.000) 1 [17/0], 0.250[530.865] --> (0.000,700.000,0.000) -- (0.000,700.000,0.000) 2 [34/0], 0.500[1061.731] --> (-200.000,0.000,0.000) -- (-200.000,0.000,0.000) 3 [51/0], 0.750[1592.596] --> (0.000,-200.000,0.000) -- (0.000,-200.000,0.000) Uniform_4 [4, 2107.332, BEZIER, 2] 0 [0/0], 0.000[0.000] --> (200.000,0.000,0.000) -- (200.000,0.000,0.000) 1 [7/0], 0.350[737.566] --> (4.370,699.695,0.000) --> (0.000,700.000,0.000) 2 [14/0], 0.700[1475.132] --> (-199.849,8.692,0.000) -- (-200.000,0.000,0.000) 3 [17/0], 0.850[1791.232] --> (-4.394,-199.953,0.000) -- (0.000,-200.000,0.000) Uniform_16 [4, 2107.332, BEZIER, 2] 0 [0/0], 0.000[0.000] --> (200.000,0.000,0.000) -- (200.000,0.000,0.000) 1 [7/0], 0.350[737.566] --> (4.370,699.695,0.000) -- (0.000,700.000,0.000) 2 [14/0], 0.700[1475.132] --> (-199.849,8.692,0.000) -- (-200.000,0.000,0.000) 3 [17/0], 0.850[1791.232] --> (-4.394,-199.953,0.000) -- (0.000,-200.000,0.000) Uniform_128 [4, 2124.555, BEZIER, 2] 0 [0/0], 0.000[0.000] --> (200.000,0.000,0.000) -- (200.000,0.000,0.000) 1 [182/0], 0.353[749.359] --> (-1.373,699.970,0.000) -- (0.000,700.000,0.000) 2 [363/0], 0.703[1494.600] --> (-199.996,1.279,0.000) -- (-200.000,0.000,0.000) 3 [440/0], 0.853[1811.636] --> (1.380,-199.995,0.000) -- (0.000,-200.000,0.000) If no further help is needed please don't forget to set the thread as Solved. Cheers, R
  • I cannot get multiple polygons from GetNearestPolygon

    r20 c++
    6
    0 Votes
    6 Posts
    663 Views
    ManuelM
    hello, I've lookied into the live selection tool and internally it's using GetPixelInfoPolygon, or the equivalent for point and edges. You also have Get<xxx>PixelBuffer where <xxx> is Point, Edge or Polygon. That return the internal buffer constructed inside the Init function of the ViewportSelect Class. pixelBuffer[ width*y + x] will give you the right pixel on that buffer. Sorry to have missed those functions. Cheers, Manuel
  • C++ -> Python of DOCUMENTSETTINGS_GENERAL & DOCUMENT_STATEX

    4
    0 Votes
    4 Posts
    452 Views
    M
    thanks to all of you, got it working with axisstate.x = int(doc.GetData(c4d.DOCUMENTSETTINGS_GENERAL).GetBool(c4d.DOCUMENT_STATEX)) kind regards mogh