View Full Version : Change surface params via LScript in Modeler

09-07-2004, 01:54 PM
I can't find any source to work from. And nothing in the manual. I saw the one regarding Layout though, but didn't know if it was the same.

So how do I say apply a specific surface param (color/diffuse/spec) to an object/surface?

09-07-2004, 10:07 PM
i tried doing this some time ago and i think i came to the conclusion that you can not do that in modeler. you can assign surfaces, but i havent found a way to actually modify those surfaces in modeler.

hopefully i'm wrong, but that is the extent of my experience.

09-07-2004, 10:11 PM
Hmmm.. that sucks. I hope it's the opposite.

Well, I am trying to mimic D-Storms glass plug-in in LScript, but with a pull-down of a list of transparent surfaces to choose from and a couple of other params.

09-07-2004, 10:14 PM
maybe working in layout will be more advantageous for you. however, you cannot assign / reassign poly surfaces on the fly though (you'd have to go back to modeler).

09-14-2004, 04:09 PM
There's no function to do this :mad: , but there's a workaround :p
You can send "externals" commands via CommandInput

surfacename="Neutral gray"
CommandInput(string("Surf_SetSurf ",surfacename));
CommandInput("Surf_SetColor BaseColor 128 128 128");

I'm currently unable to control glossyness and specularity.
Anyone who has a solution will be welcome.

hope it'll help.