Page MenuHome

Add example for dependency graph passed to handlers
AbandonedPublic

Authored by Sergey Sharybin (sergey) on Mon, Sep 9, 5:41 PM.

Details

Summary

There could be some more interesting action happening there,
so open for suggestions.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 4856
Build 4856: arc lint + arc unit

Event Timeline

Made example actually do something

Brecht Van Lommel (brecht) requested changes to this revision.EditedMon, Sep 9, 6:16 PM

Can you use noise based on the frame number instead?
https://docs.blender.org/api/master/mathutils.noise.html

It's somewhat confusing if viewport and render, or repeated renders give different results each time.

This revision now requires changes to proceed.Mon, Sep 9, 6:16 PM

Can you use noise based on the frame number instead?

Wouldn't help. To make things reproducible at a given frame addition can not be used. As in, you can assign location to some value based on a noise value calculated at a given frame number. But then the entire idea of this example fades away: no access to an evaluated value is happening.

https://docs.blender.org/api/master/mathutils.noise.html

This is most useless documentation: no input or output ranges are specified.
Took a while to understand why Perlin noise is always returning 0.

Where is this documentation defined so we can fix it?

It's somewhat confusing if viewport and render, or repeated renders give different results each time.

Well, maybe it's all wrong approach all together to try doing something smart in the handler. It is too limited to create some meaningful setup.
Can as well just print evaluated locations of objects and leave the rest to whoever-is-reading-the-example, but that's kind of stupid.