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
    • Recent
    • Tags
    • Users
    • Login

    Thinking Particles Problem

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 757 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 02/07/2008 at 01:02, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      I have a small problem with Thinking Particles.

      I have a node with the following code. In the editor, it's all right, but in the (render-)preview they are gone. Do I have to send a significant signal when I edit / create / delete particles?

      TP_MasterSystem* t = GetTpMasterSystem(GetActiveDocument());
           LONG k = t->AllocParticle();
           t->SetVelocity(k,Vector(30));

      Thanks..

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 02/07/2008 at 02:08, xxxxxxxx wrote:

        Have you tried to send a MSG_CHANGE message to the TP_MasterSystem? Maybe it also needs an EventAdd().

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 02/07/2008 at 03:09, xxxxxxxx wrote:

          Hi!

          I tried EventAdd() and t->Message(MSG_UPDATE, test); No success.. 😞

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 05/07/2008 at 04:42, xxxxxxxx wrote:

            Hi!

            My particle-generator works. The problem is the "recalculation" when I make a jump in the timeline.

            Should this be calculated by my plugin or is it a small function that recalculates the path of the particles?

            Thanks....

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 14/07/2008 at 11:42, xxxxxxxx wrote:

              Hi!

              The problem still exists. Does anyone has an idea? That would be wonderful.

              Bye 🙂

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 23/07/2008 at 23:21, xxxxxxxx wrote:

                Hi!

                There are small news. I looked after the issue again, and I noticed something, thats very interesting.

                TP_MasterSystem* t = GetTpMasterSystem(GetActiveDocument());
                     LONG k = t->AllocParticle();
                     t->SetVelocity(k,Vector(30));

                In the first post I used GetActiveDocument(). When I render the scene, the particles are created in the active Document, not in the document that is rendered by the picture manager.

                So, if I render the scene and click "play" the particles will be created in the active document.

                Is there a command like "GetActiveRenderDocument()"?

                Thanks a lot.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 24/07/2008 at 02:21, xxxxxxxx wrote:

                  Ah, yes GetActiveDocument() only gives you the document of the original scene. During rendering to the picture viewer the document is cloned.

                  Where do you call the TP system? If it is in your node then try mynode->GetDocument() to get the document.

                  cheers,
                  Matthias

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 24/07/2008 at 02:59, xxxxxxxx wrote:

                    Thats it! 🙂

                    Now I know why some pointers like the BaseDocument are avaible as argument, too.

                    Thank you.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post