Blender demo loop

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

Post Reply
ton
Site Admin
Posts: 350
Joined: Wed Oct 16, 2002 12:13 am
Contact:

Blender demo loop

Post by ton » Sat Aug 07, 2004 11:16 am

One of the new python features is the possibility to make an automatic running loop, showing .blend files, play anims, render, do radio calculus, and so on.

You can grab what I quickly assembled for siggraph:
(with help from Ianwill :)
http://www.blender.org/bf/demos.zip (2.5 MB)

Just drag one of the .blend files on top of a 2.34 Blender executable (works with osx, windows, linux). Or start blender 2.34 and load a file.
You can exit looping by pressing ESC (sometimes twice).
In the current API, only the Play() call returns an event to denote ESC is pressed, so that's still a bit awkward.
(For useful demo looping having an ESC is crucial.)

Nevertheless, it's a very interesting method to explore two things;
- an automatic testing environment
- make a demo CD to hand out on tradeshows and send to stores

Especially the latter I like to do work on; it should be possible to make a demo cdrom that shows all kinds of Blender features in a loop, and which doesnt require any installation at all (e.g. runs from CDROM completely).

I would need more experienced python scripters for it however, so hopefully people like to pick this up and create their own 'demos' :)
The current python API allows to do *very* interesting things!

iluvblender
Posts: 24
Joined: Wed Oct 16, 2002 12:45 am
Location: Mumbai, India
Contact:

Post by iluvblender » Sat Aug 07, 2004 3:07 pm

Uber cool Ton.

Good luck for Siggraph '04.

- Satiah

dotblend
Posts: 36
Joined: Thu Oct 17, 2002 2:18 pm

Post by dotblend » Sat Aug 07, 2004 3:39 pm

pretty cool!

Q - could it also be used for tutorials?



have fun there in the states, and try to get jos stam working for blender!

peter (dotblend)

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing » Sat Aug 07, 2004 3:41 pm

dotblend wrote:Q - could it also be used for tutorials?
Yes, it could be used for interactive tutorials. It'd require some time for scripting it, but you can ie. enter/leave editmode for an object through the blender python api. Also, you can set what layers are visible, so you could make a progress chain in different layers and wait for specific user input to switch to the next, or add layers progressively.

/jesterKing

jms
Posts: 33
Joined: Sat Oct 19, 2002 3:04 pm

Post by jms » Sat Aug 07, 2004 4:27 pm

jesterKing wrote:
dotblend wrote:Q - could it also be used for tutorials?
... Also, you can set what layers are visible, .../jesterKing
How can we do this in the current API ? I mean : set a layer visible or not.
Zoo-3D.Blender, Ze French-Speaking Community SKB My french book about Blender.

JA-forreal
Posts: 0
Joined: Sat Mar 22, 2003 10:45 pm

Post by JA-forreal » Sat Aug 07, 2004 9:02 pm

Thanks for posting this Ton! I have been hoping for something like this in Blender for a long time. I will find many uses for this feature in my work.

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing » Sat Aug 07, 2004 10:28 pm

See the function ViewLayer from the Window module.

http://projects.blender.org/viewcvs/vie ... cvs-markup

I just noticed that the python documentation on b.org needs still to be updated.

A sample of what you can do with the layers:

http://www.letwory.net/blenderdocs/demotest.blend

/jesterKing

iluvblender
Posts: 24
Joined: Wed Oct 16, 2002 12:45 am
Location: Mumbai, India
Contact:

Post by iluvblender » Sun Aug 08, 2004 2:06 am

:shock:

Thanks jesterking for posting the demo and links.

- Satish.

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing » Sun Aug 08, 2004 1:14 pm

iluvblender wrote:Thanks jesterking for posting the demo and links.
The best way to thank is learn and apply. Post some über-groovy stuff, make us happy :D

/jesterKing

iluvblender
Posts: 24
Joined: Wed Oct 16, 2002 12:45 am
Location: Mumbai, India
Contact:

Post by iluvblender » Sun Aug 08, 2004 4:54 pm

jesterKing wrote:
iluvblender wrote:Thanks jesterking for posting the demo and links.
The best way to thank is learn and apply. Post some über-groovy stuff, make us happy :D

/jesterKing
Point taken. :D :D

Michel
Posts: 180
Joined: Wed Oct 16, 2002 7:27 pm
Location: Somewhere below the rivers in Holland (but not Limburg)

Post by Michel » Mon Aug 09, 2004 8:01 am

jesterKing wrote:I just noticed that the python documentation on b.org needs still to be updated.
Eeek, that's something I've forgotten to do: Make new docs and upload them - well tell you where to get them so you can put them online :wink:

If I forget to create those, just mention it on irc this evening :)


With regards,
Michel
You can have one of two things: Progress or Progress Reports.

SamAdam
Posts: 0
Joined: Thu Mar 04, 2004 1:28 pm
Contact:

Post by SamAdam » Mon Aug 09, 2004 8:14 pm

awesome stuff, nice feature.

calli
Posts: 38
Joined: Wed Oct 16, 2002 10:59 am
Contact:

Post by calli » Tue Aug 10, 2004 1:29 pm

Nice, Demoloop is back ;-)

So is it already possible to start the gameengine from the new python API? And to give back control to the demoloop....

Regards,
Carsten.

JWalton
Posts: 58
Joined: Sun Oct 13, 2002 7:39 pm
Contact:

Re: Blender demo loop

Post by JWalton » Tue Aug 10, 2004 9:21 pm

ton wrote:Just drag one of the .blend files on top of a 2.34 Blender executable (works with osx, windows, linux).
another testiment to alleged crossplatform compatibility :?

Post Reply