• Questions about Bake Texture tag & Python

    Cinema 4D SDK python
    11
    1
    0 Votes
    11 Posts
    1k Views
    mfersaouiM
    Hi, Thank you very much @zipit and have a good day.
  • 0 Votes
    11 Posts
    1k Views
    mfersaouiM
    @m_magalhaes Hello Manuel, ok Thank you. I have used the solution that I have mentioned above.
  • Import C4D vs Import Maxon

    Cinema 4D SDK python r21
    9
    0 Votes
    9 Posts
    1k Views
    B
    @zipit @m_magalhaes Yes, zipit was correct on my concern: If he has to worry about the new API on day-2-day tasks like selecting an object Guess, I don't have to for now. Thanks for the clarification.
  • Python c4d.CheckIsRunning(type) returning None

    Cinema 4D SDK python
    4
    0 Votes
    4 Posts
    575 Views
    ManuelM
    hello, without any news, i'll pass this thread to solved. Cheers, Manuel
  • Get shader's parent ID

    Cinema 4D SDK python r19
    8
    0 Votes
    8 Posts
    1k Views
    A
    @m_magalhaes said in Get shader's parent ID: hello, thanks @zipit ^^ just one thing, in the context of the script manager, you don't need DOC = c4d.documents.GetActiveDocument() there is already doc. cheers, Manuel. Corrected! Thank you Manuel!
  • Reading proper decimal values on lower numbers?

    Moved General Talk r20 python
    4
    0 Votes
    4 Posts
    1k Views
    ManuelM
    Hello, Thanks again @zipit for the fast and nice reply I also move this thread to general programming as it's not related to Cinema 4D Cheers, Manuel
  • Spline with closed and open segments

    Cinema 4D SDK python r19 r20
    5
    0 Votes
    5 Posts
    881 Views
    a_blockA
    Thanks, Manuel, for looking into it. Maybe worth a note in the docs? It is a bit confusing, isn't it? Cheers to the entire team, Andreas
  • Weight Manager Window access help

    Cinema 4D SDK python r20
    7
    1
    0 Votes
    7 Posts
    1k Views
    chuanzhenC
    @zipit Thanks for showing me so much detail.
  • Load file from plugin directory

    Moved Cinema 4D SDK python sdk
    4
    0 Votes
    4 Posts
    833 Views
    ManuelM
    hello, @zipit thanks for your answer. for your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here. Q&A New Functionality. How to Post Questions especially the tagging part. I've added the tags and marked this thread as a question so when you considered it as solved, please change the state In the python help, you have a link to github where you can find examples. https://github.com/PluginCafe/cinema4d_py_sdk you will see sometimes in those example this code : path, fn = os.path.split(__file__) bmp = bitmaps.BaseBitmap() bmp.InitWith(os.path.join(path, "res", "gravitation.tif")) Just to add a few words about c4d.storage.GeGetC4DPath() That's the classic API. In c++ with the maxon API you have GetUrl In Python, in r20 symbol are not set and if you want to retrieve the resource directory it will return the Cinema4D's one and not your plugin's one. Cheers Manuel
  • 0 Votes
    3 Posts
    481 Views
    ferdinandF
    Hi, thank you for the clarification. Cheers zipit
  • Spline User Data Presets

    Cinema 4D SDK python r20
    11
    0 Votes
    11 Posts
    2k Views
    G
    Thank You @m_magalhaes very helpful! I succeeded. I should have been able to figure this out from the example in the API. I've used the code basically as you have it with my spline datas saved in different hyperfiles. I then load that data from my tag. Thanks again.
  • C4D Crashes on Getting All Specific Type of Objects

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    522 Views
    B
    @zipit Thanks for the response and clarification. Works as expected @m_magalhaes Sorry about that. Will be more careful next time.
  • Check object (poly) intersect

    Cinema 4D SDK python
    7
    1
    0 Votes
    7 Posts
    1k Views
    ManuelM
    @fwilleke80 as i mention in the other post, the problem (at least with our raycolider) is that if your ray hit an edge, it will hit 2 polygons at the same time. If it hit a point, it will hit <number of polygons attached to that point> times. It can be good enough but you have to be careful if you really want something solid. Cheers Manuel.
  • Moving a group of spline points

    Cinema 4D SDK python sdk
    3
    1
    0 Votes
    3 Posts
    512 Views
    ManuelM
    hello, happy you found your solution, and thanks for the feedback Cheers Manuel
  • Add Position Velocity Port

    Cinema 4D SDK r19 python
    7
    0 Votes
    7 Posts
    1k Views
    A
    @m_magalhaes said in Add Position Velocity Port: Hello, Sorry for the late reply. This was a bug (with other ports also) and it's fixe for the next release. Cheers Manuel @m_magalhaes Ah OK! Thanks for lettings us know!
  • Undo of inserting a tag

    Cinema 4D SDK python
    4
    0 Votes
    4 Posts
    537 Views
    S
    Also, if you want to move a tag, you first have to remove it from the original object. So you don't insert, you change the position of the tag in the scene graph. doc.StartUndo() doc.AddUndo(c4d.UNDOTYPE_CHANGE, tag) tag.Remove() op.InsertTag(tag) doc.EndUndo()
  • Change an attribute from a dialogue plug-in

    Cinema 4D SDK r20 python
    12
    0 Votes
    12 Posts
    1k Views
    B
    @s_bach RE: You have to find a way to avoid that unnecessary rebuild of your layout after user interaction in your dialog. I'm not really sure how to do that. Since I just butchered the code from a sample plug-in. That will probably a problem for another thread. Anyway, it's functional at the moment. I'll settle for this. Thanks again and sorry for the trouble. Will close the thread now. Have a great day ahead!
  • Tag plugin and rendering

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    387 Views
    S
    Hello, without seeing your code or any error message it is impossible to give any advice. But "works in viewport but not in rendering" sounds like you are using c4d.documents.GetActiveDocument() somewhere. See also BaseDocument Manual. best wishes, Sebastian
  • Set the "DrawCircle" orientation to face camera

    Cinema 4D SDK
    5
    0 Votes
    5 Posts
    631 Views
    mfersaouiM
    @m_magalhaes Thank you. I made some changes but its work! Cheers, Mustapha
  • 0 Votes
    5 Posts
    720 Views
    mfersaouiM
    @s_bach Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.