Notifications
Clear all

[Closed] [Question mark]UVWMAP.gizmo the processing question?

several questions as following i would like to ask for answers, please.

I have to transfer the selection value into the variable,
What should i do?
Although it may made “for A in selection do” ,
it seemed that probably led in the circle.
But if i use “selectionSets [“boxes”] = selection”,
it can be saved,
But actually increased group of data.

02.Although the execution of, completed smoothly,
“UVWMAP” increase and “.gizmo” coordinate migration.
Why the Screen picture flashed with high speed

Is there method, to execution?

How to judge the selection geometry,
Once used ” instance” Or ” uvwmap” ?

How can i know, the now system units default ?

How many grammar compilation other has, whether correctly?
pt_0 = [0,0,14] –Such correct ?

max modify mode –Open the editing pattern, does it need ?

obj.UVW_Mapping.gizmo.position = pt_3
– Are the “position” and “pos” the same ?

How to delete the “UVWMAP” ?

Is there any difference between world coordinate and
use coordinate of MAXSCRIPT ?

Code:


selectionSets["boxes"] = selection
nss = selectionSets["boxes"]
nss.name
smct = nss.count
(for i in 1 to nss.count do
(select nss[i]
obj = nss[i]
pt_0 = [0,0,14]
pt_1 = obj.center

--The beginning reduces the central point computation differential value
pt_x = pt_0[1] - pt_1[1]
pt_y = pt_0[2] - pt_1[2]
pt_z = pt_0[3] - pt_1[3]
pt_3 = [pt_x,pt_y,pt_z]

addmodifier obj (uvwmap ())
obj.modifiers[#UVW_Mapping].maptype = 4
obj.modifiers[#UVW_Mapping].utile = 1
obj.modifiers[#UVW_Mapping].vtile = 1
obj.modifiers[#UVW_Mapping].length = 1
obj.modifiers[#UVW_Mapping].width = 1
obj.modifiers[#UVW_Mapping].height = 1
obj.modifiers[#UVW_Mapping].realWorldMapSize = off
obj.modifiers[#UVW_Mapping].utile = 1
obj.modifiers[#UVW_Mapping].vtile = 1
obj.modifiers[#UVW_Mapping].wtile = 1
obj.modifiers[#UVW_Mapping].length = 25.0
obj.modifiers[#UVW_Mapping].width = 25.0
obj.modifiers[#UVW_Mapping].height = 25.0

max modify mode  --Opening editing pattern
subobjectLevel = 1
obj.UVW_Mapping.gizmo.position = pt_3
subobjectLevel = 0
)
)

deleteItem selectionSets nss
clearSelection()
[\code]


Questions Above this.
Thanks for all the masters to, show the answers !!!