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

    ObjectColorproperties

    SDK Help
    0
    3
    429
    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 19/02/2003 at 10:19, xxxxxxxx wrote:

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

      ---------
      When trying to initialize an objectplugin with a specific color, it crashes my cinema 4D when trying to change the "usecolor" in Cinema 4D:
      ObjectColorProperties* prop;
      prop->color = Vector(180/255,89/255,81/255);
      prop->usecolor = 1;
      op->SetColorProperties(prop);
      What´s wrong ?:(

      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 19/02/2003 at 11:20, xxxxxxxx wrote:

        * prop;  is only Pointer to nothing.
        Use that...
        ObjectColorProperties  prop;
        prop.color = Vector(0.7,0.34,0.31);
        prop.usecolor = 1;
        op->SetColorProperties(&prop);
        <SCRIPT language=javascript>postamble();_<_Script_>_

        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 19/02/2003 at 11:45, xxxxxxxx wrote:

          upps blind again. 🙂 thanks.

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