PDA

View Full Version : Customattribut + Assembly = Crashes Light lister ?


seismograph
03-21-2012, 02:49 PM
Hi

I added a lightswitch to an assembly by using an customattribut.

This works pretty good (see code below), but i have a problem with the 3dsmax light lister because it then gives me an error "-- Unable to convert: undefined to type:Color" and don't list the lightassembly.


global test = attributes test
attribID:#(0x351b4b99, 0x9672c67)
(
parameters main rollout:prop
(
light_on type:#boolean ui:light_on_check
)

rollout prop "test"
(
checkbox light_on_check "Light On" checked:true
on light_on_check changed checkstate do for a in $ where (superclassof a == Light) do a.on = checkstate
)



)


-- select an assembly and then type following code:
-- custAttributes.add $ test



If i use "custAttributes.add $ test baseobject:false" the lightlister opens without problems and list the assembley but my checkbox switch is gone.

..so ..any idea???

seismograph
03-26-2012, 07:50 AM
no one has an aswer? :sad:

CGTalk Moderation
03-26-2012, 07:50 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.