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

    New light

    Scheduled Pinned Locked Moved PYTHON Development
    8 Posts 0 Posters 834 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

      On 23/09/2013 at 15:22, xxxxxxxx wrote:

      Hey

      I Looping for a light - a Bit of parallel light and Spot Light

      I Need a light wir an Start radius and a angle like a Spot Light

      Has Someone an idea ?

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

        On 24/09/2013 at 02:00, xxxxxxxx wrote:

        Not quite sure what you mean, but I would insert a light (Olight) and then change the settings.
        E.g. Light[c4d.LIGHT_TYPE], Light[c4d.LIGHT_DETAILS_OUTERANGLE], etc.

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

          On 24/09/2013 at 04:26, xxxxxxxx wrote:

          hey pgrooff,

          for a better understanding I add a image.

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

            On 24/09/2013 at 05:37, xxxxxxxx wrote:

            c4d standard light sources have a clipping functionality. add near clip from 0.0 to x.x for your
            spot and you will end up with 'what i need'. writing your own light sources is not possible
            in python.

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

              On 24/09/2013 at 05:54, xxxxxxxx wrote:

              The clipping is a near Solution but when The light is in an Objekt it doesn't work because the Light Calculation Star on the beginning - and Not on the clipping

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

                On 25/09/2013 at 03:30, xxxxxxxx wrote:

                I have some problems to understand your last reply. If the fact that the origin of the lightsource 
                still remains at the theoretical point of emissions and is not moved with the clipping plane is your
                problem, you have basically two options.

                1. Use a null and live with the overlapping gui lines ( use the null to offset the light along its
                z-axis, so that the origin / rotation point lies within the near clipping plane.

                2. Write a gui wrapper for the light. Create a resource including the whole Olight ressource
                and return in your GVO() just a light object into which you have copied your objects data
                container. In GVO() you can offset the light object along its z-axis to move the origin. In 
                Draw() you can build your light object editor repr. form scratch. You will also have to re-
                implement the handles.

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

                  On 25/09/2013 at 04:09, xxxxxxxx wrote:

                  hope that picture make it more understandable

                  the problem is the distance between the clipping and the light emitter - in this case the floor will stop the light -  of course I can exclude the floor and the modell in the Light - Project _ Settings  but that doesn`t work in this case for me - and hundreds of lights

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

                    On 25/09/2013 at 05:20, xxxxxxxx wrote:

                    Ah ok, no I do get the problem. I thought you were just looking for a rather cosmetic fix for 
                    the gui repr of a light object. I am afraid there is no solution for your problem, as we cannot
                    write our own light source objects. The only solution I could think of would be a hack with 
                    some polygonal blocking geometry, either as a simple light rig or as a plugin.

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