Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Cinema 4D SDK
    Log in to post
    Load new posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • C4DSC

      From edge to polygons

      c++ r19 r20 • • C4DS
      5
      0
      Votes
      5
      Posts
      1.1k
      Views

      C4DSC

      @C4DS said in From edge to polygons:

      storing a pair of (4 * polygon + edge) values

      ... it will be.
      Thanks for the confirmation

    • B

      Set Vector Y to 0 (in World Space)

      r20 python • • bentraje
      4
      0
      Votes
      4
      Posts
      776
      Views

      B

      @Cairyn and @r_gigante

      RE: BUT: This world matrix is already part of the object that contains the points. Now your points have applied the matrix twice, first through the object and then through this multiplication.

      Thanks for the clarification.

      Works as expected. (And I agree, I owe you a beer Cairyn hehehe).

      Have a great day ahead!

    • B

      Access Object Manager Fold and Unfold?

      r20 python • • bentraje
      6
      0
      Votes
      6
      Posts
      2.5k
      Views

      B

      Thanks for confirmation @Cairyn and @r_gigante

      Sorry for being picky. Just had some muscle memory from other softwares that wanted to port to C4D.
      Anyhow, will settle for the Ctrl+LMB as specified by @Cairyn

      Thanks again have a great day ahead!

    • A

      Frame selected objects correctly in camera

      python r19 • • AndreAnjos
      13
      0
      Votes
      13
      Posts
      2.6k
      Views

      r_giganteR

      Thanks a lot @AndreAnjos for sharing the code.

      I'll try to have a look at it and maybe contribute if/where needed. For the time being I'm glad to hear that you were able to tackle with it.

      Cheers, Riccardo

    • P

      Undo's and SendModelingCommand

      r20 python • • pim
      2
      0
      Votes
      2
      Posts
      387
      Views

      M

      Hi @pim only UNDOTYPE_NEW is needed.

      Moreover, I would like to mention that SendModelingCommand offers the MODELINGCOMMANDFLAGS_CREATEUNDO flags in order to automatically creates undo.

      Cheers,
      Maxime.

    • V

      Signal for actual closing C4D (not C4DPL_ENDPROGRAM)

      c++ • • victor
      2
      0
      Votes
      2
      Posts
      549
      Views

      M

      Hi @victor, C4DPL_ENDPROGRAM is called really at the end of Cinema 4D just before it quits. It's most likely that you search for C4DPL_ENDACTIVITY which is sent before any PluginEnd so it's the place to free the resources.
      For more information see Plugin Functions Manual: Shutdown.

      If you have any questions, please let me know.
      Cheers,
      Maxime.

    • B

      Prevent GetClone() to copy the tags attached on the object?

      r20 python • • bentraje
      3
      0
      Votes
      3
      Posts
      667
      Views

      B

      Thanks for the @r_gigante response.
      I'll stay away from the non-official method. Is this the reason why COPYFLAGS::PRIVATE_NO_TAGS is not included in the Python documentation of the GetClone() method?

      I'll use the clone everything then remove tags methodology instead.

    • D

      Getting Dependence of Object

      c++ r20 • • d_schmidt
      3
      0
      Votes
      3
      Posts
      548
      Views

      ManuelM

      hello,

      this topics will be considered as resolved if you have nothing to add.

      Cheers
      Manuel

    • rsodreR

      Hide tag from host object's tabs

      c++ r19 • • rsodre
      3
      0
      Votes
      3
      Posts
      466
      Views

      rsodreR

      @m_magalhaes Ok, thanks

    • S

      Moving\Deleting nodes with Python

      python r20 • • sheilan
      3
      0
      Votes
      3
      Posts
      846
      Views

      S

      Works perfectly. Thanks!

    • mfersaouiM

      Lock / unlock plugin from Plugins menu

      • • mfersaoui
      8
      0
      Votes
      8
      Posts
      1.1k
      Views

      mfersaouiM

      @Cairyn Thank you for your detailed reply.

    • rsodreR

      Project Tool freeze after win10 update

      project tool • • rsodre
      9
      0
      Votes
      9
      Posts
      1.8k
      Views

      C

      I see, thanks for the quick reply. I will try it and if doesn't work I'll open a new thread about the topic.

      Cheers
      Christian

    • B

      Unusual Remove() Results

      r20 python • • bentraje
      4
      0
      Votes
      4
      Posts
      808
      Views

      ManuelM

      hello,

      just a step to confirm @C4DS answer and if you look again at @r_gigante answer in this post it will make now fully sense.

      regarding your code i will go like this just to be a bit shorter and easier if i want to add or remove a tag from the list.

      safeTagList = [5617, 5600, 1604] tags = node.GetTags() for tag in tags: if tag not in safeTagList: tag.Remove()

      Cheers
      Manuel

    • J

      Issue with locale support in R20 plugin

      • • joyita
      4
      0
      Votes
      4
      Posts
      759
      Views

      J

      Thank you.

    • S

      Getting Tag by name

      python r20 • • sheilan
      4
      0
      Votes
      4
      Posts
      840
      Views

      S

      @m_magalhaes Oh yeah I forgot to add the tags. I'm using Python by the way.
      You can count this post as solved.

    • J

      FBX Export plugin option setting with python

      • • JIINY
      3
      0
      Votes
      3
      Posts
      1.8k
      Views

      J

      Thank you @m_adam

      I completed my exporter scripts to your help.
      I read Links, I will tagging next time.

      I'm studing c4d scripts. it still hard.
      Thank you again.

    • B

      Limit the doc.SearchObject() on the source document?

      r20 python • • bentraje
      5
      0
      Votes
      5
      Posts
      642
      Views

      B

      @m_adam

      I have a handful of doc.SearchObject() so I was looking for an easier route.
      I guess there is no way around it except concatenating strings.

      Anyhow, thanks for the code and confirmation.

      Will tag this thread as closed.

      Have a great day ahead!

    • C4DSC

      BaseContainer equality ... are you kidding me

      c++ r20 • • C4DS
      10
      0
      Votes
      10
      Posts
      1.8k
      Views

      ManuelM

      hello,

      oupss thanks i got the same warning and forgot to update the code here

      Cheers
      Manuel

    • indexofrefractionI

      Plane by Python Generator

      python • • indexofrefraction
      18
      0
      Votes
      18
      Posts
      3.4k
      Views

      M

      Yes, I'd like to see it of course. Maybe you can share it via Github so others can for and contribute to it. 🙂

    • mfersaouiM

      This topic is deleted!

      • • mfersaoui
      3
      0
      Votes
      3
      Posts
      25
      Views