Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Map Cubic Projection of object down to UVs with IDM_ASSIGN_UVW

    Cinema 4D SDK
    python r21
    1
    2
    393
    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.
    • FSSF
      FSS
      last edited by FSS

      Im assiging UVs in Script,
      and have the problem that i dont seem to be able to convert a CUBIC_PROJEKTION on a object down into UVs that would persist outside of the Cinema4D format.

      My collague gave me the advice to perform the equivalent to Assign_UVS in code and i researched and found the command IDM_ASSIGN_UVW in C4D_Symbols.h but it has no Numbercode to call mapped to it.

      How do i call this command in scfript?
      I know of GENERATE_UV_COORDS with 12235. But this

      doc.SetActiveObject(obj)
      c4d.CallCommand(CMD.GENERATE_UV_COORDS, CMD.GENERATE_UV_COORDS)  # Generate UV Coordinates
      

      does not "bake" the CUBIC projection down.

      1 Reply Last reply Reply Quote 0
      • FSSF
        FSS
        last edited by

        We life and learn.
        Turns out one must select the material tag with

        doc.SetActiveTag(textureTag)

        before calling the command

        c4d.CallCommand(CMD.GENERATE_UV_COORDS, CMD.GENERATE_UV_COORDS)

        to bake the projection down, down into the ground. It now works as intended.

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