Object rebuilder script

Object rebuilder script

Anonymous
Not applicable
490 Views
2 Replies
Message 1 of 3

Object rebuilder script

Anonymous
Not applicable
Hi there

I want to create an animation of various architectural objects rebuilding themselves for a small project im working on .
is there a script which can slice \ fold objects ?

Can this effect be done without scripting ?

Cheers



Adam
0 Likes
491 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I would think if there are not too many objects, it's pretty easy to do without scripting. For slicing, use Section or Slice and/or Cap Holes and animate the slice plane position. For folding, try Bend modifier and animate the bend amount.

But if you have a lot of objects, like hundreds. then scripting is the way to go. (For instance last year I did a building cutaway where each joist and stud and railing picket appeared in a new frame. This was pretty easy to script using the visibility controller, but if I had to do it manually I would still be working on it.) You can try doing one object manually with the Listener turned on and go from there.

-- ANIMATES SELECTED OBJECTS APPEARING AT REGULAR FRAME INTERVAL
starttime = 2046 -- START TIME (FRAME)
finterval = 1 -- TIME BETWEEN APPEARANCES (FRAMES)
fadetime = 1 -- DURATION OF FADE-IN (FRAMES): MINIMUM 1
a = selection as array
for n=1 to a.count do (
a.visibility = 1.0
nvc = a.visibility.controller = Linear_Float()
deleteKeys nvc #allKeys
nvc.value = 0.0
curtime = starttime + ((n-1)*finterval) --SO AT n=1, curtime=startime
animate on (
at time (floor curtime) nvc.value = 0.0
at time (floor (curtime + fadetime)) nvc.value = 1.0
)
) -- END FOR N
0 Likes
Message 3 of 3

Anonymous
Not applicable
Dear Gary,

u the man, thanks for the input,

right now i still gotta model some stuff and render some animations, deadlines etc.. lol

ill be checking it out just as soon as i get back to work and let u know what i find.



cheers and Respect !
0 Likes