|
Hi, new to Motionbuilder in general and Python in particular. I have scripted a fair bit in Max, and various other languages though.
Anyway, I was looking for help on a specific topic:
I want a script to set the Ambient Color of a scene’s Global Light to 0,0,0 (default is 0.4,0.4,0.4) - we have a script that is run just after importing some MoCap data, and while it’s a small thing, might as well automate as much as possible, right?
So, lacking a reference or “listener” like there is in Max (unless I haven’t found them?), I’m a bit stumped.
cheers,
Mikkel
edit: MB 2010 if it makes a difference
|
|
|
|
Try this ;)
gLight = FBGlobalLight()
gLight.AmbientColor = FBColor(0,0,0)
Cheerz
|
|
|
|
Worked beautifully, thanks!
Incidentally, I got it to work using “from pyfbsdk import *” - what specific class is the right one if I just wanted this to work without importing everything? (and is that even worth worrying about?).
|
|
|
|
Importing everything is ok. Never had any Memory issues…
|
|
|
sublist 20 January 2010 11:20 AM
Importing everything is ok. Never had any Memory issues…
Excellent, it’s easier too so I won’t worry about it then. Thanks again!
|
|
|