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

Sending and calling procedures #5

Open
BigToeProductions opened this issue May 30, 2018 · 0 comments
Open

Sending and calling procedures #5

BigToeProductions opened this issue May 30, 2018 · 0 comments

Comments

@BigToeProductions
Copy link

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!

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