sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Closed Thread
 
Thread Tools
Sebasthos Sebasthos is offline
Member
 
Join Date: Mar 2002
Posts: 51
Is anybody here who could write an user-guide for dynamica? I would really like to use it, but I can't seem to get to do what would like it to.
Thanks.
#1   Old 07-Nov-02, 12:31   


dreamsgate's Avatar
dreamsgate dreamsgate is offline
Member
 
Join Date: Mar 2002
Location: Nampa, Idaho, USA
Posts: 1,809
hehe, I'm still trying to figure out the path thing, I haven't even got to really see it yet.
............................................
Managing Editor Blenderart Magazine:
blog | My Squidoo Lenses | personal webpage
#2   Old 07-Nov-02, 14:16   
theeth's Avatar
theeth theeth is offline
Administrator
 
Join Date: Oct 2001
Location: Montreal, Canada
Posts: 11,079
Quote:
Originally Posted by dreamsgate
hehe, I'm still trying to figure out the path thing, I haven't even got to really see it yet.
that's really easy to fix. Just tell me where you unziped everything and I'll try to make one to fit your path.

About the user guide thing, the FAQ.txt file containts some bits of informations on trickier functions like intergrav and grav attractors. I'll try releasing a couple of example files for people to look at (the .blend and .dat files I mean).

Martin
............................................
Life is what happens to you when you're busy making other plans.
- John Lennon
#3   Old 07-Nov-02, 14:25   
Sebasthos Sebasthos is offline
Member
 
Join Date: Mar 2002
Posts: 51
That would be areal start, thanks!
#4   Old 07-Nov-02, 17:44   
dreamsgate's Avatar
dreamsgate dreamsgate is offline
Member
 
Join Date: Mar 2002
Location: Nampa, Idaho, USA
Posts: 1,809
Okay theeth, don't laugh, I have a very bizarre way of organizing things. I unzipped to here:

C:/Sandy's Imagination/3-D Stuff/Blender Documents/Python/Dynamica


okay, go ahead and laugh!
............................................
Managing Editor Blenderart Magazine:
blog | My Squidoo Lenses | personal webpage
#5   Old 08-Nov-02, 01:09   
theeth's Avatar
theeth theeth is offline
Administrator
 
Join Date: Oct 2001
Location: Montreal, Canada
Posts: 11,079
Quote:
Originally Posted by dreamsgate
Okay theeth, don't laugh, I have a very bizarre way of organizing things. I unzipped to here:

C:/Sandy's Imagination/3-D Stuff/Blender Documents/Python/Dynamica


okay, go ahead and laugh!
naah, I never laugh for something like this. It's way more tidier than my HD.

ok, try copying the following in a text editor and saving it as Dynamica.py
Then, place it somewhere where it can be accessible by Blender. If you have your Python Lib path set in the Blender Info window, try putting it there.

Code:
# DYNAMICA PATH AND MODULE IMPORT SCRIPT # (c)The Dynamica Team import sys Benchmark = 0 def SetPath(): sys.path.append("C:/Sandy's Imagination/3-D Stuff/Blender Documents/Python/Dynamica/module") def runBenchmark(): global Benchmark Benchmark = 1 def LoadLIB(Path): global Benchmark if Benchmark == 1: import time init = time.time() SetPath() global LIB from ParticlesSystem import * from Physics import * import Blender import dynoise from math import * import dyshelve try: dir(LIB) except NameError: print "loading DATA" LIB = dyshelve.new(Path, "c") runSystem(LIB) if Benchmark == 1: import time print "iteration made in " + str(round(time.time() - init, 2)) + " seconds, with " + str(len(LIB["PCLOUD"].Particles)) + " particles." def Reset(Path): SetPath() global LIB from ParticlesSystem import * from Physics import * import Blender import dynoise from math import * import dyshelve print "loading DATA" LIB = dyshelve.new(Path, "c")
if everything works ok, you should get the message "loading DATA" in the console. That means that the scripts started correctly and has finish loading the data already.

Martin
PS: about the demos, I'll try packing a couple of them this week end and putting them online by monday.
............................................
Life is what happens to you when you're busy making other plans.
- John Lennon
#6   Old 08-Nov-02, 03:13   
dreamsgate's Avatar
dreamsgate dreamsgate is offline
Member
 
Join Date: Mar 2002
Location: Nampa, Idaho, USA
Posts: 1,809
thanks I'll try that, one of these days I'll be able to figure this out for myself.
............................................
Managing Editor Blenderart Magazine:
blog | My Squidoo Lenses | personal webpage
#7   Old 08-Nov-02, 03:32   
kirpre's Avatar
kirpre kirpre is offline
Member
 
