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

    UVW Data setting

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 587 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 06/10/2006 at 06:12, xxxxxxxx wrote:

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

      ---------
      Hi,

      the docs say it´s not allowed to access the UVW data of an UVW tag directly.

      The problem I have is that I cannot allocate an UVW tag for my polygon object directly, as the polygon count is dynamic and therefore impossible to allocate the correct UVW data count beforehand. And allocating the UVW tag after the polygon creation and filling it using the Set() method would require another loop thru all the polygons which is not feasible concerning performance.

      Or does PolygonObject::ResizeObject() also change the UVW tag count? (which I don´t think)

      So is there a way to set a dynamically allocated array of UVWStruct data directly to an UVWTag?

      Thank you!
      Katachi

      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 09/10/2006 at 02:23, xxxxxxxx wrote:

        Anybody? I need a solution for this urgently! My client is waiting! What about the new plugincafe support member. I thought this would speed up things a little. 😠

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

          Afaics this is not possible, unless you somehow want to hack the GetDataAdress() array. I haven't tried it myself, so I don't know what its format is nor if the warning in the docs is warranted. Nevertheless, I've sent a mail to the developers asking if there's a workaround (other than the obvious one you've already stated: using the Set() function).

          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 09/10/2006 at 11:49, xxxxxxxx wrote:

            Thank you Mikael!

            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 13/10/2006 at 03:21, xxxxxxxx wrote:

              So, what do the devs say?

              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 13/10/2006 at 21:46, xxxxxxxx wrote:

                The answer is that there's nothing bad that would happen in the current version if you access the data through GetDataAddress(). The reason for the warning is that the format has changed in the past and may do so in the future. So I would recommend having a version check around the hack, defaulting to the safe Set() method for other versions.

                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 14/10/2006 at 02:54, xxxxxxxx wrote:

                  Great! Thank you Mikael!

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