Home Website Youtube GitHub

RBF Manager Importing RBF

Hello there.
I’m practicing the RBF tool in mGear, and I’m using a downloaded model. It has 4 of the same “canon”,

so I’m setting up the RBF to collapse these canons when you close the side hatch / wing thingy. After setting it up on one, I’ve tried to export it and import it on a new RBF setup with another canon set up. Once I did this, it rotated one of the joints 90 degrees(not the control), so I assumed it wouldn’t work. But then, just to test it out, I set it up manually and exported it into an .rbf file. I then copied the code from this .rbf file onto the first .rbf file (the one that rotated the joint) and it still rotated the joint, even though it had the “right” information (I copied and pasted). Is this behaviour intended? Also when mirroring, it also rotates the joint on the other side?
Thanks in advance, let me know if you require any screenshots

Followup from yesterday, I’ve finished doing the entire left side on one RBF file, and it works just fine. However, when using the mirror function, the right side isn’t getting any values on the RBF poses + its doing weird rotations on the joints:


The joint on the right side:
image

Is there any workaround for this? It’s not that difficult to do it by hand, but if it were a larger scale model with more complex poses it’d be quite the pain.
Thank you!

Check your mirror attributes - maybe you need to mess with the settings a bit
obraz

1 Like

Hello team, I’m reaching out for assistance with an issue I’m encountering while trying to run the RBF Manager I am getting an error saying

‘’’# Error: invalid syntax
# Traceback (most recent call last):
# File “”, line 2, in
# File “/ASE/01prj/NXP/code/app_utilities/maya/plugins/mgear4/scripts/mgear/rigbits/rbf_manager_ui.py”, line 832
# print(f"rbfNode: {rbfNode}")
# ^
# SyntaxError: invalid syntax # ‘’'

in mgear 4.0.20. Despite my best efforts, I’m consistently receiving this error message. I would be incredibly grateful if someone could kindly offer guidance or support to help me resolve this issue. Thank you in advance for your time and expertise.

What version of Maya?

(or more specifically if you can check, what version of Python? Maybe f-strings shouldn’t be used while older Maya versions are still supported.)

I am using maya 2020.4 and python version 2.7.11

So that explains it. That print(f"rbfNode: {rbfNode}") notation isn’t available in Python 2. So it’s only going to work in Maya 2022+

If you’re comfortable with Python you could go into the code and change it to Python2 compatible code like:

print("rbfNode: {}".format(rfbNode))

And I’ve logged a bug so hopefully someone can make a PR to change that. There might be other print statements that need to be changed as well.

2 Likes

Thanks Chris,
I will try this on Maya 2022 or even updated versions and let you know the outcome.

Thanks once again for the prompt response.

Hi Chris,
I tried opening RBF manager on maya 2022.4, python version 2.7.11 its giving me an error saying
‘’’ Error: SyntaxError: file line 2: invalid syntax ‘’’

any other suggestion to bypass this and work on RBF manager would be greatly appreciated.