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

    How rotate Bitmap material [SOLVED]

    SDK Help
    0
    5
    431
    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

      On 04/01/2015 at 17:20, xxxxxxxx wrote:

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

      ---------
      I need to rotate with Angle a Bitmap Material using Transformation effect or any other method, I don't know the correct parameters names to access it using Coffee Script.

      I'll be gratefully if someone can help me.

      Thank you.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 04/01/2015 at 17:44, xxxxxxxx wrote:

        You can use the Coordinates on the Texture tag associated with the Material to rotate on the object if and only if the mapping is *not* UVW, Camera, or Frontal.  This does not literally rotate the bitmap but simply rotates the texture application on the object.

        Otherwise, you will need to rotate the bitmap yourself and decide whether to clip the pixels to retain the bitmap wxh or update the wxh to fit all of the pixels.  That would be a bit of coding and probably not something to do in a COFFEE script.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 05/01/2015 at 03:32, xxxxxxxx wrote:

          Thanks Robert for you reply, I can't use the Coordinate on the Texture because the mapping is UVW.
          With C4D igu exit 2 solutions to do it, but i don't know how program it with Coffee Script:

          1. In Material- Color-Texture add a Layer with Effect Transfrom and change Angle propierty.
            OR
          2. Select object, open UV Tools (UV Mapping) and in Transfrom option change Rotate propierty.

          The problem for me is do it with coffee Script. !!!!

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 05/01/2015 at 09:48, xxxxxxxx wrote:

            Hello,

            Editing a Layer Shader is currently only possible using the C++ SDK. There you can edit the Transformation Parameters[URL-REMOVED].

            Also applying the UV commands using CallUVCommand()[URL-REMOVED] is only possible in C++.

            So for this specific task you have to use the C++ SDK. For new scripts I suggest to switch to the Python SDK (where possible), which is more extensive than the Coffee SDK.

            Best wishes,
            Sebastian


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              On 05/01/2015 at 11:47, xxxxxxxx wrote:

              Thank you Sebastian, I'll try to do like you comment.

              Best regards.

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