ラベル Python の投稿を表示しています。 すべての投稿を表示
ラベル Python の投稿を表示しています。 すべての投稿を表示

[RF]realflow python script ....."else and If"


realflow python script

#--------------------------------------------------
# Function: onSimulationFrame
#--------------------------------------------------

def onSimulationFrame():
frame = scene.getCurrentFrame()
#scene.message('hello::'+str(frameStr))

if ( frame > 3):
scene.message('hello')
else:
scene.message( 'done')

pass

Python tutorial link


■learning scripts
http://www.pythonweb.jp/tutorial/

http://www.python-izm.com/

http://dotinstall.com/lessons/basic_python_v2

■書式ルール
http://www.slideshare.net/yoshitakatsubouchi/pep8