On 25/03/2014 at 15:34, xxxxxxxx wrote:
Hi
I'm very new to Python but would happy to make this effect
But get at MODATA_LASTMAT only (0,0,0) as output.
Any help?
(Googel Translator)
import c4d
from c4d.modules import mograph as mo
#Welcome to the world of Python
def main() :
md = mo.GeGetMoData(op)
if md==None: return False
cnt = md.GetCount()
marr = md.GetArray(c4d.MODATA_MATRIX)
marr_p = md.GetArray(c4d.MODATA_LASTMAT)
col = md.GetArray(c4d.MODATA_COLOR)
for i in xrange(0, cnt) :
a = marr _.off
b = marr_p _.off
print b
md.SetArray(c4d.MODATA_MATRIX, marr, True)
md.SetArray(c4d.MODATA_COLOR, col, True)
return True