Phlok
03-25-2009, 05:02 PM
Hi,
Does anyone have an idea how to query the guide hairs in shave and haircut?
If I select some of them, the script editor echoes
select -r shaveHair1.cv[274][14] shaveHair1.cv[295][14] shaveHair1.cv[315][14] shaveHair1.cv[335][14] shaveHair1.cv[354:355][14] shaveHair1.cv[373:375][14] ;
That's logical, so far.
But I don't understand how to query how many guide hairs there are. And I need this value because it's the starting point for the real stuff I want to programm.
size(shaveHair.cv)
just returns
// Error: Invalid use of Maya object "shaveHair1.cv". //
wich don't get me any further.
I know a guide hair is "growing" out of every vertex in the base geometry (e.g. a poly sphere) and the shaveHair1.cv[id] equals the vertex id of the basic polygon object, but there has to be a way to query the guide hairs directly without the need for querying the poly sphere, first.
Does anyone have an idea how to query the guide hairs in shave and haircut?
If I select some of them, the script editor echoes
select -r shaveHair1.cv[274][14] shaveHair1.cv[295][14] shaveHair1.cv[315][14] shaveHair1.cv[335][14] shaveHair1.cv[354:355][14] shaveHair1.cv[373:375][14] ;
That's logical, so far.
But I don't understand how to query how many guide hairs there are. And I need this value because it's the starting point for the real stuff I want to programm.
size(shaveHair.cv)
just returns
// Error: Invalid use of Maya object "shaveHair1.cv". //
wich don't get me any further.
I know a guide hair is "growing" out of every vertex in the base geometry (e.g. a poly sphere) and the shaveHair1.cv[id] equals the vertex id of the basic polygon object, but there has to be a way to query the guide hairs directly without the need for querying the poly sphere, first.
