Hello,
I was wondering if I am doing this syntax correctly? If it all possible, could someone explain?
button theCopyUVButton "Copy" width:80 align:#left offset:[0,0]
on theCopyUVButton pressed do
(
selection[1].modifiers[1].GroupCreateBySelection()
GUV = selection[1].modifiers[1].getSelectedFaces()
)
button thePasteUVButton "Paste" width:80 align:#center offset:[-160,-26]
on thePasteUVButton pressed do
(
selection[1].modifiers[1].selectFaces GUV.selection
selection[1].modifiers[1].GroupCreateBySelection()
I know it has to do with this line:
GUV = selection[1].modifiers[1].getSelectedFaces()
…
selection[1].modifiers[1].selectFaces GUV.selection
Here is the original Syntax via the reference I found on the site:
<Unwrap_UVW>.getSelectedFaces()
Returns the face selection from the Editor as bitarray.
Exposed via unwrap2 interface in 3ds Max 5 and higher.
<Unwrap_UVW>.selectFaces selection
Sets the face selection in the Editor using the supplied bitArray.
Exposed via unwrap2 interface in 3ds Max 5 and higher.
Thank you in advance.
