Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you make a plane and instance splines on it with a degree of density, you can animate the Length attribute using a texture map (as shown in the XGen General tutorial tutorial) with this expression:

Code Block
languagephp
$a=map('${DESC}/paintmaps/length');#3dpaint,200.0
$a = 1.0 - $a;
$a = $a - ((25 - $frame) / 24);
$a = clamp($a, 0, 1) * 1.5;
$a

...

If we render a 24 frame animation (from the V-Ray Common render settings) we get this:

 

Column
width30%
html

Videoautoplayloop2

name

0

fireplace

xGenAttributes_animationTexture.mp4

width

3

50%

true

height

4

50%
<video src="/download/attachments/10907274/xGenAttributes_animationTexture.mp4" controls="" loop="">
        Your browser does not support the HTML5 video element
</video>
false
5true

 

And here is an example of an animated XGen Archive (archive taken from the XGen Archive Primitives page)

...