1

Been trying for 8 hours now to get pycharm to work with mayapy.exe but i just cant get it to work. From clean installs of both programs i first open an empty scene in maya. Then i open pycharm and add mayapy.exe as interpreter and what automaticly gets selected there. Pycharm interpretor setup screenshot Then i test with:

import pymel.core as pm
pm.polyCube()

but nothing happens, it gives exit code 0

import pymel.core as pm
pm.polyCube()
Print("hello")

Prints hello but doesnt create a cube in maya.

While if i use that code in maya it works.

Any ideas?

Thanks!

Hamaro
  • 49
  • 9

1 Answers1

0

adding mayapy won't do anything in maya, if you using mayapy you need to use maya standalone module. But in your case you just need to setup commandport properly, Mayacharm or some same kind toolset can help you

Achayan
  • 5,720
  • 2
  • 39
  • 61