internal Var

45 views
Skip to first unread message

MA07

unread,
Apr 17, 2017, 3:45:40 PM4/17/17
to Python Programming for Autodesk Maya
Hello,

Can anyone explain to me when is appropriate to use internal Var ?

what is internal Variable?

what exactly this command does.I don't really understand.

Example :

import maya.cmds as cmds

myScriptDir = cmds.internalVar(userScriptDir=True)

Thank you in advance

Justin Israel

unread,
Apr 17, 2017, 4:09:04 PM4/17/17
to Python Programming for Autodesk Maya

"This command returns the values of internal variables. No modification of these variables is supported."

It returns the values of various directory paths. 


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f0442d46-8479-49ee-bd7f-0a3c34c78e8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MA07

unread,
Apr 17, 2017, 4:31:34 PM4/17/17
to Python Programming for Autodesk Maya
what does it mean by internal variable here? Is it variable that we assigned in the script?or it has different meaning?thanks


On Monday, April 17, 2017 at 9:09:04 PM UTC+1, Justin Israel wrote:


On Tue, Apr 18, 2017, 7:45 AM MA07 <amirahsya...@gmail.com> wrote:
Hello,

Can anyone explain to me when is appropriate to use internal Var ?

what is internal Variable?

what exactly this command does.I don't really understand.

Example :

import maya.cmds as cmds

myScriptDir = cmds.internalVar(userScriptDir=True)

Thank you in advance


"This command returns the values of internal variables. No modification of these variables is supported."

It returns the values of various directory paths. 


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

Justin Israel

unread,
Apr 17, 2017, 4:57:52 PM4/17/17
to python_in...@googlegroups.com
On Tue, Apr 18, 2017 at 8:31 AM MA07 <amirahsya...@gmail.com> wrote:
what does it mean by internal variable here? Is it variable that we assigned in the script?or it has different meaning?thanks

They are getters for Maya's internal variables. If you wanted to customize, these, they are available through your Maya.env


 

On Monday, April 17, 2017 at 9:09:04 PM UTC+1, Justin Israel wrote:


On Tue, Apr 18, 2017, 7:45 AM MA07 <amirahsya...@gmail.com> wrote:
Hello,

Can anyone explain to me when is appropriate to use internal Var ?

what is internal Variable?

what exactly this command does.I don't really understand.

Example :

import maya.cmds as cmds

myScriptDir = cmds.internalVar(userScriptDir=True)

Thank you in advance


"This command returns the values of internal variables. No modification of these variables is supported."

It returns the values of various directory paths. 


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bae948b2-bc2a-476f-83e7-cdedcc8fcbbb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages