ScriptSpot home

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

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

Reply to Garp
Maelvon
custAttributes.count $ BaseObject:true
0
custAttributes.count $ BaseObject:false
0

The file is joined!

Attachments
Jos Balcaen

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
Reply to Jos Balcaen
Maelvon

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.

Reply to Maelvon
Panayot Karabakalov

curiously! :)

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

Reply to Maelvon
Panayot Karabakalov

try this...

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