• Calling Bevel tool and setting parametrs

    Cinema 4D SDK python r19 sdk
    9
    0 Votes
    9 Posts
    2k Views
    M
    settings[c4d.MDATA_BEVEL_RADIUS] = 0.5 Works fine here.
  • Data Dump Python Function

    Cinema 4D SDK
    9
    0 Votes
    9 Posts
    2k Views
    ManuelM
    hello, if you don't have anything else to add, i'll mark this topic as "solved" Cheers Manuel
  • Cinema Gradient, weird behaviour

    Cinema 4D SDK r20 sdk python
    7
    0 Votes
    7 Posts
    1k Views
    M
    Don't feel sorry yes this is the issue and since Knot ID are not ordered from right to left but from creation order its why it's confused you. Moreover, using a for loop will make way more sense and help you to avoid this kind of stuff. grad1 = shdr1[c4d.SLA_GRADIENT_GRADIENT] grad2 = shdr2[c4d.SLA_GRADIENT_GRADIENT] for knotId in xrange(grad1.GetKnotCount()): knot = grad1.GetKnot(knotId) grad2.InsertKnot(col=knot['col'], pos=knot['pos'],index=knot['index']) grad2.FlushKnots() shdr2[c4d.SLA_GRADIENT_GRADIENT] = grad2 Finally, a BaseShader is derived from BaseList2D which is derived from C4DAtom that mean you can use GetClone to retrieves a clone of this shader so your code can look like. import c4d def main(): mat = doc.GetFirstMaterial() colorShader = mat[c4d.MATERIAL_COLOR_SHADER] if colorShader is None: return copyColor = colorShader.GetClone() mat[c4d.MATERIAL_DIFFUSION_SHADER] = copyColor mat.InsertShader(copyColor) mat.Message(c4d.MSG_UPDATE) mat.Update(True, True) c4d.EventAdd() # Execute main() if __name__=='__main__': main() Cheers, Maxime.
  • Node-Based Materials

    Cinema 4D SDK r20 sdk windows
    6
    0 Votes
    6 Posts
    1k Views
    M
    As stated before, we are working on it and it will be released in the future. I can't say more. Regarding your question @Aaron this will be possible.
  • The python SDK is running in error

    Cinema 4D SDK sdk c++ python
    2
    1
    0 Votes
    2 Posts
    503 Views
    r_giganteR
    Hi panney, thanks for reaching out us. With regard to the issue you're experiencing, it's pretty likely that the cause is a different revision between the c4dpy executable and the Cinema 4D revision. Please be sure that they both matches (20.059 c4dpy is available here[URL-REMOVED]). Last but not least, here you can find more detail on the c4dpy executable. Best, R. [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
  • Precise float parameters in UI

    Cinema 4D SDK c++ r20 sdk
    4
    0 Votes
    4 Posts
    853 Views
    rsodreR
    Shouldn't STEP be used to set this precision? Or is there a limit for STEP?
  • Updating old code: Vector > LONG

    Cinema 4D SDK c++ sdk
    4
    0 Votes
    4 Posts
    638 Views
    fwilleke80F
    Yeah, definitely. When porting old code that I didn't write to new C4D releases, I always add lots of comments, so people who come after me won't have the same problems
  • Shader-Material Linking

    Cinema 4D SDK c++ r20 sdk classic api
    2
    0 Votes
    2 Posts
    424 Views
    M
    Hi @Ogers, unfortunately, there is no direct way to do so. The only working solution is to retrieves the host of the shader (using BaseList2D.GetMain) Then iterates the description of this element and all its children to see where the shader is used. Cheers, Maxime.
  • GetRealSpline() not returning a result

    Cinema 4D SDK c++ r20 sdk
    13
    0 Votes
    13 Posts
    3k Views
    ManuelM
    hello, @baca To help us keep things clear and organized (and tracked), can you please open your own thread referring to this one and ask your question there. Thanks and Cheers. Manuel
  • 0 Votes
    5 Posts
    1k Views
    M
    thanks solved: self.data = {'sphere_size': 15, 'extension_ratio': 1, 'extend_vector': False} kind regards
  • 0 Votes
    3 Posts
    835 Views
    M
    Hi @Fransua welcome in the plugincafe community. Do not worry since it's your first post but please read and follow these rules (I've setup your post correctly) How to Post Questions especially the tagging part. Q&A New Functionality. Unfortunately, a complete list is not available for the moment. But if you are looking only for object there is this page Object Types and Fields Object Types which refer to all symbols available to describe an object. To know a specific object id, you can drag and drop this object/element to the console, for more information see Python Console, Scene Elements. Finally, you can also retrieve for the full list of id by their type with c4d.plugins.FilterPluginList Cheers, Maxime.
  • GetVirtualObjects or GetContour

    Cinema 4D SDK c++ sdk r20
    3
    0 Votes
    3 Posts
    910 Views
    J
    Thank you for your answer. That was exactly what I was looking for. John Thomas
  • 0 Votes
    3 Posts
    501 Views
    O
    Hello @r_gigante Thank you for your time and answer. I will try the other way then. Best, Ogers
  • Ovolumeloader

    Cinema 4D SDK r20 c++ sdk
    3
    0 Votes
    3 Posts
    855 Views
    kbarK
    Thanks Sebastian. I did not realize it was a generator. Couldn't find it mentioned in the docs. However I was searching for VolumeLoader in the docs and on here, and I think the official docs searching system doesn't always return the results. Anyway, all good now. Thanks again.
  • InitResourceBitmap issues

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    669 Views
    merkvilsonM
    Thanks, Andreas! I was looking for interface_icons_2x for a while
  • urllib2.urlopen fails on C4D for Mac

    Cinema 4D SDK
    32
    0 Votes
    32 Posts
    23k Views
    M
    Hi @SolarPH please open a new topic with your code and the exact error. Cheers, Maxime.
  • Get Active Light Parameters

    Cinema 4D SDK sdk c++ r20
    2
    0 Votes
    2 Posts
    491 Views
    r_giganteR
    Hi Ogers, thanks for reaching us. With regard to your question, I need some further explanation since I actually don't get what you mean by: to get these parameters from c4d lights Which parameters are you referring to? What is the final intent of the Light Translator plugin? Best, Riccardo
  • R20 equivalent of GeSignal

    Cinema 4D SDK r20 sdk c++
    7
    0 Votes
    7 Posts
    2k Views
    P
    Hello. The problem was that I didn't add the definitions. iferr_scope; signal = maxon::ConditionVariableRef::Create() iferr_return; Thank you for your time and sorry for that
  • Enable/Disable drop down (LONG) elements

    Cinema 4D SDK r20 c++ sdk
    3
    0 Votes
    3 Posts
    623 Views
    O
    Hi @a_block Thank you for your answer.
  • Texture Tag Output

    Cinema 4D SDK c++ sdk r20
    15
    0 Votes
    15 Posts
    3k Views
    D
    Hi Riccardo, Thanks for the first response. My bad with not catching that it was a layer shader bug, I figured I had done something wrong with the sampling. I'll start looking into the other projection samplings. Dan