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
    • Recent
    • Tags
    • Users
    • Login

    writing to alpha, etc

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 98 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 19/10/2008 at 15:28, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello,
      I'm brand new with C.O.F.F.E.E (just got the Rui Batista book last night), but have some modest experience with curly brace languages.

      I'm trying to write code to do something like this sample movie .

      In other words, I've got a series of objects, and, at the appropriate time for each object (and there is some overlap), ramp down the brightness parameter of the alpha channel from 100% to 0.

      I want to have thousands of objects, with different textures, sizes, etc.

      So far I can't figure this out from the COFFEE documentation that I've come across. These are my questions:

      1. how do I set the brightness parameter of a particular object's texture's alpha channel? Are there any code samples somewhere?

      2. Is there some COFFEE function whereby I can give a target value and a ramp time, and then let it figure out the interpolation? In other words, say I wanted a parameter to go from 100 to 0 over 3 seconds--is there a function something like Ramp(<target>, <time>);, or Ramp(100, 3) ? (Even better would be some way of controlling the slope of the interpolation!) The reason I ask is because, for each object in the hierarchy, I'd like to be able to test whether its the appropriate frame for them to start doing their business, and if so, just send a message to the appropriate function setting it in motion.

      Thanks very much!,
      Michael

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