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

Is there any way to use this extension at Maya start up? #30

Closed
FrankShao832 opened this issue Mar 8, 2022 · 4 comments
Closed

Is there any way to use this extension at Maya start up? #30

FrankShao832 opened this issue Mar 8, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@FrankShao832
Copy link

Is your feature request related to a problem? Please describe.
This extension works. But need to setup every time new session.

Describe the solution you'd like
If I don't need to manually run the line of code to open port every time open a new Maya or vs code session that will be great!

If there already a way to do it like setup a user setup file etc. please let me know.

@artbycrunk
Copy link
Owner

Hi @FrankShao318
If you are familiar with the userSetup.mel, then you can add the following command to it
commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;
This will ensure that the port is open on Maya startup

@artbycrunk artbycrunk added the question Further information is requested label Mar 8, 2022
@artbycrunk artbycrunk self-assigned this Mar 8, 2022
@FrankShao832
Copy link
Author

Hi @artbycrunk ,
Thanks for the quick reply!
Previously, I was using Pycharm and had a userSetup.py file which setup the commandPort 4434 for Pycharm.
Can I have both of them work together? Or I can only have one work in the folder?

@artbycrunk
Copy link
Owner

artbycrunk commented Mar 8, 2022

@FrankShao318 yeah both should be able to work together, as long as the vscode-maya extension is made aware of what port number you want to use.

@FrankShao832
Copy link
Author

@artbycrunk Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants