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

    Insert and customize object

    General Discussion
    0
    2
    605
    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
      Helper
      last edited by

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

      On 30/01/2005 at 16:30, xxxxxxxx wrote:

      Hello,
      I am quite new to C++ and COFFEE programming, and I am exercising a lot. I've also made a Xpresso plugin for c4d, but new I want to turn it into a COFFEE plugin. I've already started but don't know how to insert a lightObject and disable certain properties of it.
      Please could anyone help me to solve this?
      Greats, Ralf

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

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

        On 07/02/2005 at 05:01, xxxxxxxx wrote:

        Under hereb I've written a piece of code. Can anyone tell me what I have to change, in order to let the SkyObject insertion work?
        -------------------------------------------------------------------------------------------------
        var PLUGIN_ID = xxxxxx;
        var MENU_NAME = "Rad@rea";
        var HELP_STR =  "Add Radiosity Area Object";
        class MySky : SkyObject
        {
        public:
               MySky();     
        }
        class RadMenu : MenuPlugin
        {
        public:
               RadMenu();
               GetHelp();
               GetID();
               GetName();
               Execute(Doc);     
        }
        RadMenu::RadMenu()        { super(); }
        RadMenu::GetID()          { return PLUGIN_ID; }
        RadMenu::GetName()        { return MENU_NAME; }
        RadMenu::GetHelp()        { return HELP_STR; }
        RadMenu::Execute(doc)
        {
               doc->InsertObject(new(SkyObject),NULL,NULL);
              
               return;                    
        }
        main()
        {
               Register(RadMenu);     
        }
        -------------------------------------------------------------------------------------------------

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