Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography



Maxunderground news unavailable

help
show user profile  jolcka
hello, im trying to asign 1 material to multiply objects as follows:

s1 = [255, 255, 255]

for i = 1 to 100 do
(


Foliage name:"abc" Height:a Density:1 Pruning:b pos:[(i*70)+xpos,ypos,zpos] isSelected:on
VNmat = StandardMaterial \
name:"VNmat" \
diffuse:s1
$abc.material = VNmat
)


ir creates 100 objects, but the problem is only the first 2 objects gets the material collor i assign at s1, the later ones gets some random collor which i have no idea where it comes from.

so i would like to ask if someone know whats the problem in here, i hope i made my self clear, if not please ask me for details.

dont mind the xpos,ypos,zpos, they are some user spesific numbers.
read 441 times
3/2/2010 10:55:41 PM (last edit: 3/2/2010 10:57:56 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org