mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
hound
This commit is contained in:
parent
ac7b2963dd
commit
a75ff0f71a
1 changed files with 13 additions and 10 deletions
|
|
@ -2677,11 +2677,14 @@ def bake_to_world_space(nodes,
|
||||||
|
|
||||||
# Unlock transform attributes so constraint can be created
|
# Unlock transform attributes so constraint can be created
|
||||||
for attr in transform_attrs:
|
for attr in transform_attrs:
|
||||||
cmds.setAttr('{0}.{1}'.format(new_node, attr), lock=False)
|
cmds.setAttr(
|
||||||
|
'{0}.{1}'.format(new_node, attr), lock=False)
|
||||||
|
|
||||||
# Constraints
|
# Constraints
|
||||||
delete_bin.extend(cmds.parentConstraint(node, new_node, mo=False))
|
delete_bin.extend(
|
||||||
delete_bin.extend(cmds.scaleConstraint(node, new_node, mo=False))
|
cmds.parentConstraint(node, new_node, mo=False))
|
||||||
|
delete_bin.extend(
|
||||||
|
cmds.scaleConstraint(node, new_node, mo=False))
|
||||||
|
|
||||||
world_space_nodes.append(new_node)
|
world_space_nodes.append(new_node)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue