Get Selected ICE Compound function
Needed to get the selected ICE Compounds via scripting today and finally got a working function that returns a dictionary { Name:FullName }. See below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | from win32com.client import constants as c xsi = Application log = xsi.LogMessage def getSelectedICECompounds(): collViews = xsi.Desktop.ActiveLayout.Views oICETreeView = collViews("ICE Tree") if oICETreeView: strNodes = oICETreeView.GetAttributeValue("selection") if not strNodes: log("No nodes selected.") return lSelectedNodes = strNodes.split(",") dICECompounds = {} for eachNode in lSelectedNodes: oNode = xsi.Dictionary.GetObject(eachNode) if oNode.IsClassOf(c.siICECompoundNodeID): lFullNameSplit = oNode.FullName.rsplit(".") dICECompounds[lFullNameSplit[len(lFullNameSplit) - 1]] = oNode.FullName return dICECompounds else: log("ICE Tree view not found!",2) |
AnimStore v1.1
Updated the plug-in which I believe fixes the issue where now you don't have to edit the __init__.py file. Please post any issues.
I also fixed the bit where the warning message about not having the pose cam actually displays at the bottom of the screen.
I also stored the original selection and re-select it after importing the camera.
ControlSetup v1.3
Forgot to include my ET_CreateRestNull plug-in and may have caused errors while using the plug-in. Please uninstall previous version and install this new version.
Download (right click, save as)
ControlSetup v1.25
ET_PassManager
This plug-in imports controllers and constrains the selected objects to the imported copy of the control. You have the option to constrain by Position, Orientation, Scale, and Pose. You can optionally select the "Import" button and have the control imported and placed at world 0.
This plug-in is meant to be expandable by the end user. Inside the add-on's "Data" folder there is a "Models" and "Images" folder. Users can export their own controls to this "Models" folder by putting the control under a model null and going to File > Export > Model. You can additionally create an icon for it by going to the "Images" folder and editing the *.psd file and saving it in the same naming convention as per the supplied controls.
- The model should be named "Something_Control.emdl" replacing "Something" with a unique name.
- The image should be called "Something.bmp", replacing "Something" with the same unique name
Updating the plug-ins by hitting the "Update All" button at the top of the plug-in manager should be enough to update the available controls, but you need to close the ET_ControlSetup PPG that is created and re-open it.
Found under Get > Primitive > ET_Control
Download (right click save-as)
PassManager v2.0
Just updated my ET_PassManager plug-in to v2.0. Added a custom command to copy partitions from one object to another throughout all passes. I also added a help file (more of an info page than help) which lists all information that is stored in the *.sipass files.
Download (right click > save as)
PassManager 1.75
An update to my previous plug-in.
IMPORTANT: http://www.xsi-blog.com/archives/24
Download the plug-in. (Right click, save target as)
Bug Fixes:
- Previous version added override to partitions whose visibility was set to hidden. This has been removed.
New Features:
- Now stores information for the 'Main' framebuffer ie: Filename, Output Format, DataType, BitDepth.
- Stores Scene Render options, ie: Renderer, OutputDir, Frame Range, Start / End Frame, Output Resolution.
Some of the information isn't stored like the the Field Rendering option as I believe it is commonly left as is.
PassManager 1.5
Here's a demo for the new version of my plug-in ET_PassManager. It now supports exporting of Material Libraries with the *.sipass.
This plug-in allows users to export the current scene's passes and partitions and import them to other scenes. The expored *.sipass file is XML and stores the following information about passes and partitions:
- Visibility
- Members
- Overrides
- Materials
2 files are exported during the export command. The *.sipass file it's related *xsi material library. All materials used on partitions prior to export will be pacakged into the material library and exported. If the same material is used on multiple passes and partitions, it is only exported once.
Download the plug-in. (Right click, save target as)
ET_PassManager
I've uploaded a demo video of a new plug-in I'm working on. Please see the vimeo video for details!
XSI Viewport Capture with Python
Had to create a function to capture the viewport today and thought it'd be useful to post it here for others to find.
NOTE: You may need to do the procedure on this page to get this to work properly: http://www.xsi-blog.com/archives/24
See below: