![]() You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. xform ( targetObj, ws = True, t = pos ) #get normal, tanU and tanV at selected UV position on source surface tanV = cmds. The following are 15 code examples for showing how to use ().These examples are extracted from open source projects. as well as introduce one of the most useful commands in Maya: ls. ![]() pm.ls (type'joint') Some possible types are, camera, mesh, joint etc. We can list specific type of element by passing type parameter. pm.ls () Here is reference to ls command. pointOnSurface ( sourceObj, u = sourceU, v = sourceV, position = True ) posVec = om. A Primer for Technical Artists Using Maya and Python Eyal Assaf. In Maya there is a ls command which lists all objects in a scene (or DAG). That creates a pointOnSurface node pos = cmds. createControl ( name = " #Does this create a new node? no To create a node, use the flag "ch=True". xform ( origCtrl, q = True, ws = True, rp = True ) topCtrl = rig. Def add_top_level_ctrl ( origCtrl, type, geo, * args ): """ creates a new ctrl, orients it to the geo and parent constrains the orig ctrl rig under itself :param origCtrl: the control we're working from :param type: the ctrl type of shape see zbw_rig.createControl for options :param geo: the geo to orient to :param args: :return: topCtrl (the new ctrl), grp (the top ctrl grp freeze grp) """ # THIS IS THE XTRA CTRL LAYER, THIS ORIENTS CTRL AND CONNECTS ORIG CTRL TO THE NEW CTRL origCtrlPos = cmds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |