Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f-string line send python to maya 2023 does not work #38

Open
oglops opened this issue Sep 14, 2023 · 0 comments
Open

f-string line send python to maya 2023 does not work #38

oglops opened this issue Sep 14, 2023 · 0 comments

Comments

@oglops
Copy link

oglops commented Sep 14, 2023

In maya 2023 ( python 3.9) f-string is not working when using Send Python Code to Maya

To Reproduce
Steps to reproduce the behavior:

  1. open maya 2023 and open ports
  2. run
MC.commandPort(name=":7001", sourceType="mel", echoOutput=True)
MC.commandPort(name=":7002", sourceType="python",echoOutput=True)
  1. send this from vscode
x=1
print(f"your value: {x}")

and error is

# Error: line 1: invalid syntax
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "<string>", line 3
#     print(f"your value: {x}")
#                            ^
# SyntaxError: invalid syntax # 

Expected behavior
print your value: 1

Screenshots
N.A

Desktop (please complete the following information):

  • OS: centos 7.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant