Git Product home page Git Product logo

mayaport's Issues

no output to vscode debug console?

Thanks for making this, unfortunately I am not seeing output in vscode. In the readme it says "The output from maya will be sent back to the debug console".

In maya I run: import maya.cmds as cmds; cmds.commandPort(name=":7002", sourceType="python", echoOutput=True)
then in vscode I run: mayaport to open connection, only the 7001 port is unhappy.
then type: print 'hihi' in a *.py file and hit sendPythonToMaya
And I see the output in the maya script editor, but not in the vscode debug console or output window.

Sending and calling procedures

Great work on this. I have an issue regarding sending procedures via the port. If I have already called the procedure in Maya, I can invoke the procedure via Code and MayaPort. But it isn't very happy when I am trying to define a procedure and call it when sending via MayaPort. For example.

`proc TestThis ()
{
print "Testing";
}

TestThis;`

When I select all of this and send via MayPort I receiver the following in the Maya Console...
Testing// Error: }; //
// Error: Line 1.1: Syntax error //
// Error: line 1: Cannot find procedure "TestThis". //

If I copy the same procedure into the Maya Script Editor and execute, it loads into memory. Then I can call "TestThis" from MayaPort and it works.

So how do I load all my functions into memory using MayaPort?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.