remove ies file

remove ies file

jackietsteh
Advocate Advocate
1,459 Views
4 Replies
Message 1 of 5

remove ies file

jackietsteh
Advocate
Advocate

Hi i have a lot of vrayies light which i copy as instance and apply same ies file, but when i apply $.ies_file="", it remove all the ies file in the scene, may i know how can i remove just 1 ies file with maxscript?

 

Regards,

Jackie

Best regards,
Jackie Teh
Portfolio: http://www.coroflot.com/jackieteh
Youtube Channel:https://www.youtube.com/user/jackieteh
0 Likes
Accepted solutions (1)
1,460 Views
4 Replies
Replies (4)
Message 2 of 5

MedalHellWay
Collaborator
Collaborator

I do not think you can do this ... you should only makeunique the VrayLight and delete the IES file.  This however, lose the light property Instance...

0 Likes
Message 3 of 5

jackietsteh
Advocate
Advocate

Thank you for reply...may i know how to make unique with maxscript?

Best regards,
Jackie Teh
Portfolio: http://www.coroflot.com/jackieteh
Youtube Channel:https://www.youtube.com/user/jackieteh
0 Likes
Message 4 of 5

har1sf0x
Advocate
Advocate

Hello,

 

 I do not have vray currently installed to test it but the following script should work (it works with Target Spot light):

 

for obj in selection do obj.baseobject = copy obj.baseobject --select all the lights that you want to make unique before executing this line of script

 

Enjoy,

har1sf0x

Message 5 of 5

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

i don't have vray on my machine so i can't test it...

 

if VRayLight is a class you can:

 

(getclassinstances VRayLight).ies_file = ""

if *.ies_file is a property only VRayLight light you can:

 

for light in Lights where isproperty light #ies_file do light.ies_file = ""
0 Likes