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

    Tag Allocation

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 359 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 31/03/2006 at 01:21, xxxxxxxx wrote:

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

      ---------
      Hi there,

      how the hell does this alloctag() work? when I try to allocate new tags to an object, all I get is:
      "Variable or Function expected"!

      For example:

      main(doc,op)  
      {  
      var tag = alloctag(Texpresso);  
      op->InsertTag(tag)  
      }
      

      should insert a simple Xpresso-Tag, but produces the above message on compile. My cinema does not seem to know any of the possible parameters of the alloctag() function. What's the problem?

      Juergen

      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 31/03/2006 at 02:05, xxxxxxxx wrote:

        Does 'op' exist? Before calling op->InsertTag(tag); try checking for a valid object:

        main(doc,op)  
        {  
        if (op)  
        {  
        var tag = AllocTag(Texpresso);  
        op->InsertTag(tag);  
        }  
        else println("No object for tag");  
        }
        

        Make sure you have a selected object (?)

        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 31/03/2006 at 07:03, xxxxxxxx wrote:

          Found my error ... just the usual typing stuff with capital and small letters ...
          thanks for the help, the checking still is a good idea!

          Juergen

          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 31/03/2006 at 11:56, xxxxxxxx wrote:

            It wasn't clear if 'alloctag' was just quick typing or the actual code. 🙂 Glad that you resolved the problem.

            Have a good weekend,

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