Update date 2020/08/11
Serpens ドキュメント(English)
Learn More →
$Cube_=`polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1 -n "Cube"`;
$Sphere_ = `polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1 -n "Sphere"`;
string $arrowGRP = `group -n test -p $Cube_ $Sphere_`;
Learn More →
import maya.cmds as cmds
Cube_ = cmds.polyCube(sz=1, sy=1, sx=1, d=1, cuv=4, h=1,
n="Cube", ch=1, w=1, ax=(0, 1, 0))
Sphere_ = cmds.polySphere(cuv=2, sy=20, ch=1, sx=20,
r=1, ax=(0, 1, 0), n="Sphere")
arrowGRP = str(cmds.group(Sphere_,
p=Cube_, n='test'))
# Error: line 1: Invalid arguments for flag 'p'. Expected string, got [ unicode, unicode ]
# Traceback (most recent call last):
# File "<maya console>", line 11, in <module>
# TypeError: Invalid arguments for flag 'p'. Expected string, got [ unicode, unicode ] #
関数Cube_のタイプはリストのため、上のコードのまま使用する場合は
Cube_ を Cube_[0] というように要素を取り出す必要があります。
arrowGRP = str(cmds.group(Sphere_,
p=Cube_[0], n='test'))
もう一つの対策としてはmelのコードを以下に変更します
$Cube_ = `polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1 -n "Cube"`;
$Sphere_ = `polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1 -n "Sphere"`;
string $arrowGRP = `group -n test -p Cube Sphere`;
import maya.cmds as cmds
Cube_ = cmds.polyCube(sz=1, sy=1, sx=1, d=1, cuv=4, h=1,
n="Cube", ch=1, w=1, ax=(0, 1, 0))
Sphere_ = cmds.polySphere(cuv=2, sy=20, ch=1, sx=20,
r=1, ax=(0, 1, 0), n="Sphere")
arrowGRP = str(cmds.group('Sphere', p='Cube', n='test'))
1
May 7, 2024# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals # import os import sys from PySide2 import QtCore, QtGui, QtWidgets # from PySide2.QtCore import Qt # from PySide2.QtGui import QPalette # import maya.api.OpenMaya as om
May 17, 2023やろうとしていること 任意のファイルパスを指定して、ボタンを押したらテキストが出力される コードを1から構築しているのではなくPProPanelのコードを元に不要なものを削って、必要な要素を記述していこうとしています 現状アプローチとして考えているのは2パターンです PProPanel/jsx/PPRO/Premiere.jsx内にfunction記述する方法 PProPanel/index.htmlにscriptタグを記述してfunctionを定義する方法
May 17, 2023https://youtu.be/KRJkBxKv1VM?t=5 So my name is Dan Somali / I'm a tools programmer at Guerrilla Games / and together/ with my colleague Sandra van der Steen. I'm going to talk about / how we rebuilt our tools pipeline during the development of Horizon Zero Dawn. so those of you / who might be unfamiliar / with the game, / Let's take a quick look at a trailer. 私はゲリラゲームズのツールプログラマーで、同僚のサンドラ・ヴァン・デル・スティーンと共に働いています。 Horizon Zero Dawnの開発において、どのようにツールパイプラインを再構築したかについてお話します。 このゲームに馴染みのない方のために、トレーラーを簡単に見てみましょう。
Nov 24, 2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up