artbycrunk / vscode-maya

A Visual Studio Code extension with support for coding for Maya.
MIT License
43 stars 9 forks source link

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

Closed FrankShao832 closed 2 years ago

FrankShao832 commented 2 years ago

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 commented 2 years ago

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

FrankShao832 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@artbycrunk Thank you very much!