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

    read like light obj parameter

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 374 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 20/09/2008 at 13:52, xxxxxxxx wrote:

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

      ---------
      Hi all,
      here my new, hope no stupid, question 😉
      i need to read all parameter of an lighr objectm o know some object like this don't store settings in container , and to work on this side i must to use
      ->GetParameter.....
      is there  a way to read in sequence all light description?
      or have anyone some experience on this?
      i'm serching something like a recursive workaround in description.

      Thanks
      Franz

      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 21/09/2008 at 08:11, xxxxxxxx wrote:

        nothing 😞 anyone ?
        Franz

        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 22/09/2008 at 03:51, xxxxxxxx wrote:

          You could browse through the whole objects description, something like this:

          > \> Bool MenuTest::Execute(BaseDocument \*doc) \> { \>      StopAllThreads(); \> \>      BaseObject \*op = doc->GetActiveObject(); \>      if(!op) return TRUE; \> \>      AutoAlloc<Description> desc; \>      if(!desc) return FALSE; \> \>      if(!op->GetDescription(desc, 0)) return FALSE; \> \>      void \*bh = NULL; \>       \>      bh = desc->BrowseInit(); \>      if(!bh) return FALSE; \> \>      const BaseContainer \*bc = NULL; \>      DescID id, groupid; \>      GeData data; \> \>      while(desc->GetNext(bh, &bc;, id, groupid)) \>      { \>           const BaseContainer \*dbc = desc->GetParameterI(id,NULL); \>           if(dbc) GePrint("Name: "+dbc->GetString(DESC_NAME)); \> \>           if(op->GetParameter(id, data, 0)) \>           { \>                //data is the description data \>                GePrint("Type: "+LongToString(data.GetType())); \>           } \>      } \> \>      desc->BrowseFree(bh); \> \>      return TRUE; \> } \>

          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 25/09/2008 at 06:43, xxxxxxxx wrote:

            hello Matthias,
            sorry fo late reply ,thank you very muth now i understand. 🙂
            Best
            Franz

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