I am in the middle of writing Py-Mel'ish libraries for motionbuilder and propertys are making my life a lot easier. They will essentially help you reducing your production code later almost by half and make it much more readable.
To get the startframe of the animationrange in motionbuilder you have to do something like this: There is no need to argue that this is just horrible...
Ok, how about setting it? No, its not this
Lets try to unify that! There might be similar things we want to do, like get and set the current frame. So let's decide on writing a small timeline class and add a few functions to that.
The functions we will write here, are getter and setter functions. To make a function a getter, you basically add a property-decorator in front of your function.
The setter function is defined like this getter-functionname.setter.
Make sure that this following function has the same name as the getter function.
Take a look at the code example here:
Now we just have to instanciate the class To get the animationrange we just have to do this now And we set it like this The same goes for the currentframe, to get it we call And to set it
So to recap, properties give you the ability to execute different functions depending on wether you set or get them.
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteRQC is one of the Best Best Hair Clinic In Surat, with services, including Hair Transplant, Hair Treatment, Hairfall and Hair Loss, dermatology. RQC brings you the best services in hair transplant, Hair Treatment.
ReplyDeleteseo fiyatları
ReplyDeletesaç ekimi
dedektör
instagram takipçi satın al
ankara evden eve nakliyat
fantezi iç giyim
sosyal medya yönetimi
mobil ödeme bozdurma
kripto para nasıl alınır
bitcoin nasıl alınır
ReplyDeletetiktok jeton hilesi
youtube abone satın al
gate io güvenilir mi
referans kimliği nedir
tiktok takipçi satın al
bitcoin nasıl alınır
mobil ödeme bozdurma
mobil ödeme bozdurma
perde modelleri
ReplyDeletesms onay
mobil ödeme bozdurma
NFTNASİLALİNİR.COM
ankara evden eve nakliyat
trafik sigortasi
dedektör
web sitesi kurma
Ask Kitaplari