how to use this scripting in 2015 is beer scripting

Discussion about scripting with Python
User avatar
ChristianZ
Posts: 3258
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: how to use this scripting in 2015 is beer scripting

Postby ChristianZ » Sun Oct 02, 2016 10:46 am

I think, the problem here was just the high speed of the emitter "beer", which overwhelmed the simulation engine. In such cases it may be better to go for a higher fps setting of the simulation and set the final timing of the animation in your rendering or video editing software at the end of the production pipeline. Also, the glass object might be still a little too big in relation to the emitters although you have changed the geometry scale already.

https://www.dropbox.com/s/1ohz0yun12d4d ... t.zip?dl=0
RF10 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM


Abby
Posts: 26
Joined: Wed Sep 28, 2016 5:35 am

Re: how to use this scripting in 2015 is beer scripting

Postby Abby » Sun Oct 02, 2016 11:52 am

you can change anything,but the "beer" just is in the glass right. can you do it plaese give me a hand

User avatar
ChristianZ
Posts: 3258
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: how to use this scripting in 2015 is beer scripting

Postby ChristianZ » Sun Oct 02, 2016 12:21 pm

Ok, you don't want to change that. Actually, it is working after an initial lag, at least by command line mode.

But what is it that you want to change now, or what you say is not working correctly?
RF10 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM

Abby
Posts: 26
Joined: Wed Sep 28, 2016 5:35 am

Re: how to use this scripting in 2015 is beer scripting

Postby Abby » Sun Oct 02, 2016 2:18 pm

the foam isn't on the top of the water

User avatar
ChristianZ
Posts: 3258
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: how to use this scripting in 2015 is beer scripting

Postby ChristianZ » Sun Oct 02, 2016 3:00 pm

I see. The "beer" and "foam" emitter must have different settings for density to achieve that. I see that in your scene they are both at 1000, but foam should be lower like 600.
RF10 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM

Abby
Posts: 26
Joined: Wed Sep 28, 2016 5:35 am

Re: how to use this scripting in 2015 is beer scripting

Postby Abby » Mon Oct 03, 2016 3:19 pm

I am trying but effect not too good

User avatar
ChristianZ
Posts: 3258
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: how to use this scripting in 2015 is beer scripting

Postby ChristianZ » Mon Oct 03, 2016 4:56 pm

An easier way to achieve the foam is using the filter daemon. This does not involve the re-transformation to beer, but works as a visual effect. You simply say, that beer colliding with the glass is turned into foam. An additional k-age daemon could remove the foam over time.
http://www.cardiomyocytes.com/realflow/ ... daemon.mov
RF10 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM

User avatar
ChristianZ
Posts: 3258
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: how to use this scripting in 2015 is beer scripting

Postby ChristianZ » Mon Oct 03, 2016 5:32 pm

You can use either collision with the object or speed. This example here is using speed with an initial state of a beer emitter that is not changed:
http://www.cardiomyocytes.com/realflow/ ... lation.zip
RF10 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM

Abby
Posts: 26
Joined: Wed Sep 28, 2016 5:35 am

Re: how to use this scripting in 2015 is beer scripting

Postby Abby » Tue Oct 04, 2016 2:59 am

do you use Wechat?

User avatar
ChristianZ
Posts: 3258
Joined: Sat Sep 09, 2006 11:37 am
Location: CH

Re: how to use this scripting in 2015 is beer scripting

Postby ChristianZ » Tue Oct 04, 2016 7:08 am

I am already spending way too much time on this forum in my free time :? It is only a hobby for me and chatting would be too much, sorry.
RF10 standard, System specs: OSX 10.11, MacPro 4.1 2xXeon, GTX980Ti, 64 GB RAM


Return to “Python-Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest