Jump to content

pdeb

Limited Member
  • Posts

    26
  • Joined

  • Last visited

Everything posted by pdeb

  1. pdeb

    XPresso & CSV File

    Hi Claire, I will point you to Niklas Rosenstein's NR Toolbox, which contains both a CSV Effector for MoGraph, as well as a CSV Xpresso node - both can be used to read in values from a CSV file and read out values that can be used to drive other parameters: https://github.com/nrosenstein-c4d/c4d-nr-toolbox You could probably run use the Xpresso node and an Iterator to populate MoText with strings from the CSV. hopefully that gets you going in the right direction, pdeb
  2. Brilliant as always Cairyn, thanks very much. I'll put that in the works and see what I come up with. Will post if/when successful. P
  3. Hello all, Wondering if anyone's seen an Xpresso setup to create linear splines tangential to 2 circles as in the attached. I know that someone made a script for Illustrator named Common Tangents: http://shspage.com/aijs/en/#common but wanted to see if there was a C4D solution before I set down the path of learning a little more geometry theory (which would fun in its own right). Maybe dynamics with a very stiff setting or shrinkwarp may work as a solution. Thanks for any help, P
  4. This seems to work. import c4d from c4d.modules import mograph as mo def main(): md = mo.GeGetMoData(op) if md is None : return False vtxu = op[c4d.ID_USERDATA,1] if vtxu is None : return False nb = md.GetCount() warr = md.GetArray(c4d.MODATA_WEIGHT) vtxs = vtxu.GetAllHighlevelData() if len(vtxs) != nb : return False for i in xrange(nb): vtxw = vtxs[i] warr[i] = vtxw md.SetArray(c4d.MODATA_WEIGHT, warr, True) return True
  5. Hi all, Python question from a complete and utter coding novice. I have a cloner set to object, and the reference object has an animating vertex map. I'm fumbling with the Python Effector to translate the individual point vertex map values to mograph weights for clones positioned at the corresponding vertices. The Python Effector would store the weights and subsequent effectors (like Inheritance) would use the weights as Falloff, so clones would animate as the vertex map animated. Here's my first go at the Python. I feel I'm close but somehow the array from the vertex map is not getting to the mograph weights (does it call for a RangeMap?). If anyone can help, would be greatly appreciated. import c4d from c4d.modules import mograph as mo from c4d import utils as u arr = [0.0] def main(): global arr sourceVmap = op[c4d.ID_USERDATA,1] sourceData = sourceVmap.GetAllHighlevelData() cnt = len(sourceData) if len(arr) != cnt: diff = cnt - len(arr) arr.extend([0.0]*diff) md = mo.GeGetMoData(op) if md is None: return False count = md.GetCount() index = md.GetCurrentIndex() marr = md.GetArray(c4d.MODATA_MATRIX) warr = md.GetArray(c4d.MODATA_WEIGHT) fall = md.GetFalloffs() for i in xrange(0, count): arr[i] = sourceData md.SetArray(c4d.MODATA_WEIGHT, arr, True) return True
  6. Hi all, A few years ago I bought a suite of xsyann's plugins, and now need to download the latest versions of what I purchased. I've tried to reset my account password on his website, but to no avail (I get an error), and messages to his website contact form go unanswered. Does anyone know if he's still actively administering his account? thanks in advance, Peter
×
×
  • Create New...