State:Closed|icon_bug|database:public|icon_mari|Resolution:Fixed|TargetRelease:3.4v1|BugID:285076|
Problem summary
Transferring textures across UDIMs via session script API does not support previously unused UDIMS
Customer reported version
3.1v3
Customer reported platform
n_a_linux
Steps to reproduce
1) Open Example Head
2) Export session out with default options
3) Add Head_Geo_New.obj as a new object
4) Run below script
Note that 1011 remains as a checkerboard.
import mari
def importMsfToMariSession(importMsfPath, uvIndexMap=None, merge=False, groupName=None):
trgGeo = mari.session.types.GeoEntity.fromSelected()
srcProj = mari.session.types.Project.fromMSF(importMsfPath)
srcGeo = srcProj.geoEntities[0]
copiedChannels = trgGeo.copyChannels(srcGeo.channels, uvIndexMap)
trgGeo.make()
uvIndexMap={0:[1],1:[0],2:[2],3:[3],4:[10]}
importMsfToMariSession("\\path\\to\\session\\export.msf", uvIndexMap)
We're sorry to hear that
Please tell us why