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

    Creating poly selections for texture map

    SDK Help
    0
    4
    538
    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 24/05/2003 at 22:38, xxxxxxxx wrote:

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

      ---------
      How can I create polygon selections to use with multiple materials on polygon objects? I get an instant crash trying to create a Tpolygon tag on a polygon object and the Tpolygonselection tag has no accessors that would let me set which polys are part of the set. No examples for these guys. I need two sets of groupings - one for surfaces to apply uv based textures to - and one denoting groups that I will be using to create bone weight maps later.

      How can I divide up the model I've imported so I can properly texture it from within my plugin?

      (where I can find samples, the sdk has gotten me up and running very fast!)

      Thanks,
      David

      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 25/05/2003 at 01:12, xxxxxxxx wrote:

        Use SelectionTag::Alloc(Tpolygonselection) and then GetBaseSelect() to modify the selection. I think you need to call tag->Message(MSG_UPDATE) if you change anything.
        You cannot create Tpolygon since there can only be one such tag. It shouldn't crash, but perhaps you don't check for NULL pointers?

        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 25/05/2003 at 08:45, xxxxxxxx wrote:

          Thanks!
          Once I knew what to go for - works like a charm.

          How do you know which tags should be created by the calls in baseobject - should I use MakeVariableTag for a Tvertexmap for a bone weight map and it must be the size of the entire point array? Or is there a way to make a sparse array (like selection appears to be) for bone weights?

          (Finally on to textures!)

          Thanks,
          David

          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 25/05/2003 at 08:46, xxxxxxxx wrote:

            Thanks!
            Once I knew what to go for - works like a charm.

            How do you know which tags should be created by the calls in baseobject - should I use MakeVariableTag for a Tvertexmap for a bone weight map and it must be the size of the entire point array? Or is there a way to make a sparse array (like selection appears to be) for bone weights?

            Inever got to check the null Tpolygon pointer - it never returned- I was using object->MakeVariableTag.

            (Finally on to textures!)

            Thanks,
            David

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