|
hi,
just started my adventure with scripts within xsi. is it possible to create a new _light_ partition from a script?
using:
CreatePartition
SetValue “Passes.Default_Pass.Partition.Name”, “lightsPartition1”
will create _object_ partition. what’s the way to achieve it?
thx
edit: found a workaround. created temporary light which is being selected when calling CreatePartition command (all within script). at the end the temp light is being deleted.
|
|
|
|
If you are using ver7 you can use Pass.CreatePartition method with siPartitionType argument, instead of CreatePartition command.
var oPass = ActiveProject.ActiveScene.ActivePass;
var oLightPartition = oPass.CreatePartition('blablaPartition',siLightPartition);
|
|
|