POV-Ray : Newsgroups : povray.general : Modify already created object : Modify already created object Server Time
8 Jul 2024 14:20:43 EDT (-0400)
  Modify already created object  
From: bublible
Date: 28 Aug 2014 12:40:01
Message: <web.53ff5aa416956db3b91df8500@news.povray.org>
Is there any option how to modify some attributes of some already created
object...like changing scale of some polygon instance named "PODKLAD"?

Because this example from another post makes three new objects instead of 3x
modifying the one existing object:

#declare ball = sphere {
 1, <0, 1, 0>
 pigment {rgb <1, 0, 0>}
 //... and so on
}

object {
 ball
 translate <0, 1, 0>
}

object {
 ball
 pigment {rgb <1, 0, 0>}
//not sure that this will override the pigment statement in the #define'd ball
}

object {
 ball scale <10, 10, 10>
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.