TwoThings Every Technical Artist Has to Know

  Рет қаралды 320

Sergio Neza

Sergio Neza

Күн бұрын

TwoThings Every Technical Artist Has to Know
In this tutorial, we will cover three crucial skills that every technical artist must master:
1. Using Python for Selections: Learn how to efficiently pick and manage selections within your favorite 3D software.
2. Setting Parameters, Attributes, and Knobs: Discover how to automate and customize parameters (Houdini), attributes (Maya), and knobs (Nuke) to streamline your workflow.
Whether you're a beginner or looking to deepen your expertise, this tutorial is designed to provide you with practical skills and insights that you can immediately apply to your work. Let's dive in and explore the powerful capabilities of Python in the world of 3D software!
Code:
PICK SELECTION SET GET ATTRIBUTES IN MAYA
import maya.cmds as mc
Pick Selection
sel = mc.ls(sl=1)
Get Texture Node
file_node = sel[0]
Get Parameter Value
parm = '{}.fileTextureName'.format(file_node)
Get Parameter Value
parm_value = mc.getAttr(parm)
print(parm_value)
Set Parameter Value
mc.setAttr(parm, 'E:/ma/sourceimages/sloth_texture.jpg', type = 'string')
parm_value = mc.getAttr(parm)
print(parm_value)
PICK SELECTION SET GET PARAMETERS IN HOUDINI
import hou
Pick Selection
sel = hou.selectedNodes()
Get File Node
file_node = sel[0]
Get Parameter
parm = file_node.parm('file')
Get Parameter Value
parm_value = parm.eval()
print(parm_value)
Set Parameter Value
parm.set('E:/_behind_the_magic/_src/ASSET_statues.abc')
parm_value = parm.eval()
print(parm_value)
PICK SELECTION SET GET KNOBS IN NUKE
import nuke
Pick Selection
sel = nuke.selectedNodes()
Get Read Node
read_node = sel[0]
Get Knob
knob = read_node.knob('file')
Get Parameter Value
knob_value = knob.value()
print(knob_value)
Set Parameter Value
knob.setValue('E:/_comp/_out/drag_landing.mp4')
knob_value = knob.value()
print(knob_value)

Пікірлер
Mastering Houdini Destruction Simplified part 1
1:25:17
Sergio Neza
Рет қаралды 1,4 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 140 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
why am i building this?
8:37
TheVimeagen
Рет қаралды 25 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Scatter randomize  object type
18:30
Sergio Neza
Рет қаралды 372
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 455 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 718 М.
What You Need To Know About Python 3.13
15:45
Jake Callahan
Рет қаралды 8 М.
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 440 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН