Raster man
02-16-2007, 08:43 PM
I get the following error when trying to unhide a selection set
>> MAXScript MacroScript Error Exception: -- Unknown property: "unhide" in $Editable_Mesh:wheel @ [-13.522045,-9.643635,2.072136] <<
Here is my script
macroScript Macro2
category:"DragAndDrop"
toolTip:""
(
fn hideSelset selsetIndex =
(
itemCount = (getNamedSelSetItemCount selsetIndex)
for j in 1 to itemCount do
(
node1 = getNamedSelSetItem selsetIndex j
node1.hide()
)
)
fn unhideSelset selsetIndex =
(
itemCount = (getNamedSelSetItemCount selsetIndex)
for j in 1 to itemCount do
(
node1 = getNamedSelSetItem selsetIndex j
print (getpropnames(node1) as string)
node1.unhide()
)
)
--for i in 1 to selectionSets.count do
for i in 1 to 3 do
(
print (i as string + " of " + selectionSets.count as string)
unhideSelset i
setname = (getNamedSelSetName i) as string
render fromframe:0 toframe:0 vfb:on cancelled:&wasCancelled outputfile:"test.bmp"
hideSelset i
)
)
I have tried several things, all to no avail, it seems I should be seeing if the node supports the unhide function, but I couldn't figure out how, or is there another way to unhide the whole selection set easily?
Thanks for any help.
>> MAXScript MacroScript Error Exception: -- Unknown property: "unhide" in $Editable_Mesh:wheel @ [-13.522045,-9.643635,2.072136] <<
Here is my script
macroScript Macro2
category:"DragAndDrop"
toolTip:""
(
fn hideSelset selsetIndex =
(
itemCount = (getNamedSelSetItemCount selsetIndex)
for j in 1 to itemCount do
(
node1 = getNamedSelSetItem selsetIndex j
node1.hide()
)
)
fn unhideSelset selsetIndex =
(
itemCount = (getNamedSelSetItemCount selsetIndex)
for j in 1 to itemCount do
(
node1 = getNamedSelSetItem selsetIndex j
print (getpropnames(node1) as string)
node1.unhide()
)
)
--for i in 1 to selectionSets.count do
for i in 1 to 3 do
(
print (i as string + " of " + selectionSets.count as string)
unhideSelset i
setname = (getNamedSelSetName i) as string
render fromframe:0 toframe:0 vfb:on cancelled:&wasCancelled outputfile:"test.bmp"
hideSelset i
)
)
I have tried several things, all to no avail, it seems I should be seeing if the node supports the unhide function, but I couldn't figure out how, or is there another way to unhide the whole selection set easily?
Thanks for any help.
