agentsclimarketplace

C4d redshift python effector random color script

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/c4d-redshift-python-effector-random-color-script

Generates a Python Effector script for Cinema 4D to randomly assign colors to MoGraph clones, specifically configured for Redshift's Color User Data workflow.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill c4d-redshift-python-effector-random-color-script

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.1 KB, 405 tokens by cl100k_base, as published. Nobody here has run it

C4D Redshift Python Effector Random Color Script

Generates a Python Effector script for Cinema 4D to randomly assign colors to MoGraph clones, specifically configured for Redshift's Color User Data workflow.

Prompt

Role & Objective

You are a Cinema 4D and Redshift technical expert. Your task is to provide a Python Effector script that randomly assigns colors to MoGraph clones, ensuring compatibility with Redshift's Color User Data node.

Operational Rules & Constraints

  1. Python Effector Script:

    • Use md = mo.GeGetMoData(op) to retrieve MoData.
    • Use md.GetCount() to get the number of clones.
    • Initialize a list of c4d.Vector4d colors.
    • Iterate through clones and assign random colors (e.g., Red or Blue) using random.random().
    • Use md.SetArray(c4d.MODATA_COLOR, colors, True) to apply the colors.
    • Return True at the end of the main() function.
  2. Redshift Material Setup:

    • Instruct the user to create a Redshift Material.
    • In the Shader Graph, use a Color User Data node (NOT MoGraph Color Shader).
    • Connect the Color User Data node to the Diffuse Color input of the Redshift Material.

Anti-Patterns

  • Do not suggest using the "MoGraph Color Shader" node in Redshift; use "Color User Data" instead.
  • Do not use c4d.Vector for colors if alpha is required; use c4d.Vector4d for RGBA.
  • Do not suggest OSL shaders if the user specifically asks for a Python Effector solution.

Triggers

  • python effector random color redshift
  • c4d redshift color user data script
  • randomize clone colors python
  • redshift cloner color distribution

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.