royter
made the same connection as the example scene file but but nothing happens (akthiugh i can see the connection in the soup node attribute), any guidelines for this tool?
Reply 0 0
pshipkov
Hard to say. Can you pass a scene.
Reply 0 0
noizfactory
I think you need to go through the deleteComponents node for this to work. Have you hooked that up as well?
Reply 0 0
royter
ok first i meant the bound tool and not the cage tool.
here is the scene, i only plugged one connection just like the exemple scene, but still nothing happens:

http://www.youfile.net/download.php?file=adfa1cc53eb33cab546758594bc1675d

Reply 0 0
pshipkov
Run these two commands in your scene:

createNode mesh;
connectAttr bound1.outGeometry polySurface1.inMesh;
Reply 0 0
royter
could u explain why is it necessary to create a nodemesh, i mean my torus has already a transform and a shape node?
and why should the connection be done via the command line and not manually in the hypergraph?

is this the standard method for this tool?

Reply 0 0
pshipkov
Well, that's how Maya works.
The bound node is data generator based on the MPxNode class. That class does not have methods to draw stuff on screen. We have to pipe its output into a node that is based on MPxLocatorNode class. That class has methods to draw stuff using OpenGL. As a result the we end up with the next nodal network:

inputData (mesh) -> bound (data generator based on the input) -> mesh (data container that draws stuff on screen).

Reply 0 0
JeremyR
pshipkov wrote:
Well, that's how Maya works.
The bound node is data generator based on the MPxNode class. That class does not have methods to draw stuff on screen. We have to pipe its output into a node that is based on MPxLocatorNode class. That class has methods to draw stuff using OpenGL. As a result the we end up with the next nodal network:

inputData (mesh) -> bound (data generator based on the input) -> mesh (data container that draws stuff on screen).


Does that mean there is no way to call any openGL methods from a node derived from MPxNode class?
Reply 0 0
chapi007
Is there anyway to do a cage where only parts(faces) of the mesh outside the cage are displayed.
Reply 0 0
pshipkov
yes.
pipe the output of the cage node to group node. then turn-on the "invert" option in the group one. then pass this to deleteComponents.
Reply 0 0
Reply