Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

<Unwrap_UVW>.setSelectMatID not updating

<Unwrap_UVW>.setSelectMatID not updating

Anonymous
Not applicable
662 Views
3 Replies
Message 1 of 4

<Unwrap_UVW>.setSelectMatID not updating

Anonymous
Not applicable

Hello,

 

 I am using the maxscript method <Unwrap_UVW>.selectByMatID and <Unwrap_UVW>.setSelectMatID. However it seems to only update the UI spinner value and not execute it.

 

Does anyone know how to “Enter” this value or what Im doing wrong?

 

Here is example on how Im using it.

(
	for i=1 to listA.count do
	(
		$.modifiers[#unwrap_uvw].selectByMatID listA[i]
		$.modifiers[#unwrap_uvw].setSelectMatID listB[i]
	)
)
0 Likes
Accepted solutions (1)
663 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

If you have a box selected with a Unwrap UVW modifier applied and run the following in the listener window.

 

 

$.modifiers[#unwrap_uvw].selectByMatID 2

$.modifiers[#unwrap_uvw].setSelectMatID 1

 

 

You’ll see in the Material IDs rollup window SetID: 1 and SelectID: 2 instead of SetID: 1 and SelectID: 1 (what happens when you manual use the spinner or press Enter)

 

Im working in 2017, but tested this in 2016 and 2018 as well with the same result.

 

Any help would be great!

 

MatIDs.jpg

0 Likes
Message 3 of 4

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

@Anonymous wrote:
$.modifiers[#unwrap_uvw].selectByMatID 2

$.modifiers[#unwrap_uvw].setSelectMatID 1

You’ll see in the Material IDs rollup window SetID: 1 and SelectID: 2 instead of SetID: 1 and SelectID: 1 (what happens when you manual use the spinner or press Enter)

use setSelectionMatID if you want to update SetID as well

0 Likes
Message 4 of 4

Anonymous
Not applicable

Thanks!

0 Likes