On 17/09/2015 at 11:52, xxxxxxxx wrote:
Hi, I'm very newbie with python so I hope you can help me with this little problem.
I'm trying to make python generator object where you can link object (spline, primitive, polygon, cloner, matrix) and python generator object will make clone to every vertex point to that linked object. Clones are spline text objects so you can visualize vertex points' or clones' id's.
My setup is now pretty complicated. I have python generator object that takes object link input via userdata. Python generator makes cloner object and cloner is set to object mode and it uses linked object as object. There is also dummy cloner object and xpresso tag which I'm using to get count of clones in cloner. Python generator gets total count via userdata. This setup is working actually pretty well but I'm trying to optimize it that one python generator could do everything.
I have no idea how can insert xpresso tag to object with python generator and put some nodes and connections to that xpresso tag. Also I don't know how can I add or edit userdata input with python generator. Is that even possible? Python documentation is very confusing with this section.
Second way to do this what I tried was to import mograph module and try to get clones count with GeGetMoData(op) command. But looks like it works only with python effector not with python generator. Am I right?
I can give link to my current file if needed.
Any help will be appreciated. :thumbsup: