Re: Sketch particles

Date : Thu, 5 Oct 2006 12:07:23 +0200
To : XSI(at)Softimage.COM
From : "guillaume laforge" <guillaume.laforge.3d(at)gmail.com>
Subject : Re: Sketch particles
Salut Olivier :-)

Particle sketch looks like a freezed cloud. I think you can only change rotation/position with a script ( sorry :-p ). But don't be afraid, you don't need to use event for your needs as it is a "static" operation :-).

So open your script editor and run :

//change "cloud" to your cloud name !
var oCloud = ActiveSceneRoot.FindChild ("cloud");

for ( var i = 0; i < oCloud.Particles.count ; i++ )
{
    var oPart = oCloud.Particles.item(i);
    //For example you want bigger particles if Y>2
    var oIncreaseSize = 2
    if(oPart.position.y>oIncreaseSize)
    {
        NewSize = oPart.position.y*(1/oIncreaseSize);//*Math.random());
        oPart.Size = NewSize;//You can multiply by Math.random() if you want.
       
        var MyRot = XSIMath.CreateVector3();
        MyRot.Set(NewSize,NewSize,NewSize)
        oPart.Rotation = MyRot;
    }
}


It is just an example. I won't forget my mobile phone this afternoon so I will call you ;-)

Guillaume



On 10/5/06, olivier.jeannel(at)noos.fr < olivier.jeannel(at)noos.fr> wrote:
Hi all,

Making a tree, I've used particles to generate the leaves (Cloud emiting
from tree trunk + instance particles). I'm trying now to add more leaves
here and there using "sketch particles". I can't find a way to vary
(var) the size or the rotation of the particles emited with "sketch
particles".

Is there a simple way ?

Thanks all.

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi




Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.