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

    ClonerObject Class ?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 400 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 17/12/2010 at 07:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      Hi Guys,

      I'm writing a plugin in COFFEE and i need to test if an object is a clonerobject of MoGraph, but ..
      I can't find anything about MoGraph or ClonerObject in the SDK ?

      I found out that it's class ID is 1018544. But I don't want to need to remember this everytime when I want to do something with a cloner object.

      Greetings, nux

      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 17/12/2010 at 07:51, xxxxxxxx wrote:

        The ID is the only way to identify the Colner object. This is true for most other object types too.

        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 17/12/2010 at 17:00, xxxxxxxx wrote:

          Oh, good to know. Thanks.

          I have another question, I don't think it's worth opening a new thread.
          I allocated a texturetag and wanted to set its Material with
          "Setmaterial(mat);"
          while mat is a material from another tag taken with
          "var mat = tag->GetMaterial();"
          Asking The console, it tells me that the variable mat exists, but the material in the allocated tag is nil.

          Any Idea  ?
          Thanks in advance, nux

          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 18/12/2010 at 06:49, xxxxxxxx wrote:

            Ok I'm trying to get how it works since about three hours, but it won't work !

            I think I found a bug, take a look at this script:

            > var obj = doc->GetActiveObject();
            > var ttag = obj->GetFirstTag();
            >
            > var mat = doc->GetFirstMaterial();
            > var newtag = AllocTag(ttexture);
            > newtag#TEXTURETAG_MATERIAL = mat;
            > println(ttag->GetMaterial());
            > println(mat);
            >
            >
            I tested it on a Object with just a texturetag with a material on it.
            The Console prints the following:

            What "GetMaterial" returns is not the same as it really is ?!

            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 18/12/2010 at 13:11, xxxxxxxx wrote:

              Really seems like GetMaterial(); does not return the right values.

              But i found another way to get the material.

              > var mat = ttag#TEXTURETAG_MATERIAL;
              >
              >
              Cheers, nux

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