• Limit SplineKnot tangent

    Cinema 4D SDK r21 c++
    3
    2
    0 Votes
    3 Posts
    741 Views
    A
    Thanks for your answer, it solved my problem. I used: Vector::ClampMax() and Vector::ClampMin() to limit the tangent to the value I want. Thank, AiMiDi
  • 0 Votes
    4 Posts
    873 Views
    B
    @Cairyn @ferdinand Thanks for the response. The python generator works as expected. I did try to retrieve the cache earlier for mograph but with a python tag rather than a python generator, but it has some priority delays. Your solution is much more stable. Now, I don't have to jump to houdini for such simple scenes. Have a great day ahead!
  • Open a GeModalDialog from a Job Observer

    Cinema 4D SDK r20 r21 s22 r23 c++ maxon api
    4
    0 Votes
    4 Posts
    431 Views
    fwilleke80F
    It works perfectly, thanks again! Cheers, Frank
  • EffectorData: Set clone visibility?

    Cinema 4D SDK r20 r21 s22 r23 c++
    3
    1
    0 Votes
    3 Posts
    366 Views
    fwilleke80F
    Works like a charm, thank you! Greetings, Frank
  • Importing morph problem

    Cinema 4D SDK r21
    12
    0 Votes
    12 Posts
    2k Views
    ferdinandF
    Hello @AiMiDi, without any further feedback or questions, we will consider this topic as solved by Wednesday and flag it accordingly. Thank you for your understanding, Ferdinand
  • How to download a file in R20+

    Cinema 4D SDK maxon api r21 s22 r23
    5
    0 Votes
    5 Posts
    548 Views
    ManuelM
    hi, by the way, i forgot to talk about the thread thing. This thread might help And of course our manuals about threading Cheers Manuel
  • Purely dynamic description for shader?

    Cinema 4D SDK r21
    15
    0 Votes
    15 Posts
    3k Views
    ferdinandF
    Hi @Filip, okay, thank you for the clarification. Cheers, Ferdinand
  • 0 Votes
    4 Posts
    757 Views
    M
    Hi @mp5gosu , I will set the topic as closed. Note that the fix will not come in the next update but don't worry we have it logged and it's on our list of things to fix in the future. Cheers, Maxime.
  • 0 Votes
    18 Posts
    2k Views
    ManuelM
    Hi, Sorry about not having time to investigate the gradient part of your question. I was waiting for feedback about the color presets. With the new asset browser out there's no point into investigate this question furthermore. Cheers, Manuel
  • 0 Votes
    6 Posts
    1k Views
    P
    forget about it. i removed the c4d.OBJECT_INPUT flag during development and forgot to add it back.
  • Gets the point weight of the Field object.

    Cinema 4D SDK
    2
    0 Votes
    2 Posts
    550 Views
    ferdinandF
    Hi @x_nerve, thank you for reaching out to us. The most straightforward way to sample a FieldObject is FieldObject.Sample; there are also other sample methods attached to the various fields related classes, most notably c4d.FieldList. We have two examples in the Python SDK examples which showcase field sampling, fieldlist_sampling_r20 and fieldobject_sampling_20. You also mention "Is there a way to get the weight of the cube field points?"; you are probably aware of this, but since your phrasing could imply otherwise, it seems noteworthy to point out that fields are not discrete. So in other words, there is no finite amount of points you can exhaustively sample for a field object, since the object is non-discrete. You have to pick a point or a set of points you want to sample for a field object, which can be any point in in the value range c4d.Vector can handle. If there are any questions left, please do not hesitate to ask. Cheers, Ferdinand
  • Spline dynamics

    Cinema 4D SDK python r21 windows
    7
    0 Votes
    7 Posts
    1k Views
    bacaB
    @ferdinand you were clear and example is pretty good, I got the idea. No need to write code for me But it's not trivial overall, I just need to spend some time on this. Thanks again.
  • Global variable for Preferences Folder?

    Cinema 4D SDK r21 python
    7
    0 Votes
    7 Posts
    624 Views
    ferdinandF
    Hi @bentraje, hi @C4DS, you seem to have solved your problem yourself, so there is not much for me to add here apart from offering alternative solutions. One slightly dodgy way to get the preferences path is to use the path which is stored under c4d.PREF_MEMORY_PVHARDFOLDER in the world container of Cinema (it is the Memory>Cache Path attribute). A more elegant way is to use maxon.Application.GetUrl() which does properly handle the different paths under which the preferences can be stored (see example at the end of my posting for details). Cheers, Ferdinand """On how to iterate over the different preferences paths with the maxon API. """ import maxon def main(): """Entry point. """ for urlType in (maxon.APPLICATION_URLTYPE.GLOBALPREFS_DIR, maxon.APPLICATION_URLTYPE.PREFS_DIR, maxon.APPLICATION_URLTYPE.PREFS_DIR_STATIC): print (f"{urlType}:{maxon.Application.GetUrl(urlType)}") if __name__=='__main__': main()
  • 0 Votes
    9 Posts
    2k Views
    fwilleke80F
    Thanks, Maxime! Looks like I have it running flawlessly now. good work on Terraform looks solid! Thank you! It is pretty solid, yes Cheers & happy Easter, Frank
  • Errors when recompiling R20 plugin to R21

    Cinema 4D SDK
    6
    0 Votes
    6 Posts
    1k Views
    r_giganteR
    hi @Boony2000 , these are Visual Studio Intellisense errors which you can safely ignore. If they bother you switch the filter from "Build + Intellisense" to "Build". Cheers, R
  • ShowPopupDialog Freezes Cinema R21

    Cinema 4D SDK python r21
    12
    0 Votes
    12 Posts
    2k Views
    A
    @ferdinand Hi Ferdinand, Thank you for your time and help! Will get it sorted with your pointers above. All the best! Andre
  • Python and the GUI Separator

    Cinema 4D SDK python c++ r21 r23
    8
    0 Votes
    8 Posts
    1k Views
    CairynC
    Good to hear, thanks!
  • PYTHON - FIND ANY ID PORT

    Cinema 4D SDK python r21 sdk
    7
    0 Votes
    7 Posts
    1k Views
    ferdinandF
    Hi @Hugo-BATTISTELLA , without further questions or feedback, we will consider this thread as solved by Monday and flag it accordingly. Cheers, Ferdinand
  • [SOLVED/NotABug] Bug with c4d.CPolygon

    Cinema 4D SDK r21
    8
    0 Votes
    8 Posts
    1k Views
    X
    Thanks for all the extra info guys! I'll make sure to use the ask-as-a-question feature next time