Jump to content

CyBear

Limited Member
  • Posts

    49
  • Joined

  • Last visited

Everything posted by CyBear

  1. CyBear

    If else Loop

    Thank you! It works! Well that just saves me just about 180 lines of code and 720 number alterations. I can go home early today 😉.
  2. CyBear

    If else Loop

    Hi all, I am currently working on a project that uses bits and bobs of Python to switch materials every X frames (Input 2) while counting the frames of the animation (Input 1). My programming skills are pretty limited, so I came up with a code that looks like this (see attachment). It ain't pretty, but it works. Now I need to extend this to more than 100 entries. I just know there must be a simpler way to reduce this script with a loop or something similar. Anyone of you have an idea or a reference? Thanks in advance.
  3. Thanks Cairyn, you are a life-safer!
  4. Hi all, First, I have hardly any experience with Python, (I can barely manage an If-else statement). I came across a Python Effector for MoGraph that I kinda really badly need in a project where object from different sizes should stick to each other. This Effector does work brilliantly, but only in version 20. Somewhere between 20 and 26 I presume a cloner thing has has changed. Although the script is pretty tiny (only 31 lines of code and no errors), I can't figure out what is amiss. If any of you can help me out here, I would be very grateful. Cheers Effecteur Python linéaire à espacement régulier-1.c4d
×
×
  • Create New...