• Keyframe Texture Tag with no material

    python r25
    6
    0 Votes
    6 Posts
    919 Views
    a_blockA
    Sorry, for causing extra work
  • Attribute Error when accessing Redshift parameters

    r25 python windows
    3
    0 Votes
    3 Posts
    994 Views
    ferdinandF
    Hello @davidweidemann, Thank you for reaching out to us and solving your own question :). To give a bit of background information, parameters can be composed in Cinema 4D. The simplest example is a parameter of type c4d.Vector. You can access the relative position of an object like this: >>> Cube[c4d.ID_BASEOBJECT_REL_POSITION] Vector(0, 0, 0) But as users might want to access and animate the components of that vector individually, the vector is dealt with and represented as a parameter actually as a set of sub-channels, one for each of its components. >>> Cube[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_X] 0.0 >>> Cube[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Y] 0.0 >>> Cube[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Z] 0.0 >>> This is why DescId are composed out of up to three DescLevel. To access the component of a vector you need two DescLevel, e.g., c4d.ID_BASEOBJECT_REL_POSITION and c4d.VECTOR_X. And while you might not be able to deal with the enclosing parameter, you might be able to deal with its subchannels. The input and output ports of an RSColorAbs Redshift node are of type RsColorAlpha, a parameter type that is composed of a Vector and a float, so it is effectively a four-component vector. This parameter type is not exposed to the Python API, so the API has no clue what to do with it. But it can deal with the subchannels. # Python has no clue about that parameter type at REDSHIFT_SHADER_RSMATHABSCOLOR_INPUT. >>> RSColorAbs[c4d.REDSHIFT_SHADER_RSMATHABSCOLOR_INPUT] Traceback (most recent call last): File "console", line 1, in <module> AttributeError: Parameter value not accessible (object unknown in Python) # But we can access the subchannels which are standard types. This is a two DescLevel access >>> RSColorAbs[c4d.REDSHIFT_SHADER_RSMATHABSCOLOR_INPUT,c4d.REDSHIFT_COLORALPHA_COLOR] Vector(0, 0, 0) # We can even reach into the subchannels of a subchannel, here for example to access the red # component of the RGBA vector tuple that is represented by the type RsColorAlpha. >>> RSColorAbs[c4d.REDSHIFT_SHADER_RSMATHABSCOLOR_INPUT,c4d.REDSHIFT_COLORALPHA_COLOR, c4d.VECTOR_X] 0.0 Cheers, Ferdinand
  • Cinema 4D Python access Save checkbox

    python
    4
    1
    0 Votes
    4 Posts
    583 Views
    C
    Thanks so much @m_adam and @Cairyn for your answers!
  • ssl certificate error in debug console

    c++ r21
    8
    0 Votes
    8 Posts
    1k Views
    Y
    Hi @ferdinand, I did not get this problem in R23 and R25 yet. Maybe it exists, but I did not see. I got it only in R21. But as @m_magalhaes mentioned: it is known issue and was fixed in later releases, so I leave it.
  • Best practice getting all objects in a certain Null

    Moved
    12
    0 Votes
    12 Posts
    2k Views
    M
    Found the problem I tried to Kill a document which was not alive, don't know if this is necessary with a merge. if c4d.C4DAtom.IsAlive(temp): c4d.documents.KillDocument(temp) And another gotcha c4d.documents.SetActiveDocument(temp) seems to be mandatory if you want to use CallCommand() -> and do not to forget to set the doc back to active after your routine. Thank you
  • Toggle Only select Visible element.

    Moved s24
    3
    0 Votes
    3 Posts
    913 Views
    r_giganteR
    Hi @akramFex , I apologize for the long silence on our side. Unfortunately the thread fell through the cracks of the Xmas period and we lost track of it. I'm glad you were able to find the solution and I'm grateful you wanted to share it with the rest of the community. Cheers, R
  • Noise - Keyframe Reduction using Python

    r21 python
    3
    0 Votes
    3 Posts
    645 Views
    ferdinandF
    Hello @brucek5, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • 0 Votes
    3 Posts
    618 Views
    ferdinandF
    Hello @Tomoya, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • The oldest SDK for Cinema 4D 19-25

    sdk r19 r20 r21 r25 r23 s22 s24
    7
    0 Votes
    7 Posts
    2k Views
    ferdinandF
    Hello @jeremyliu1989, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • 0 Votes
    10 Posts
    2k Views
    ferdinandF
    Hello @del, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • UserData

    Moved python r25 windows
    4
    1
    0 Votes
    4 Posts
    958 Views
    ferdinandF
    Hello @bokibo, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • MSG_MENUPREPARE called twice for same object

    r25 c++
    4
    0 Votes
    4 Posts
    506 Views
    ferdinandF
    Hello @kikizg, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • 0 Votes
    3 Posts
    672 Views
    ferdinandF
    Hello @RenoBozo, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • Expresso show hidden objects

    macos project tool
    4
    1
    0 Votes
    4 Posts
    958 Views
    ferdinandF
    Hello @mauovernet, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • Modifying Cinema 4D Preferences from External Python Script?

    r23 s24 r25 python sdk
    4
    0 Votes
    4 Posts
    1k Views
    ferdinandF
    Hello @wuzelwazel, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • Detect new project in Python plugin

    python
    4
    0 Votes
    4 Posts
    615 Views
    ferdinandF
    Hello @mheberlein, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • RS Reference Node in Python

    s24 python windows
    3
    0 Votes
    3 Posts
    511 Views
    ferdinandF
    Hello @kverhaar, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • Get object by active tag in Python

    python
    5
    0 Votes
    5 Posts
    1k Views
    ferdinandF
    Hello @stanDM, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • import presets and be reversible

    Moved r20 python
    6
    0 Votes
    6 Posts
    913 Views
    ferdinandF
    Hello @JH23, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • Exporting data from Takes to a file

    sdk r23 python
    8
    0 Votes
    8 Posts
    1k Views
    F
    Hi Manual, This is exactly what I needed. Thank you very much. Best regards, Tomasz