• Material Tag: Fit to object

    python 2024
    3
    0 Votes
    3 Posts
    719 Views
    .
    Hi @m_adam - In this particular instance I'm calling it on objects that have children and I'm getting the prompt to include sub objects. If it were a modeling command or something like that it may include the ability to include or exclude the children programmatically. I'm creating 30 objects and each object has six flat projections that I want to set to the size of the object. That's 180 confirmation clicks.
  • How to connect new ports and node ports in the group?

    python 2024
    7
    1
    0 Votes
    7 Posts
    2k Views
    DunhouD
    Hi @i_mazlov , Thanks for your time, sorry for my bad that I use a confusing word for "id", I should say "asset id", but as you said, I can use ID to check this, for some reason, I overlooked this for a moment. And the GetParent(), I found out that the culprit is GetSelectedNodes(), I use this to get a selected node(abs bode) but the return is "group", so what ever I try the return is 'Root'. Thanks for all your works! Cheers~ DunHou
  • Release API for Modifying Camera Selection on Render Queue

    2023 python
    5
    0 Votes
    5 Posts
    990 Views
    B
    Thanks for the update @m_adam
  • Boundary Edges to Spline in Python

    s26 python 2024 2023
    3
    0 Votes
    3 Posts
    1k Views
    F
    Dear Ilia, I greatly appreciate your assistance; it was precisely what I needed. Thank you for your guidance and I wish you a wonderful day. Best regards, Tomasz
  • 0 Votes
    9 Posts
    3k Views
    i_mazlovI
    Hi Christophe, Please note our Support Procedures, namely: We cannot provide support for third party libraries "It doesn't work" is not a support request and we cannot debug your code for you, but instead provide answers to specific problems. From my personal point of view, you need to reduce your setup as far as possible while still being able to reproduce the bug: Determine which one of your 2 tag plugins causes the issue Cut off unrelated functionality of your plugin that has nothing to do with the issue Figure out the specific function or line that causes the issue Search the forum if this issue was already discussed If not, create an example code snippet that highlights your issue Post your specific question and the example code snippet in a separate thread with a meaningful title Cheers, Ilia
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    19 Views
  • Spline to UV map... is this even possible?

    python 2024 windows
    3
    0 Votes
    3 Posts
    1k Views
    justinleducJ
    Hey @m_adam, I never thanked you for your very helpful and thorough reply, so allow me to do so now: thank you very much! Your reply ended up being extremely useful, as it guided me in implementing the KD-Tree within my Python script, as well as helping me convert the Barycentric coordinates to UV coordinates. So, for that, once again; thank you! Now that this is implemented, I am faced with a challenge: it appears that the precision of the drawing of the Spline greatly depends on the subdivision/triangulation level of my geometry (for example, the Sphere in my parent message). In other words, if the geometry whose UV map I am drawing the shape of my Spline onto is very low-poly, the drawing of said Spline will be incredibly imprecise. It seems like the precision increases as I increase the amount of polygons on the geometry. Just curiously, without necessarily pasting my code here, I was wondering if - at the top of your head - this behavior was to be expected? Does this mean that, with the KD-Tree and Barycentric conversion method, I would never be able to programmatically draw a perfectly round circle Spline on a Plane object that, despite having a perfect UV map, only has 2 polygons? I can work around those constraints, but it'd be great to know if the current imprecision of my drawing approach isn't caused by something else. Thanks!
  • How to Get cloner data in C++

    s26 c++ windows
    2
    1
    0 Votes
    2 Posts
    638 Views
    M
    Hi you can find in read_modata_color_r16.py a Python example doing exactly that. To retrieve the position instead of retrieving the MODATA_COLOR your need to retrieve MODATA_MATRIX. There is no difference for doing it in C++. Cheers, Maxime.
  • Hot4D for C4D 2024 not working, Xcode error

    2024 macos
    3
    0 Votes
    3 Posts
    2k Views
    J
    Hello @josephnvelasquez49, Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us! Getting Started Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are: Support Procedures: Scope of Support: Lines out the things we will do and what we will not do. Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon. Forum Structure and Features: Lines out how the forum works. Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner. About your First Question Thanks a lot for posting, we are looking into this and let you know as soon as possible. Cheers Jana
  • Adding multiple cameras from a single file to the render queue

    python r23
    22
    0 Votes
    22 Posts
    20k Views
    M
    @gsmetzer said in Adding multiple cameras from a single file to the render queue: My only question: Can you run this script without saving a multiple iterations of the source .c4d file to the OS? Sadly, this is not possible, you are forced to create a c4d file each time. However this is a feature we will tackle in the future, but I can't say when neither give any guarantee. Or, is it possible to delete the source .c4d file iterations upon completion? You can iterate all elements, call GetElementStatus and check for its finish state. If you need help to achieve that please open a new topic. Cheers, Maxime.
  • Geometry Axis asset node and LoadAssets

    python s26
    7
    1
    1 Votes
    7 Posts
    2k Views
    M
    @Dunhou said in Geometry Axis asset node and LoadAssets: Hi there, In C4D 2024, the Geometry Axis can not accessible in python anymore, how can I fix that? from typing import Optional import c4d doc: c4d.documents.BaseDocument # The active document op: Optional[c4d.BaseObject] # The active object, None if unselected def main() -> None: for i, (bc, descid, _) in enumerate(op.GetDescription(c4d.DESCFLAGS_DESC_0)): name = bc[c4d.DESC_NAME] if name == "Axis X": print(i,descid) print(op[descid]) if __name__ == '__main__': main() 2024 [image: 1699255573905-832ba1ea-2683-4deb-95de-67444dbcf033-image.png] 2023 [image: 1699255607788-d37942ef-53b5-4e13-9cab-2946766c3fd6-image.png] Cheers~ DunHou Hi, this issue have been fixed in 2024.2 and your code is working as it was previously. Cheers, Maxime.
  • Problems with Reloading Python Plugins in Cinema 4D 2024.1.0

    2024 python
    14
    0 Votes
    14 Posts
    3k Views
    M
    Hi thanks a lot for your report, the issue regarding Reloading Python Plugin not working as expected have been fixed in 2024.2. Cheers, Maxime.
  • Issue with return values of VertexColorTag.GetAllHighlevelData()

    python
    5
    0 Votes
    5 Posts
    800 Views
    M
    Hi just to let you know that with the release 2024.2 the issue have been fixed and it is now possible to retrieve the value of a Vertex Color Tag in point mode. Cheers, Maxime.
  • Utilize Mograph Effectors to be used with custom generators

    python
    3
    0 Votes
    3 Posts
    502 Views
    bacaB
    Hi @m_adam , That's sad... Thanks, anyway.
  • Utilizing InExclude for advanced use

    python
    7
    0 Votes
    7 Posts
    1k Views
    bacaB
    @m_adam good to know, thanks.
  • Sub-frame document time

    c++ windows
    3
    0 Votes
    3 Posts
    698 Views
    WickedPW
    Is there any way to get around the apparent hard-coded maximum frame rate limit? WP.
  • Accessing vector field data of Volume Builder or Volume object

    2024 python
    8
    0 Votes
    8 Posts
    4k Views
    M
    Hi correct I made a typo in the string representation of a Vec3, this is going to be fixed in an upcoming release. Cheers, Maxime.
  • Adding UVs to Ngons in C++

    c++ 2024
    2
    0 Votes
    2 Posts
    424 Views
    i_mazlovI
    Hello @mn-kb3d , Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us! Getting Started Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are: Support Procedures: Scope of Support: Lines out the things we will do and what we will not do. Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon. Forum Structure and Features: Lines out how the forum works. Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner. About your First Question Sorry for the delayed answer. In your further postings please add a code snippet that highlights the issue you're struggling with and shows the context of your question. Please also note that you're pointing out to the outdated documentation, please use the up-to-date one instead: UVWStruct. You can easily access it from the top menu as shown on the screenshot [image: 1701798037356-a17b9e9f-6762-4617-ae84-9d0fe94c73cd-image.png] Regarding your question. Ngons are actually sort of a collection of polygons (tris or quads). Even though you create an Ngon, for the UV mapping you would be using the same UVWStruct being applied to the underlying polygons. To find out the corresponding polygons and its indices you're welcome to use GetPolygonTranslationMap and GetNGonTranslationMap functions. Here is a simple example of how you can use them: // PolygonObject* poly; // ... // // Polygon-object initialization routine // ... Int32 ngonCount = 0; Int32* polyMap = nullptr; CheckState(poly->GetPolygonTranslationMap(ngonCount, polyMap)); Int32** ngons = nullptr; CheckState(poly->GetNGonTranslationMap(ngonCount, polyMap, ngons)); for (Int32 i = 0; i < ngonCount; ++i) { Int32 nPoly = ngons[i][0]; String polyIndicesStr; for (Int32 j = 1; j < nPoly + 1; ++j) polyIndicesStr += FormatString("@ ", polygonIdx); DiagnosticOutput("Ngon #@ with @ polygons: @", i, nPoly, polyIndicesStr); } Cheers, Ilia
  • This topic is deleted!

    1
    2
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • use existing Catmull Clark algorithm

    python c++ 2024
    14
    0 Votes
    14 Posts
    3k Views
    ferdinandF
    Hey @CJtheTiger, yes, we disabled Ask as question because it was a lot of extra work for us to maintain because 60%-80% of users set their topics never as solved. Cheers, Ferdinand