Bubble Script

Share your scripts with other members
User avatar
brandony
Posts: 231
Joined: Sat Oct 21, 2006 7:38 am

Bubble Script

Postby brandony » Wed Sep 10, 2008 8:01 am

i posted it in the scene repository have fun !
Brandon Young
www.byvfx.com
FX Artist | TD


shaun_michael
Posts: 4766
Joined: Sun Sep 10, 2006 8:04 am

Bubble Script

Postby shaun_michael » Wed Sep 10, 2008 8:29 am

brandony wrote: i posted it in the scene repository have fun !

Thanks Brandon.

guruV
Posts: 7
Joined: Sun Oct 15, 2006 11:59 am

Bubble Script

Postby guruV » Sat Oct 04, 2008 4:03 am

Ahem..guys..am new to rf scripts ...could someone tell me how to run this script?

lukeiamyourfather
Posts: 2880
Joined: Mon Oct 15, 2007 4:09 pm
Contact:

Bubble Script

Postby lukeiamyourfather » Sat Oct 04, 2008 5:36 am

guruV wrote: Ahem..guys..am new to rf scripts ...could someone tell me how to run this script?

Its an event script (there are also batch scripts). Push F11 in RF and the event script window will come up, paste in the script and click the active check box at the bottom. Some scripts have specific directions that are usually in the header, be sure to follow those as well. Cheers!

guruV
Posts: 7
Joined: Sun Oct 15, 2006 11:59 am

Bubble Script

Postby guruV » Sat Oct 04, 2008 6:22 pm

Thanks lukeiamyourfather

User avatar
brandony
Posts: 231
Joined: Sat Oct 21, 2006 7:38 am

Bubble Script

Postby brandony » Thu Oct 16, 2008 5:51 am

sorry ibeen busy with work and forgot to check the threads.. :(
Brandon Young
www.byvfx.com
FX Artist | TD

tusharshah10
Posts: 44
Joined: Tue Jan 27, 2009 11:55 am

Bubble Script

Postby tusharshah10 » Tue Jan 27, 2009 12:01 pm

hi

i m user of realflow but not good with scripting n wht i got this python script for making bubbles ...by Brandon Young which is as follow..

# Name : Bubble Script
# Description: Create tearing effect off a main bubble.
#
# Author : Brandon Young
# Date : August 30th 2008
# Version : 1.0
#--------------------------------------------------


#--------------------------------------------------
# Function: onSimulationStep
#--------------------------------------------------

def onSimulationStep():
bubble = scene.getEmitter("Sphere01")
trails = scene.getEmitter("Circle01")
particles = bubble.getParticles()
#vel = Vector.new(0,0,-14)
for particle in particles:
neighbors = particle.getNeighbors( .066)
if (len(neighbors)>0):
for neighbor in neighbors:
pos = neighbor.getPosition()
vel = neighbor.getVelocity()
trails.addParticle(pos, vel)
bubble.removeParticle(particle.getId())



#--------------------------------------------------
# Function: onSimulationFrame
#--------------------------------------------------

def onSimulationFrame():
pass

#--------------------------------------------------
# Function: onSimulationBegin
#--------------------------------------------------

def onSimulationBegin():
pass


#--------------------------------------------------
# Function: onSimulationEnd
#--------------------------------------------------

def onSimulationEnd():
pass




#--------------------------------------------------
# Function: onChangeToFrame
#--------------------------------------------------

def onChangeToFrame():
pass

i did the same wht it says like create a sphere n circle emmiter n thn activate the script but while simulation it gives me error saying

Script error: "'NoneType' object has no attribute 'getParticles'" at line number 17.

so can nyone help me out with this how shld i do tht so i get the result..
VFX artist

shaun_michael
Posts: 4766
Joined: Sun Sep 10, 2006 8:04 am

Bubble Script

Postby shaun_michael » Tue Jan 27, 2009 2:49 pm

Are you sure your emitters are called exactly Sphere01 and Circle01?

Shaun

tusharshah10
Posts: 44
Joined: Tue Jan 27, 2009 11:55 am

Bubble Script

Postby tusharshah10 » Wed Jan 28, 2009 7:44 am

hi shaun

thx for ur response ya i did had gave the same name to mine emitter but till its a probs..

i m sending the snap shot of my set up pls have look at this
Click
me


http://img185.imageshack.us/my.php?image=screenshot01zy2.jpg

.. thn let me know if i m doing ny mistake...

tushar
VFX artist

shaun_michael
Posts: 4766
Joined: Sun Sep 10, 2006 8:04 am

Bubble Script

Postby shaun_michael » Wed Jan 28, 2009 8:53 am

I've just typed out your script line for line and I'm not getting any errors so all I can suggest is that you should carefully check your tabs and spacing within the script.

Shaun


Return to “User Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest