![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				adding texture to each sub object
			 
			
			
			hello... 
		
		
		
		
		
		
		
		
	
	i want to make use of multi-layered texturing in vizard, i tried it on a single object that contains a single mesh, it works. the problem now is that i have an obj file contains a number of meshes, each has it texture, and i want to add a new textuer layer for each mesh.. how can i get the meshes in my obj suppose its name "palace". thank you in advance  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			When applying a texture to an object, you can optionally specify the name of the sub-node you want it to be applied to. If your model contains a sub-node named palace then you can apply a texture to it using the following sample code: 
		
		
		
		
		
		
		
		
	
	Code: 
	# Apply texture to first unit model.texture(tex1,node='palace') # Apply texture to second unit model.texture(tex2,node='palace',unit=1)  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			to be clear i have a 3DS file contains a group named advArabianCastle_G and it has 300+ children meshes (one of them called "frontDoor") each with its own texure, for each mesh i want to add another texture from within vizard. 
		
		
		
		
		
		
		
		
	
	and i have imported the file and called it palace in vizard. can you help me getting the child node name, or adding the texture to "frontDoor"? *hint i used the palace.getChildren() and it returned nothing  | 
![]()  | 
	
	
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM | 
| Applying texture or colour to an on-the-fly object | tomo_the_third | Vizard | 1 | 06-22-2009 12:12 PM | 
| Randomly and Continuously Change Avatar's Face Texture | Karla | Vizard | 4 | 08-22-2008 01:14 PM | 
| rotate to object | jargon | Vizard | 1 | 08-08-2005 01:20 PM | 
| Move texture from one object to another | Johannes | Vizard | 2 | 02-09-2005 04:55 PM |