Page 3 of 3
Re: OctaneRender® for Maya® 3.04.5 - 9.4 Win [STABLE]
Posted: Wed Nov 30, 2016 10:07 am
by Jolbertoquini
calus wrote:I don't think/remember of an easy way to convert instance to particle instancer,
but it should not be too hard to script, basicaly emit one particle at each instance world position, write the rotation attribute and axes, and attache an instancer.
I don't remember if we can write directly in the instancer without particles, I'll look at it when I have more time.
Thanks Calus, You right I think is possible cause you can create in maya independent particles with maya particles tools.

you right this would be a big help on this.
Re: OctaneRender® for Maya® 3.04.5 - 9.4 Win [STABLE]
Posted: Wed Nov 30, 2016 10:05 pm
by calus
Jolbertoquini wrote:calus wrote:I don't think/remember of an easy way to convert instance to particle instancer,
but it should not be too hard to script, basicaly emit one particle at each instance world position, write the rotation attribute and axes, and attache an instancer.
I don't remember if we can write directly in the instancer without particles, I'll look at it when I have more time.
Thanks Calus, You right I think is possible cause you can create in maya independent particles with maya particles tools.

you right this would be a big help on this.
Right and the
emit command, mel or python, is really straighforward.
So I looked at feeding the instancer node directly from script without using particle and that's not possible, MFnArrayAttrsData the API fonction is not exposed to python.
But there's a simpler way to do it without scripting

using the
arrayToDynArrays node, from the SOUP plugin.
http://www.soup-dev.com/examples2_8.htm
Re: OctaneRender® for Maya® 3.04.5 - 9.4 Win [OBSOLETE]
Posted: Thu Dec 01, 2016 10:44 am
by calus
I made a tutorial to convert instance to instancer:
viewtopic.php?f=126&t=57786