POV-Ray : Newsgroups : povray.animations : grouping objects for transforms : Re: grouping objects for transforms Server Time
28 Apr 2024 15:45:02 EDT (-0400)
  Re: grouping objects for transforms  
From: Klewlis
Date: 5 Feb 2017 16:40:01
Message: <web.58979b216098c6675f9209890@news.povray.org>
This is what I came up with, and works well.
Thank you all for the help.

union{

#if(frame_number>0)
object { LongPlate
    rotate z*90
    rotate y*90
    //rotate x*-90
    }
#end

#if(frame_number>1)
object { LongPlate
    rotate z*90
    rotate y*90
    translate z*94.125
    //rotate x*-90
    }
#end

#if(frame_number>2)
object { ShortPlate
    rotate z*90
    rotate y*90
    translate <3.5, 0, 95.625>
    //rotate x*-90
    }
#end

#declare a=2;

#for (i, 1.5, 241.5, 16)
    #declare a=a+1;
    #if(frame_number>a)
    object {Stud
        rotate z*90
        translate <i, 0, 1.5>
        //rotate x*-90
        }
    #end
#end

#if(frame_number>19)
    rotate x*-90
#end
}


Post a reply to this message

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