Skip to content

Instantly share code, notes, and snippets.

@Roumenov
Last active September 29, 2019 05:14
Show Gist options
  • Save Roumenov/c7343050e81f27807ba33f65a4a2ab5c to your computer and use it in GitHub Desktop.
Save Roumenov/c7343050e81f27807ba33f65a4a2ab5c to your computer and use it in GitHub Desktop.
example of weird phenomenon when selecting verts of referenced mesh
import pymel.core as pm
target_mesh = pm.ls(sl=1)[0]
print target_mesh
pm.select("mesh:simple_plane.vtx[*]")
pm.select("mesh:Xidriel_head_mesh.vtx[*]")
target_mesh.vtx[0].select()
target_mesh.vtx[:].select()
#why come this works but not the other?
pm.select(target_mesh+".vtx[*]")
pm.select(target_mesh+".vtx[:]")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment