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

    Hints on Per-vertex UVs and Normals; FOV Animation

    PYTHON Development
    0
    5
    1.4k
    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 20/01/2011 at 07:50, xxxxxxxx wrote:

      I need to load up per-vertex UV coordinates and normal vectors into a polygon object, anyone have some code snippets or hints so I don't have to thrash around as much?

      Also, what is the right DescID code to create a CTrack for a camera's field of view? (Is there somewhere to look these up? Or are they just magic pixiedust?)

      Thanks for the earlier help on animation, I've got that up and running no problem.

      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 20/01/2011 at 08:01, xxxxxxxx wrote:

        Originally posted by xxxxxxxx

        Also, what is the right DescID code to create a CTrack for a camera's field of view? (Is there somewhere to look these up? Or are they just magic pixiedust?)

        You can obtain IDs simply by dragging them into the console or the script editor. See attached image.

        cheers,
        Matthias

        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 20/01/2011 at 08:18, xxxxxxxx wrote:

          I know about that, that code lets me SET the FOV already.... but is it used for the DescID code? ie

          c4d.DescLevel(c4d.CAMERAOBJECT_FOV,c4d.DTYPE_REAL,0)
          

          Or is there a separate ID_.... code like there was for the position? I haven't seen anything that describes what this overall scheme is.

          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 20/01/2011 at 09:02, xxxxxxxx wrote:

            Left out the DescID part around that FOV DescID... does work though for future readers.

            Still hoping for help on the main question about per-vertex UV's and normals ... let's just say the documentation leaves a lot to the imagination. Tags ... am I getting warmer?

            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 20/01/2011 at 15:42, xxxxxxxx wrote:

              OK, I have UVWTags figured out. Please correct the documentation for UVWTag.SetSlow so that the types of a..d are Vector, not int.... believing they were int I tried for a while to pass in UV vertex indices and pass in the actual data with SetAllHighlevelData but that was a big fail. I have to say I'm a bit concerned when I have to call something named GetSlow thousands of times in a row.

              I'm assuming there must be a similar way to set up a NormalTag but I don't see anything to support that idea.... I can jam a lot of normal data into a VariableTag, but what is the right type? And should it be 4 normals per facet as with UVWs?

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