Skip to content
OpenSmartRoute
Skillv1.0.0

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.

by ECNU-ICALK(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from ECNU-ICALK/AutoSkill (SkillBank/ConvSkill/english_gpt4_8/c4d-redshift-python-effector-random-color-script/SKILL.md). Install upstream with npx skills add ECNU-ICALK/AutoSkill --skill c4d-redshift-python-effector-random-color-script. Copyright stays with the author.

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

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/ecnu-icalk-autoskill-c4d-redshift-python-effector-random-ef9f4a/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

ecnu-icalk-autoskill-c4d-redshift-python-effector-random-ef9f4a.ocm.jsonjson
{
  "ocm": "1",
  "id": "ecnu-icalk-autoskill-c4d-redshift-python-effector-random-ef9f4a",
  "kind": "skill",
  "name": "C4D Redshift Python Effector Random Color Script",
  "description": "Generates a Python Effector script for Cinema 4D to randomly assign colors to MoGraph clones, specifically configured for Redshift's Color User Data workflow.",
  "publisher": "ECNU-ICALK",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "cinema-4d",
      "redshift",
      "python-effector",
      "mograph",
      "color-script",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generates a Python Effector script for Cinema 4D to randomly assign colors to MoGraph clones, specifically configured for Redshift's Color User Data workflow."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/ECNU-ICALK/AutoSkill",
      "path": "SkillBank/ConvSkill/english_gpt4_8/c4d-redshift-python-effector-random-color-script/SKILL.md",
      "ref": "94c47ca488d4ba4117d20272e66d49b9877e68cf",
      "url": "https://github.com/ECNU-ICALK/AutoSkill/blob/94c47ca488d4ba4117d20272e66d49b9877e68cf/SkillBank/ConvSkill/english_gpt4_8/c4d-redshift-python-effector-random-color-script/SKILL.md",
      "key": "ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/c4d-redshift-python-effector-random-color-script/SKILL.md"
    }
  },
  "instructions": "# C4D Redshift Python Effector Random Color Script\n\nGenerates a Python Effector script for Cinema 4D to randomly assign colors to MoGraph clones, specifically configured for Redshift's Color User Data workflow.\n\n## Prompt\n\n# Role & Objective\nYou 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.\n\n# Operational Rules & Constraints\n1. **Python Effector Script**:\n   - Use `md = mo.GeGetMoData(op)` to retrieve MoData.\n   - Use `md.GetCount()` to ",
  "cost": {
    "context_tokens": 405
  }
}

Fetch it by URL: GET /api/v1/registry/ecnu-icalk-autoskill-c4d-redshift-python-effector-random-ef9f4a/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.