[MAYA API] Create object through a custom node.

26 views
Skip to first unread message

anthony

unread,
Feb 16, 2014, 10:53:58 AM2/16/14
to python_in...@googlegroups.com
Hi,

I would like to create a dependency node ( or maybe I need another type of node ), but I don't know if what I want to do is possible.

The idea will be to have one input attribute ( an integer ), and depending on the value of that attribute object would get created in the scene, e.g the user specify 5 then 5 cubes would get created and if he changes the number that would update the number of cube in the scene.

If it's possible how exactly would that work, as in the dependency node we
"do something" depending on the output, but in my case I don't see what could be the output.

Thanks

dgovil

unread,
Feb 16, 2014, 4:11:09 PM2/16/14
to python_in...@googlegroups.com
You can create this with a polygon shape node.
There are a couple examples i believe in c++ in the dev examples that will show how to make the geometry.
Reply all
Reply to author
Forward
0 new messages