MrFurious
Hey everyone,

i'm trying to replicate the simple tension.ma setup in 2012.  I wanted to start and playaround with tension maps...etc.

anywho... i played with the example scene and successfully piped the shape of the character to a vray vertex color node... (simular to the mr setup in the example scene).  and all is groovy.  until....

i tried to created it from scratch in a new scene.  Am i missing something? but it appears that the "shape.colorSet[0].colorName attr is not passed through the shape node when the tension map is inserted from the intermediate object to the shape.  (yes i have a rest and in geo shape).  Again was working with the already created example scene... but not from scratch.  Is there something else i need to do to pass the new colorSet?  it is visible in the colorSet editor when i select the object??

thoughts?
Reply 0 0
MrFurious
nevermind... the colorSet is there and not connected to the Current Color set of the shape.  I had to manually attach that.   Peter when is that polyColorSet node created?  is it created with the tension map?  I want to be able to query it so i know its name upon creation so i can for a connection?

thanks

A
Reply 0 0
MrFurious
ok... me thinks its a bug.  When i do a mel call on the current color set, it correctly give me the color set, but it is not showing up in the UI Mesh Controls "Current Color Set".  When in the color set editor i hit "modify" it actually creates a node then I can connect that to the "current color set" in the shape and  then the attr is available for me to pipe down stream.  If i don't do that the attr is not available to pipe out... 

make sense?

Andy
Reply 0 0
MrFurious
ok, it appears that when the connection is made but not really connected in the UI, but if you query the current color set it's there.  crazy huh.  Ok then i rand a new command to make a new colorset from maya (python) and a new set is created and set as current.  This time its updated in the interface....and everything can be piped through... now i have a "dangling" color set i need to remove.

end of the day when the tension node is connected to the shape node it creates a colorset but doesn't hook it up properly. (at least in maya 2012 hotfix 4).

i have a way around it...but just so you know.   Sorry for the stream of consciousness but i answered my own question...to a point.  would have loved for it to work out of the box, but maya probably wasn't playing nice with soup or something changed in this version for the colorset connection calls.

cheers.

Andy
Reply 0 0
pshipkov
Color sets and rendering them is clunky stuff.
Can you describe what exactly you want to do. I am a bit unclear about it.
Or better - pass an example scene if you can.
Reply 0 0
MrFurious
basically try to recreate your tension.mb example in 2012.

when the tension node is connected to the shape it creates a colorSet.  now if you look at the attr editor and goto (select the shape) goto Mesh Controls the current color set is blank.  But if you query the current color set on the mesh you get the color set that was auto created when the tension node is hooked up to the shape node.

the issue is that once you want to connect the shape to a vertex color node (vray) there is no color set available in the connection editor.  But when i create a new colorset ontop of the origional one.  Then it is connected via a query AND the UI (as described) above.  And then i can pass along the vertex color data.  Otherwise I cannot.  

basically by just creating the tension node and hooking it up exactly like you do in  your scene... it doesn't pass along the tension data in 2012 unless you monkey around with creating new sets.

i'll get you a scene.

if you open your tension.mb example scene you'll notice in the attr editor of the shape you get a properly assigned "Current Color Set"  I (in 2012 ) get nothing in that field.

stand by.

A
Reply 0 0
MrFurious

select the mesh to confrim that there is a color set applied to the mesh.
and then look at the attr editor.

then try to pipe out the color set from the mesh to a vertex node (mr or vray)... nothing there to pipe out.

origColorSet = cmds.polyColorSet('pCylinderShape1', query=True, currentColorSet=True )

Reply 0 0
pshipkov
Oh, i got what you mean.
Yes, this part is very clunky.
You have to create custom color set, the implicit one is not working out of the box.
Never investigated why really. Just accepted it as one of those things in Maya.
So yeah, your best hope is to complain to maya devs.
Reply 0 0
MrFurious
good to know i'm not crazy.  I basically did what you said.  Setting up a basic displacement system with this node. Very cool.  Making a nice easy button for the texture artist to apply this to any of the characters we're doing.

thanks!

Andy
Reply 0 0
Reply