:: Mel Matrix   :: Python Scripting   :: Final Project   :: Mel & Python Home

:: Python Scripting

 

 

 

Here is a class excercise to create spheres in Y axis. Ontop of that giving a uniform scale and shift

not allowing each sphere to overlap each other.

Well this exercise have proof to me that developing mathematical solutions is not so easy.

Anyway, it was a class exercise so we got it working with help from classmates:)

Below are links to a Mel Script Procedure and A Python Defination. Which allow ius to see the comparison.

 

MEL Script Procedure.

PYTHON Script Defination.

q

\

 

Here is an image of linking up random particles with a curve and doing an extrude changing it to nubs surfaces.

The challenge here is to think of a creative way to use this technique

that I have to learnt to work out an art piece.

Here it looks really messy and undirected.

 

 

 

 

Well here is an image of working out the script.

There were some confusion caused due to the listing of particle transform nodes and the positions of the

particles itselfs.

I spent alot of time figuring out how to select the particles and then concatenate the positions of all the particle in all 4 particle transform node/grp.

So in the end it works. However after a few more tries, it stop working. The script only reads one particles system.

Click to see Problem Version -Python Script

So another round of decoding, and searching out where I went wrong

Click to see the Solved Version -Python Script

The problem was my variable. Positions. It was not made global hence the script could not get the

concatenated positions of all the particles.

 

 

 

 

 

Now here is a more directed form of art work. Below are some reference images.

 

 

 

Now I have went on further to see how the particles connects up with various

shapes. It is to see where I can push this form of art into. It has to be in some ways

applicable to 3d Artist.

I placed a ramp shader on the wires in order to give red gren and blue just like wires u see

at home or anywhere. I would say its coming close, just more controls and understanding of

how particles are generated.

 

 

 

 

Ok here i am just messing around .

Well you can see a cylinder emitter differs from a box emitter drasticly.

Well Organic and Solid shapes giving contrast to each other.

:) Arty Farty piece of work :)

 

 

 

Well here is a demonstration of creating curves by recording each

particle ID for each frame.

In here the particles are affected by a VolumeAxis field, which

gives turbulance and a directional force.

Looks like the sentinels in matrix :)

Particle ID position to Curve Script.

This script here is rewritten fully in Python. Well of course I am going

through Tutoring from Gaki.

I also have learned about Dictionaries in Python which records in a different

way from an array.

Dictionaries allow the user to define the key (groupname) followed by the array

of information. You also can add to that dictionary at any prefered time.

 #eg: dict = {key1: value1, key2: value2}