Home Artists Posts Import Register

Content

Not a whole lot to say about this, I've released the first version of my Rigify Custom Constraints Utility. Here's a little demo video:

https://youtu.be/0xBdV14xWx0?si=-NgFSjz8JIZluT4E

You can download it here! It should work if you download the zip and install the zip file like any other add-on:

https://github.com/velocirection/Rigify-Custom-Constraints-Utility/


One big problem I was trying to figure out a way around was my use of eval() here:

Basically eval is really dangerous because it evaluates anything you give it like python code. Since user data is the input (you can name the constraints whatever you want) there's probably potential for malicious use of eval... so I wanted to get rid of it before releasing it.

For some reason it never occurred to me to check if Python had getattr. It has hasattr (to check if an object has an attribute) which I was aware of. And I was thinking "it'd be nice if I could get the attribute of a variable using a string... there has to be a getattr command." And luckily there was! Saves a lot of checking for whether or not a variable exists when formatting the data for the text file.


I also wrote a little tool to generate simple cyclical animations and made it into an add-on. Here's a little demo:

https://youtu.be/d7ViwPkNF0A?si=MLbmZU3ldhCRVjay

A little gif with the panel:

You can get that here:

https://github.com/velocirection/Vrextras

(just download simple_math_anim_proto.py and install that for the panel you see)

I haven't used this for anything yet but I plan to in the future! This would be pretty good to generate some additional cyclical animation on existing stuff like drunken stumbling for example. Or part of a smooth, slow dance motion.

(quick note, frames will be doubled so 16 frames will give you a 32 frame animation, haven't re-written the code to not have it that way yet)

Files

Rigify custom constraints utility quick start video

Non-narrated video of the basics of using the Rigify custom constraints utility (RCCU). You can download it here (download the zip and install the zip as any other add-on) https://github.com/velocirection/Rigify-Custom-Constraints-Utility

Comments

No comments found for this post.