• Dynamic Update on Plug-ins

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    647 Views
    B
    Hi @m_magalhaes Thanks for the response and clarification specially with the def __init___ and def InitValuesthat was news to me. The plug-in works as expected. Have a great day ahead!
  • controlled rendering programmatically

    Cinema 4D SDK sdk python
    3
    0 Votes
    3 Posts
    544 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • 0 Votes
    8 Posts
    950 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • Sperical floor issue

    Cinema 4D SDK sdk c++ python
    3
    0 Votes
    3 Posts
    587 Views
    ManuelM
    hi, without any further feedback, this thread will be considered as solve tomorrow. Cheers Manuel
  • 0 Votes
    5 Posts
    682 Views
    M
    @mfersaoui said in Automatically add effector object into In-/Exclusion User Data: @m_adam Thank you, Now I'm searching for how to add an Object to an In-Exclude user data. I tried with the following code but this doesn't work. import c4d def main(): effectors = op[c4d.ID_USERDATA,2] # In/Exclude User Data plain = doc.GetFirstObject() # Plain object (Effector) effectors.InsertObject(plain, 1) c4d.EventAdd() if __name__=='__main__': main() The actual issue is that effectors = op[c4d.ID_USERDATA,2] perform a copy of the InExcludeData so that means you have to reassign the data correctly after it since you don't do the change directly from the InExcludeData of the BaseContainer. op[c4d.ID_USERDATA,2] = effector Cheers, Maxime.
  • urllib2.HTTPError: HTTP Error 403

    Cinema 4D SDK python
    4
    0 Votes
    4 Posts
    1k Views
    ManuelM
    hello, we did run a couple of test and seems that the "issue" is on Patreon side. HTTP Error 403: Forbidden We did try with other url, it work. We did try adding header-agent or things like that, it failed. They probably changed something on their server that doesn't allow to connect with python with default parameters. You have to contact them in order to know what you have to do. Cheers Manuel
  • 0 Votes
    3 Posts
    454 Views
    chuanzhenC
    @m_adam Thanks
  • Creating shaders from PSD files

    Cinema 4D SDK python
    11
    1
    0 Votes
    11 Posts
    2k Views
    M
    Hi Been a few years now, any changes on this, I would love a script that iterated through a PSD file, create a material for each layer and set the Alphas for each layer
  • GvNode parameters

    Cinema 4D SDK python
    5
    0 Votes
    5 Posts
    970 Views
    ManuelM
    hello, I've got some feedback, You can't rely on the fact that all resource name contain Redshift. (most but not all). As Some parts are generated dynamically this could break your tools. May I ask you what are you trying to implement ? Cheers Manuel
  • GeGetModata inside Python Generator returns none

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    711 Views
    P
    to be honest - i don't know where my fault was. Unhappily i didn't commit the not working version. In my plugin i already used a virtual doc for some other calculations. thank you! vd.ExecutePasses(c4d.threading.GeGetCurrentThread(), True, True, True, c4d.BUILDFLAGS_NONE) md = c4d.modules.mograph.GeGetMoData(matrix) for m in md.GetArray(c4d.MODATA_MATRIX): rdPoints.append(m.off) works like a sharm.
  • How to close a dialog box by event

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    643 Views
    V
    That should work. Thanks for the clarification and pointer to the example!
  • 1 Votes
    5 Posts
    1k Views
    ManuelM
    I'm not sure it's a bad habit or what's the difference. There's maybe type conversion, i don't know. Or maybe with the code optimization there's no difference at the end. I just wanted to add my 2 cents to have bool and not value xD Cheers Manuel
  • Matrix/HPB to XYZ and vice versa

    Cinema 4D SDK python r20
    7
    0 Votes
    7 Posts
    2k Views
    S
    @m_magalhaes said in Matrix/HPB to XYZ and vice versa: convert the matrix to XYZ xyz = c4d.utils.MatrixToHPB(m, order=c4d.ROTATIONORDER_XYZGLOBAL) # convert from radian to deg for i in xrange(3): xyz[i] = c4d.utils.RadToDeg(xyz[i]) print xyz Works perfectly. Thanks!
  • Tag Based Subdivision Surface?

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    1k Views
    B
    @r_gigante @Cairyn Thanks for the thorough explanation. I underestimated the task. I initially thought it was just an easy click since the function is already available as a generator. I was looking for the same behavior in Maya. Where the subdivision deformer or modifier is not a separate object. So I can select objects easily. Anyhow, will settle for what is available in C4D currently. Thank you. Will close this for now.
  • 0 Votes
    4 Posts
    1k Views
    B
    @lasselauch I guess I need to revisit the script in the link above when I need to bake user data. Anyway, your script will do at the moment. It's readable enough for my newbie eyes It works as I expected! Thanks for the handy script. @m_adam Thanks for the confirmation!
  • 0 Votes
    10 Posts
    2k Views
    A
    Hi Manuel, Right! Found the culprit... symbolcache file... Couldn't understand how it was working for you and not for me. After deleting symbolcache worked straight away and it seems that also works without having doc.SetActiveTag(outro_cal_tag) Thank you very much for your awesome help with this! Andre
  • Simulating a Scrub in the Timeline?

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    886 Views
    ManuelM
    hi @bentraje , Just to confirm @mp5gosu answer. We can also point you to BaseDocument manual where you have some information about ExecutePasses Cheers Manuel
  • Send Python Code To C4D from any Texteditor

    General Talk python
    7
    1
    2 Votes
    7 Posts
    2k Views
    mikeudinM
    @mdr74 OK, thank you! Will check it.
  • 0 Votes
    8 Posts
    1k Views
    M
    Thanks, Mike for providing them, as said before be aware that if you encounter slowdown for the autocompletion and in typing in your IDE, it may come from here Cheers, Maxime.
  • Mograph Camera Shader from Python

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    563 Views
    F
    Thanks that worked perfectly. I thank you both!