Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Script: Create Light Partition?
  RSS 2.0 ATOM  

Script: Create Light Partition?
Rate this thread
 
30175
 
Permlink of this thread  
avatar
  • Total Posts: 16
  • Joined: 19 February 2008 04:07 AM

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.



Replies: 0
avatar

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);


Replies: 0
avatar

thanks a lot :)



Replies: 0