Closed hannesdelbeke closed 1 month ago
it's because this returns Preview Release
instead of 2026
import maya.cmds as cmds
print(cmds.about(version=True))
that results plugget creating and installing to the mydocs/Preview Release
folder instead of the 2026
folder which is included in the env var.
this will only affect maya preview releases.
to get the version in Maya, don't use
import maya.cmds as cmds
version = cmds.about(version=True)
this returns the Maya version (as a string), e.g. u'2026'
.
But it doesn't work when you run Maya Preview Release, then it returns u'Preview Release'
instead use
import maya.mel as mel
mel.eval('getApplicationVersionAsFloat')
which always returns the correct version (as a float), e.g. 2026.0
submitted, not yet tested fix
error in activating plugin. likely because path is not included because it didnt exist before install?
installed to
C:\Users\H\Documents\maya\Preview Release\plug-ins
which is not inMAYA_PLUG_IN_PATH