[MAYA API] Create objects through custom node.

99 views
Skip to first unread message

Anthony Durand

unread,
Feb 16, 2014, 11:23:49 AM2/16/14
to python_in...@googlegroups.com
Hi,

I want to create a custom dependency node ( maybe I need to that with another type of node ), but I don't know if what I want to do is possible, that's why I'm here, I'm sure one of you guys will be able to help me.

The basic idea is this one, I would like to have a node with a numeric input Attribute ( integer ) and depending on the value of that attribute the node would create the same amount of a specific object, e.g the user specify 5 then 5 cubes will get created in the scene and if he changes the number of cube would get updated.

If it's possible could you explain to me how exactly that work as for a dependency node we compute something depending on the output , but I don't see what would be the output here as I don't want to connect the node to anything for now.

Cheers

Anthony


Marcus Ottosson

unread,
Feb 16, 2014, 12:22:29 PM2/16/14
to python_in...@googlegroups.com
Are you thinking of something similar to the Copy SOP of Houdini?

I've seen similar custom nodes like that before so I believe its possible. Perhaps have a look at the MASH nodes. It doesn't seem to do what Copy SOP is doing, but it is generating meshes. v.2 is paid and C++ compiled, but v.1 should be out there still, which is free and written in Python, so maybe the source could help you out. 


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f98aeeb4-20a8-41ab-9109-8554ebc2459e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Marcus Ottosson
konstr...@gmail.com

Marcus Ottosson

unread,
Feb 16, 2014, 12:26:50 PM2/16/14
to python_in...@googlegroups.com
Oh, and almost forgot, SOuP have a node, Copier, which might do what you're looking for. Peter Shipkov, the guy behind most of the nodes, seem quite helpful on the forums and might help answer some questions about it and similar nodes.

--
Marcus Ottosson
konstr...@gmail.com

Anthony Durand

unread,
Feb 16, 2014, 12:42:38 PM2/16/14
to python_in...@googlegroups.com
Hey Marcus,

Thanks a lot for the links. I will take a look into all of that. The principle of the copy node from Houdini and the Copier from SOup seems close to what I would like to do.

Thanks

Anthony
Reply all
Reply to author
Forward
0 new messages