Hello all!
I have this python code running in a Python Tag:
import c4d
from c4d.modules import mograph as mo
from c4d.utils import RangeMap
def main():
obj = op.GetObject()
cl_count = mo.GeGetMoData(obj).GetCount()
spline = obj[c4d.ID_USERDATA,2]
ms_tag = obj.GetTag(c4d.Tmgweight)
if not ms_tag:
print 'No weight tag'
return
wlist = []
for val in xrange(cl_count):
res = RangeMap(value=val, mininput=0, maxinput=cl_count-1, minoutput=0.0, maxoutput=1.0, clampval=False,curve=spline)
wlist.append(res)
mo.GeSetMoDataWeights(ms_tag,wlist)
it works if applied to Matrix Object, Cloner, but problem with MoText it updates after object reenabling.
In Cinema 4D R18 it works fine.
0_1551888567454_mikeudin_mograph_tag_weight.c4d