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

    Change Object Parameters

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 201 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 24/05/2008 at 05:10, xxxxxxxx wrote:

      Hi All,

      I'm very new in the world of COFFEE. I'm working on some small plugins for cinema 4D.
      Now i'm at a point where can't find a solution for my problem. I searched in the forum an in the sdk but i couldn't find an example for my problem.

      I create with the plugin a Lathe Nurb and a Spline. Then i put the spline into the lathe. For smoothing i add a phong tag to my lathe nurb.

      My problem is, how can change the subdivison of the lathe nurb via coffee, so that it looks more roundly.

      My Code:
         //vObj is my created Spline

      lathe = AllocObject(Olathe);
         vDoc->InsertObject(lathe,NULL,NULL);
         lathe->SetName(cObjName);
          
         var tag = AllocTag(Tphong);
         lathe->InsertTag(tag);

      vDoc->InsertObject(vObj,lathe,NULL);
         GeEventAdd(DOCUMENT_CHANGED);
         return vObj;

      Thx for your help!

      Greetz Stefan

      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 26/05/2008 at 01:59, xxxxxxxx wrote:

        Just set the subdivision description parameter.

        lathe#LATHEOBJECT_SUB = some_integer_value;

        btw. GeEventAdd() has been replaced by EventAdd()

        cheers,
        Matthias

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