• Browsing Plugin Paths

    c++ sdk r20
    4
    0 Votes
    4 Posts
    2k Views
    D
    Thank you both for the replies! Between both of them I have exactly what I need, thanks.
  • Add/Remove Groups of User Data

    python
    12
    2
    0 Votes
    12 Posts
    4k Views
    mrittmanM
    @m_magalhaes said in Add/Remove Groups of User Data: Hello, I was also talking about something like this. But it's not the best way to go. I suggest a TagData (plugin) with his own UI. pyTagCode = '\ import c4d \n\ #Welcome to the world of Python \n\ \n\ def main():\n\ print "this ia a message"\n\ \n\ ' import c4d # Main function def main(): if op is None: gui.MessageDialog("Please selecte a target object") tag = c4d.BaseTag(c4d.Tpython) tag[c4d.TPYTHON_CODE] = pyTagCode op.InsertTag(tag) c4d.EventAdd() # Execute main() if __name__=='__main__': main() By the way, don't forget you can save tag presets, that include python tags. You can simple add them with right click on your object in OM and "Load tag preset" Cheers, Manuel Oh this is good to know! Thanks so much for the information, this is quite helpful! Matt
  • [Beginner:Python] Turn object into a point selection bounding box

    5
    0 Votes
    5 Posts
    1k Views
    ManuelM
    hello, If you have nothing to add, this thread will be considered as "solved" tomorrow. Cheers, Manuel
  • InitRender() with large textures

    c++ r19
    21
    0 Votes
    21 Posts
    15k Views
    ManuelM
    hello, Thanks a lot for your feedback and happy to see your issue resolved. Cheers Manuel
  • Linker Error: LIMIT<Int32>::MAX undefined

    r20 c++
    3
    0 Votes
    3 Posts
    482 Views
    fwilleke80F
    Hi Sebastian! Thanks for you quick reply. He will try and reduce the code as much as possible (as it is a commercial project of your company). When he's done, I'll send it over. I am aware that you can't do much without example code. We were hoping there were some common stumble stones you might have come across. Another thing worth mentioning might be that the linker only fails when building on macOS. Windows is doing fine... Cheers, Frank
  • Add Position Velocity Port

    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!
  • PYTHON - NBIT - UserData Attirbutes Manager Selection

    3
    1
    0 Votes
    3 Posts
    645 Views
    Leo_SaramagoL
    Thanks, m_magalhaes!
  • Undo of inserting a tag

    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()
  • Tag plugin and rendering

    r20 python
    3
    0 Votes
    3 Posts
    394 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
  • Generator Plugin update while under Fracture Object

    r20 python
    4
    0 Votes
    4 Posts
    848 Views
    ManuelM
    Hello, Sorry for the delay. The bugs have been confirmed and will be fixed on a futur release. Cheers Manuel
  • Set the "DrawCircle" orientation to face camera

    5
    0 Votes
    5 Posts
    637 Views
    mfersaouiM
    @m_magalhaes Thank you. I made some changes but its work! Cheers, Mustapha
  • How to get the current viewport shading modes using python

    python sdk
    5
    0 Votes
    5 Posts
    739 Views
    mfersaouiM
    @s_bach Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.
  • GetPointOneRingPoints() unexpected behavior

    windows python r20
    4
    1
    1 Votes
    4 Posts
    959 Views
    ferdinandF
    Ok, thank you. I was a bit unsure what "one ring points" are supposed to be and if this is actually a bug and not a feature Cheers, zipit
  • Camera animation to Text file?

    Moved r20 python
    3
    0 Votes
    3 Posts
    919 Views
    V
    This is a great start - will defiantly be using this to get closer to the desired end result Thanks so much Manuel for your help!
  • How to make DrawTexture ignore the Depth of Field option?

    python r20
    8
    0 Votes
    8 Posts
    989 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • controlled rendering programmatically

    sdk python
    3
    0 Votes
    3 Posts
    617 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • Sperical floor issue

    sdk c++ python
    3
    0 Votes
    3 Posts
    629 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • Linearize an exponential function

    c++ sdk
    4
    0 Votes
    4 Posts
    592 Views
    mfersaouiM
    @r_gigante Finally I found the solution to linearize the subdivision expansion on Adaptive spline interpolation on the angle deviation. I just replaced the line : radVal = c4d.utils.DegToRad(90 * (1.0 - val) By : radVal = math.pow(val, -0.85) I changed also the slider user data unit to REAL if I want to keep it with a PERCENT unit I just multiply the value by 100 radVal = math.pow(val*100, -0.85) Here is demo: [image: 1565669857246-ezgif.com-optimize.gif]
  • Unusual Dynamic Inputs from GeDialog

    r20 python
    3
    0 Votes
    3 Posts
    416 Views
    B
    @m_adam Thanks for the help. Works as expected. Have a great day ahead!
  • Highlighted Command Text/Icon when it is executed?

    r20 python
    7
    0 Votes
    7 Posts
    878 Views
    B
    Thank you @m_adam. Work as expected! (I actually just ended up learning about the decorator property since its new to me. haha. Thanks for that). Just want to confirm, am I right to think this is the code flow: Register Plug-In @property state GetState Execute(Button Click) @state.setter state @property state GetState Then back again to #4 for the click.