object based Type/Emitter switch

Share your scripts with other members
orr
Posts: 60
Joined: Mon Sep 03, 2007 5:18 pm

object based Type/Emitter switch

Postby orr » Tue Oct 02, 2007 4:37 pm

What does it Do:

_Switch
This Script changes the Type of a Emitter (Elastics, Liquid, Dumb, Gas) if the Particles of the Emitter are inside/ or pass a user-defined object (for example a plane).

_SecondSwitch

If the Particles yet again pass another object it’s again possible to switch the Type of the Emitter

_SwitchBack

If the Particles once again pass another object it’s possible to switch the Type of the Emitter to its original Type.

Parameters:

1_Object: If the Particles pass this Object they are switched to another Emitter whit a different Type

1_change from: The Type of the original Emitter

1_change into: The Type you want to have after the paticles pass the Object

1_emitterOne: The original Emitter

1_emitterTwo: The Emitter whit you want to switch to. It is getting it’s Type Parameter from the change into Field


2_Switchback: If you set this to Yes you can switch the Particles back to the original Emitter (so you’ll get it’s original Type)

2_Switchback Object: If you set the Switchback to Yes you have to set a Object. If the particles pass this Object they’ll perform the Switchback


3_Emitter for Secondswitch: The Emitter you want to give the particles to after they have passed the SecondSwitch Object.

3_Secondswitch: If you put this to Yes you can perform another Emitter/Type switch. You need a third emitter and another Object for this.

3_Secondswitch Object: If you set the SecondSwitch to Yes you have to set a Object. If the particles pass this Object they’ll perform the Secondswitch

3_change again into: The Type you want to have after the paticles pass the Secondswitch Object.This Field set the Type for the 3_Emitter for Secondswitch





How To Use:

Load the script into the Event Scripts

Warning:

It’s very difficult to switch the Type of some Particles because their behaviour changes mostly it end up whit impossible calculations and Real Flow may crash (well actually if you are performing a secondswitch and a switch back it’s getting very complicated). So you are using this script on your own risk :D
Switching Liquid into Elastic might not also work/work the way you expect it.

The script is using the Object normals so you should check them/ or for objects like planes check where they are pointing at. Usually they should point into the particles Direction.

You can also perform are Frame based which by just adding a plane and keyframe its position. So if the plane is pointing at the object nothing happens … if you turn it away from the particles it switches its Type.

http://www.nextlimit.com/nlscript/news_scripts.php?id=84



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

object based Type/Emitter switch

Postby shaun_michael » Wed Oct 03, 2007 7:30 am

Sounds interesting. Where can it be downloaded from?

Shaun

orr
Posts: 60
Joined: Mon Sep 03, 2007 5:18 pm

object based Type/Emitter switch

Postby orr » Wed Oct 03, 2007 9:45 am

big sorry just forgot about it. updated my first post.


Return to “User Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest