PDA

View Full Version : particle flow motionblur


J_Sheridan
02-15-2005, 04:29 PM
what's the easiest way to set a motion blur vor PEvent[1]?
normally you'd just access node.motionblur
but in this case this doesn't work. it only works accessing it like:
$'psourcename->eventname'.motionblur
is there a smarter way to maybe access it over PEvent[1]?






particleFlow.openParticleView()

PFlowSource=#()
PEvent=#()
Ev=#()


PFlowSource[1]=PF_Source X_Coord:20 Y_Coord:0 isSelected:on Logo_Size:34.3295 Emitter_Length:45.2107 Emitter_Width:52.8736

particleFlow.BeginEdit()
EV[1]=Birth()
EV[2]=Position_Object()
EV[3]=Speed()
EV[4]=ShapeStandard()
EV[5]=DeleteParticles()
EV[6]=Material_Dynamic()
EV[7]=Find_Target()
EV[8]=ScaleParticles()
EV[9]=Force()
EV[10]=DisplayParticles()
RP=RenderParticles()
PEvent[1] = Event()
PEvent[1].SetPViewLocation ($.X_Coord) ($.Y_Coord+100)
particleFlow.EndEdit()

for x=1 to EV.count do (
PEvent[1].AppendAction (EV[x])
)
PFlowSource[1].AppendAction (RP)
PFlowSource[1].AppendInitialActionList PEvent[1]


--birth
PEvent[1][4][1].Emit_Start = 0
PEvent[1][4][1].Emit_Stop = 60000
PEvent[1][4][1].type = 1 -- 0=amout 1=rate
PEvent[1][4][1].rate = 500
--PEvent[1][4][1].amount = 500

--emmiter object
temp=box()

PEvent[1][4][2].Emitter_Objects.count = 0
PEvent[1][4][2].Emitter_Objects = #(temp)
PEvent[1][4][2].Location = 4

--speed
PEvent[1][4][3].speed = 29.997
PEvent[1][4][3].variation = 0
PEvent[1][4][3].Divergence = 130


--shape sphere
PEvent[1][4][4].shape = 2
PEvent[1][4][4].size = 2

--deleter
PEvent[1][4][5].type = 2
PEvent[1][4][5].Life_Span = 6000
PEvent[1][4][5].variation = 0

--material
PEvent[1][4][6].Assigned_Material = Standard()

--find target
EV[7].pos+=[0,0,120]
PEvent[1][4][7].Cruise_Speed = 300
PEvent[1][4][7].Acceleration_Limit = 60
PEvent[1][4][7].Ease_In = 50

--scale
PEvent[1][4][8].Sync_Type = 2 --Event duration


--force
PWind=Wind transform:(matrix3 [0,1,0] [0,0,1] [1,0,0] [100,100,100]) isSelected:on
PEvent[1][4][9].Force_Space_Warps.count = 0
PEvent[1][4][9].Force_Space_Warps = #(PWind)
PEvent[1][4][9].Sync = 2 --Event duration

CGTalk Moderation
02-15-2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.