• Geometry Axis asset node and LoadAssets

    Cinema 4D SDK 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.
  • Normal Move command has no effect in R2023

    Moved Bugs python
    3
    0 Votes
    3 Posts
    871 Views
    bacaB
    @m_adam thanks!
  • 1 Votes
    6 Posts
    2k Views
    B
    @Dunhou @Manuel Thanks for the response. I ended up going for the ctrl+C on the node editor Pretty straightforward and works as expected. Functions like how you copy/paste nodes on Fusion and Nuke.
  • Selection Order Flag for GetActiveMaterials?

    Cinema 4D SDK r25 python
    3
    0 Votes
    3 Posts
    335 Views
    B
    @Manuel Gotcha. Thanks for the confirmation.
  • 0 Votes
    3 Posts
    439 Views
    C
    Hi Ferdinand, Thanks a lot for your in-depth answer! I was assuming it was possible, but now I know for sure! Cheers, Casimir Smets
  • Ability to Drag Nodes to the Console?

    General Talk r25 python
    7
    0 Votes
    7 Posts
    1k Views
    B
    @ferdinand Gotcha. Thanks for the clarification. Will close this thread now.
  • 0 Votes
    3 Posts
    517 Views
    DunhouD
    @ferdinand Thanks for that solution. It's happy to hear that , I do try to make win-win clear post as I can to don't waste our time , hope it's a worthy work I tested the new GetUpdatedInexcludeData function , it worked well , The "click twice" thing never happen again . It's the None condition I didn't realize before . It does happend when no or single object in the list . And for the "odd place" and the "exception ", it is a test to make sure all the things above work well( after that are all the settings ) . I forgot move to the right place . sorry to that Thanks for the caring code for c4d.utils.DegToRad(360) , I haven't notice this before and just stupid import radians
  • How to render a animation preview ?

    Cinema 4D SDK sdk s26 python
    7
    0 Votes
    7 Posts
    1k Views
    M
    Hi @Dunhou you can't control the Make Preview plugin, you have to rewrite the function yourself with all the tips previously shared in this topic. Cheers, Maxime.
  • update error?

    Cinema 4D SDK r20 python
    10
    0 Votes
    10 Posts
    3k Views
    JH23J
    I want to finish with this in case someone reads it. Years ago, I asked about the outdated methods when using these techniques. I tried to adjust the depth of the IK spline controls with the actual length of the spline itself. Today, I understand my mistake, as I was trying something that didn’t make logical sense. At the time, I thought it was the best option for what I was looking for. In short, this was never a problem, and the low response time is normal because the length depends on the depth of the controls. I thought there would be a solution, but choosing this path was not useful. In conclusion, what eventually satisfied my requirements was directly referencing the angles of the controls, meaning identifying how oriented each control is to another. I took this angle and used it as a factor to multiply by the depth. This model is much more logical and doesn’t have any flaws. At the time, I couldn’t think of a direct solution, but I didn’t want to leave this post like that. Thanks anyway, Ferdinand, for trying to help me. Cheers JH
  • How to select directories in a CUSTOMGUI_FILENAME?

    Cinema 4D SDK s26 python
    3
    0 Votes
    3 Posts
    777 Views
    P
    Hi @ferdinand , Thanks a lot, that's exactly what I was looking for ! flags: c4d.BaseContainer = c4d.BaseContainer() flags[c4d.FILENAME_DIRECTORY] = True # Add a CUSTOMGUI_FILENAME with our flags settings. self.AddCustomGui(id=MyDialog.ID_FILENAME, pluginid=c4d.CUSTOMGUI_FILENAME, name="Path", flags=c4d.BFH_SCALEFIT, minw=0, minh=0, customdata=flags)
  • 0 Votes
    13 Posts
    2k Views
    ferdinandF
    No worries, everything is fine, that is what we are here for, to clear up things. When you have questions I encourage you to open a new thread so that we can see what we can do. And this is also an open forum, so you can ask questions to the community if you want to. But unless pointed out specifically otherwise, we assume things to be support requests. Cheers, Ferdinand
  • Can i get global input event ?

    Cinema 4D SDK python s26
    3
    0 Votes
    3 Posts
    423 Views
    gheyretG
    @ferdinand Wow~ Thank you so much bro
  • Get Node By Name?

    Cinema 4D SDK r25 python
    3
    0 Votes
    3 Posts
    384 Views
    B
    @Manuel Ah gotcha. It's only available R26 onwards. That's why I can't see something related in my R25 documentation.
  • String values for the "FindChild"?

    Cinema 4D SDK python r25
    13
    0 Votes
    13 Posts
    1k Views
    B
    @Manuel Gotcha. Thanks for the clarification. Sorry for the trouble. Works as expected. Will close this thread now.
  • Plugin works with R23 and doesn't work with S24.

    General Talk python r23 s24
    4
    0 Votes
    4 Posts
    1k Views
    K
    Got it. Thank you.
  • Include Description in the Search Documentation?

    General Talk r25 python
    5
    0 Votes
    5 Posts
    879 Views
    B
    @ferdinand Uhm. It's not as complicated as that. I mean it is complicated per se but there are already existing solutions. Check "Sphinx Search Extension". There are several. Pip install it and just insert it into the conf.py file. Also, it's not really as spicing it up per se. I mean it is but not really. It's just adding a sub paragraph section. The maxon redshift documentation is already doing it. And even if you are using sphinx implementation, it's also existing. Blender documentation is built using sphinx. [image: 1666619696194-8579cd6b-d0a4-4844-9563-5ee4d390a1e3-image.png]
  • Undo for InsertUnder() is not right. Why?

    Cinema 4D SDK python
    4
    4
    0 Votes
    4 Posts
    897 Views
    ferdinandF
    Thanks! Sorry, I am so careless that I ignore the message "Needs to be called before the change.". No worries, you are not the first one who trips over Undo call order, including myself at some point
  • Python. Cinema4d. All iterations in the Text value

    Cinema 4D SDK
    9
    2
    0 Votes
    9 Posts
    2k Views
    S
    @ferdinand thx very much! ill save this
  • 0 Votes
    5 Posts
    604 Views
    B
    @manuel ah gotcha. the node kinda. thanks. will close this thread for now.
  • Get asset from asset browser python

    Cinema 4D SDK python
    5
    0 Votes
    5 Posts
    1k Views
    K
    @ferdinand Thanks a lot Ferdinand for this detailed and complete answer! This is exactly what I hoped to do! I tested the code and it works great! Since a few of the fixes you use are not recommended, i will solve it in another way for now, until it gets fixed for python, or i switch to C++. I got my plugin doing what i want, for the moment. Pretty sure this will also help someone else in the future. Have a nice day!