Scripting Animation

lmoroneylmoroney Posts: 41
edited December 1969 in Art Studio

Can I write scripts in Daz to animate multiple objects, instead of me having to manipulate each on the timeline?

If so, is there a good tutorial for this?

(I.E. I create 50 spaceships in a scene, and I want them all to move across the scene -- is it possible to write a for-loop to change their X-position over time, or something like that)

Laurence

Comments

  • bighbigh Posts: 8,147
    edited December 1969

    lmoroney said:
    Can I write scripts in Daz to animate multiple objects, instead of me having to manipulate each on the timeline?

    If so, is there a good tutorial for this?

    (I.E. I create 50 spaceships in a scene, and I want them all to move across the scene -- is it possible to write a for-loop to change their X-position over time, or something like that)

    Laurence

    yes you could write a script or you can put your rendered scene on a plane and move the plane
    so it looks like the ships are moving .

  • lmoroneylmoroney Posts: 41
    edited December 1969

    Where can I find tutorials on how to write such scripts? Thanks...

  • Richard HaseltineRichard Haseltine Posts: 100,871
    edited December 1969

    If you want them to move together just parent most of them to a single example and move that, or parent them all to a new Null and move that. If you want them to move relative to each other set up the motions for individual ships, or small groups, and save Pose Presets for each to apply to the ships in the complete scene.

  • lmoroneylmoroney Posts: 41
    edited December 1969

    Thanks...but that's not what I'm looking for here. What I would love to see is the use of the scripting language to do something like:

    foreach(frame f in frames)
    {
    foreach(object o in f)
    {
    o.x+=something;
    o.y+=something;
    }
    }

    So in that way I can programatically set animations, instead of trying to do it manually...

    Are there any docs around this?

  • bighbigh Posts: 8,147
    edited December 1969

    lmoroney said:
    Thanks...but that's not what I'm looking for here. What I would love to see is the use of the scripting language to do something like:

    foreach(frame f in frames)
    {
    foreach(object o in f)
    {
    o.x+=something;
    o.y+=something;
    }
    }

    So in that way I can programatically set animations, instead of trying to do it manually...

    Are there any docs around this?

    http://www.daz3d.com/forums/categories/60/

Sign In or Register to comment.