It is currently 18 May 2013, 08:42

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Setting ice values to poly clusters.
PostPosted: 02 Jul 2012, 03:18 
Offline

Joined: 16 Jun 2009, 09:28
Posts: 79
Hi all,

I'm trying to set the vertex colours of a specific cluster through ice and I'm kinda stuck. I'm just not sure how to set only to those polys.
Can someone point me in the right direction?

Thanks
Pete


Top
 Profile  
 
 Post subject: Re: Setting ice values to poly clusters.
PostPosted: 02 Jul 2012, 08:55 
Offline

Joined: 27 Aug 2010, 22:25
Posts: 145
If cluster ISelement equals yes, then execute the set data.

Should do it


Top
 Profile  
 
 Post subject: Re: Setting ice values to poly clusters.
PostPosted: 02 Jul 2012, 09:07 
Offline

Joined: 16 Jun 2009, 09:28
Posts: 79
Hi Pooby,

Thanks for the reply, I could understand how that would work but I'm not sure how would you put that in an ice tree?

Thanks
Pete


Top
 Profile  
 
 Post subject: Re: Setting ice values to poly clusters.
PostPosted: 02 Jul 2012, 09:25 
Offline

Joined: 27 Aug 2010, 22:25
Posts: 145
Ok,Im on the train without a computer, but I'll have a go.

On the left you have a get data node. This contains the cluster iselement attribute, which is a Boolean. (orange)
This plugs into the boolean input on an IF node.
In the false section, plug nothing in as if ISnot part of the cluster, you want it to do nothing.
In the true section, plug in the bit that sets the vertex colours ( however you want to do that )
Plug the output of the IF node into an execute port.

This will only execute on the elements that are part of the cluster.


Top
 Profile  
 
 Post subject: Re: Setting ice values to poly clusters.
PostPosted: 02 Jul 2012, 10:46 
Offline

Joined: 16 Jun 2009, 09:28
Posts: 79
Ahhh, cool I was just having trouble finding the cluster is element attribute.

That worked but now it has a context issue. Any ideas how to get past this?
Image

Thanks
Pete


Top
 Profile  
 
 Post subject: Re: Setting ice values to poly clusters.
PostPosted: 02 Jul 2012, 19:04 
Offline

Joined: 27 Aug 2010, 22:25
Posts: 145
It's because the color at vertices map isn't in per poly context. It's per sample.
If you want to do it per sample, you'll need To first set the data to something like self.Whatever
Then in a get data, use the Nodelocation attribute and have a get data coming from that, finding self.whatever
That will be in sample context (I think) so you can plug it into the colour at vertices map.

I know it sounds odd, but samples are unusual as there are 4 at each vertex. Luckily, you don't usually deal with them.


Top
 Profile  
 
 Post subject: Setting ice values to poly clusters.
PostPosted: 03 Jul 2012, 01:02 
Offline

Joined: 16 Jun 2009, 09:28
Posts: 79
Thanks pooby,

I keep stumbling into this so I'd better get my head around it :)

I guess it seems a little weird that you set the data then just get it again. I suppose the node location changes the context but I'm not sure how.

Hey your tutes are great by the way! They really helped me get a lot more out of ice.

Thanks
Pete


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group