Join Date: Mar 2002
Location: Rochester, New York
Posts: 555
The "Loading Data" is running in command window when I open Alpha06.blend. Should I be seeing anything other than a 3D window on the left and a code window on the right at this point?

I then hit Alt-P and get the following error:

Code:
loading DATA Initializing GUI File "<string>", line 264 "rand" + str(db["PCLOUD"].rdintp) ^ SyntaxError: invalid syntax Traceback (most recent call last): File "e:/blender/dynamica/module\GuiC.py", line 6, in ? import CustomAct File "e:/blender/dynamica/module\CustomAct.py", line 264 "rand" + str(db["PCLOUD"].rdintp) ^ SyntaxError: invalid syntax failed importing internal module GuiC trying to import external module.. PYTHON SCRIPT ERROR: Traceback (most recent call last): File "Gui.py", line 120, in ? AttributeError: Section
Could anyone offer some assistance as to what I may have to do to fix? Thanks.
............................................
kirpre
#8   Old 08-Nov-02, 17:39   
theeth's Avatar
theeth theeth is offline
Administrator
 
Join Date: Oct 2001
Location: Montreal, Canada
Posts: 11,079
Quote:
Originally Posted by kirpre
The "Loading Data" is running in command window when I open Alpha06.blend. Should I be seeing anything other than a 3D window on the left and a code window on the right at this point?
if you press Alt-A in the 3D window, you should see spheres been shot from a point in space and arcing down with gravity.

Quote:
I then hit Alt-P and get the following error:

Code:
loading DATA Initializing GUI File "<string>", line 264 "rand" + str(db["PCLOUD"].rdintp) ^ SyntaxError: invalid syntax Traceback (most recent call last): File "e:/blender/dynamica/module\GuiC.py", line 6, in ? import CustomAct File "e:/blender/dynamica/module\CustomAct.py", line 264 "rand" + str(db["PCLOUD"].rdintp) ^ SyntaxError: invalid syntax failed importing internal module GuiC trying to import external module.. PYTHON SCRIPT ERROR: Traceback (most recent call last): File "Gui.py", line 120, in ? AttributeError: Section
line 264 in CustomAct.py is (should be):
Code:
print "rand" + str(db["PCLOUD"].rdintp)
I hope that works.

Martin
............................................
Life is what happens to you when you're busy making other plans.
- John Lennon
#9   Old 09-Nov-02, 00:20   
kirpre's Avatar
kirpre kirpre is offline
Member
 
Join Date: Mar 2002
Location: Rochester, New York
Posts: 555
Thanks, that fix the problem, I must have accidentally deleted "print" when I was looking around the code. It works fine now and I'm looking forward to plying around with this. Great work.
............................................
kirpre
#10   Old 11-Nov-02, 16:47   
theeth's Avatar
theeth theeth is offline
Administrator
 
Join Date: Oct 2001
Location: Montreal, Canada
Posts: 11,079
http://www.clubinfo.bdeb.qc.ca/~theeth/DatRelease.zip

that's the same release as before, but with a new dat file that showcase the gravity attractor effect. It uses 200 metaballs, so be carefull when rendering on slow CPUs. You just have to change the path in RunTime.py.

Martin
PS: I just discovered a bug when opening a dat with Gravity attractors: it doesn't load the name of the attractors objects, so you'd have to retype them after loading. Maybe I'll fix the bug soon enough.
............................................
Life is what happens to you when you're busy making other plans.
- John Lennon
#11   Old 12-Nov-02, 19:11   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
In the installation text file it says I need Python 2.1 installed,...will Python 2.2 work as well?
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#12   Old 11-Nov-03, 22:34   
theeth's Avatar
theeth theeth is offline
Administrator
 
Join Date: Oct 2001
Location: Montreal, Canada
Posts: 11,079
The dynoise.dll file is compiled with Python 2.1

Please also note that it will not run in versions higher than 2.23.

Martin
............................................
Life is what happens to you when you're busy making other plans.
- John Lennon
#13   Old 11-Nov-03, 22:41   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
Thanks. (looks awesome btw!)
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#14   Old 11-Nov-03, 22:44   
gorgan_almi's Avatar
gorgan_almi gorgan_almi is offline
Member
 
Join Date: Mar 2002
Location: Kent, UK
Posts: 1,015
Quote:
Originally Posted by dreamsgate
C:/Sandy's Imagination/3-D Stuff/Blender Documents/Python/Dynamica
thats almost as bad as mine. I store it at:

C:\data\3d\blender\utils\dynamica\latest_version\

Keith. 8)
............................................
[size=6]COMING SOON.... The GameBlender - 4 - Ever wiki![/size]
THE source of information on the game engine! See this thread for more information.
#15   Old 12-Nov-03, 17:03   
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists