ScriptSpot

Forum topic · General Scripting

Strange thing with a Dummy that have Material assigned

By Maelvon · 2012-01-24

Description

Hello,

I have a file with a Dummy that have a Material assigned to it. That's strange, weird, and I want to remove it but I cannot.

Do you have a tip ?

I've done :

print $.material
StrangeMaterial:Standard
$.material = undefined
undefined
print $.material
StrangeMaterial:Standard

But nothing change as you can see!

Comments (9)

Garp · 2012-01-25

Can you merge that dummy into an empty file and post it here?
It'd be great if we could have a look.

Maelvon · 2012-01-25

custAttributes.count $ BaseObject:true
0
custAttributes.count $ BaseObject:false
0

The file is joined!

Attachments

Maelvon · 2012-02-14

But "UVW Remove" doesn't work in that special case.

jos · 2012-01-24

can't create yout problem, so difficult to help.
how did you do it?


print $.material
undefined
$.material = Standard()
Standardmaterial:Standard
print $.material
undefined
$.material = Standard()
Standardmaterial:Standard
$.material
undefined

Maelvon · 2012-01-24

That's the copy of the Maxscript Listener windows. But I've not copied it correctly, sorry! Here is the correct one.

print $.material -- input
StrangeMaterial:Standard
StrangeMaterial:Standard
$.material = undefined -- input
undefined
print $.material -- input
StrangeMaterial:Standard
StrangeMaterial:Standard

I've put the material value to undefined, but it is not applied. I don't known how the material has been applied to the Dummy, but if I can remove it without replacing by a fresh new Dummy.

curiously! :)

Anubis · 2012-01-25

that unique event deserve to be sended to Autodesk! :)
but out of the joke, is there some custom attributes on that dummy?

Maelvon · 2012-01-25

Dummy with a material

I don't see any custom attributes on this Dummy, only the Material one.

try this...

Anubis · 2012-01-25

Select the object and run in the Listener this 2 commands one by one. Only if both return 0 then there no CAs.

custAttributes.count $ BaseObject:true
custAttributes.count $ BaseObject:false