Posts

Showing posts from January, 2020

Maya: Expression

Autodesk Knowledge Network: How often an expression executes Runtime expression execution Write runtime expressions

Maya: Node types

Node types (Autodesk Knowledge Network) Shape nodes: import maya.cmds as mc; mc.spaceLocator(); # Creating a locator mc.circle(); # Creating a nurbsCurve circle mc.sphere(); # Creating a nurbsSurface sphere mc.polySphere(); # Creating a polygon sphere shapenodes= mc.ls(type="shape"); for item in shapenodes:     print item + " : " + mc.nodeType(item); #Outputs: frontShape : camera locatorShape1 : locator nurbsCircleShape1 : nurbsCurve nurbsSphereShape1 : nurbsSurface pSphereShape1 : mesh perspShape : camera sideShape : camera topShape : camera

Maya: Legacy Viewport

Maya: Legacy Viewport Viewport 2.0 and Legacy Default Viewport: Maya2016 Legacy High Quality Viewport options: Maya2017 Restoring the Legacy Viewport in Maya2018 No longer supported in Maya2019

MWP: Sample GUI

Image
Motionbuilder with Python # Reflecting to GUI When any object selected and "Get selected" button pressed , "Get selected" button label will be changed to the selected object name. # Reflecting from GUI When "Select" button pressed, it tries to find an object by the above button name. Sample code is here . (Version tested: 2018) Please see this page  to relocate the sample code in i3d script folder. #Prerequisites : i3dmb.pyc #Command: import i3dmb,i3dmb_samples as iSa;iSa.sampleGUI().create();

Spreadsheet: GOOGLEFINANCE and Currency Codes

Formula: =GOOGLEFINANCE("CURRENCY:JPYUSD") List of Current Codes: https://docs.google.com/spreadsheets/u/1/d/1tWyqfDFZ8ZYVriK327vMwJ9uWZu3SzYdwWFgn43d0D0/

MWP: Motion Builder With Python

# In Python Editor, print pyfbsdk; # This will print pyfbsdk.pyd location. # In my case, it prints like below <module 'pyfbsdk' from 'C:\Program Files\Autodesk\MotionBuilder 2018\bin\x64\pyfbsdk.pyd'> i3dmb.pyc is a core script file of i3d script collection for motionbuilder. Save it in C:\Program Files\Autodesk\MotionBuilder 2018\bin\x64\ (My case) More i3d scripts for motionbuilder are coming in 2020. ;) # Command: # This will open an folder where all other(non-core) i3d scripts should be saved. import i3dmb as i3d;i3d.info().i3dFolder("script","open"); Python Scripting for MotionBuilder 2011 - Reference Guide (pyfbsdk) http://download.autodesk.com/us/motionbuilder/sdk-documentation/PythonSDK/main.html pyfbsdk Namespace Reference http://download.autodesk.com/us/motionbuilder/sdk-documentation/PythonSDK/namespacepyfbsdk.html Python Scripting Reference Guide (pyfbsdk) 2014 http://docs.autodesk.com/MB/2014/ENU/Motion...