View Full Version : Shave and Haircut - Querying guide hairs

03 March 2009, 05:02 PM

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[274][14][295][14][315][14][335][14][354:355][14][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.


just returns

// Error: Invalid use of Maya object "". //

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[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.

03 March 2009, 04:58 PM
i haven't played with guidehairs before so this may not help you, but you can get the number of cvs with the following:

size `ls -fl "

03 March 2009, 11:31 AM
Unfortunately, this don't work...

int $i = size(`ls -fl "
// Result: 0 //
print $i;

CGTalk Moderation
03 March 2009, 11:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.