Mod Tool: Difference between revisions

165 bytes added ,  21 September 2012
m
no edit summary
mNo edit summary
mNo edit summary
Line 57: Line 57:
'''[http://softimage.wiki.softimage.com/sdkdocs/cus_addons_WalkthroughBuildinganAddon.htm building add-ons]'''
'''[http://softimage.wiki.softimage.com/sdkdocs/cus_addons_WalkthroughBuildinganAddon.htm building add-ons]'''
* Building an add-on file needs more effort than the other 'extensions' but for the end user it's best because it can hold all other files: toolbars, plugins (scripts), etc.
* Building an add-on file needs more effort than the other 'extensions' but for the end user it's best because it can hold all other files: toolbars, plugins (scripts), etc.
** The user can install a newer version of the addon by repeating the installation with the new file: it's unnecessary to remove the old version.
* File > Add-On > Package... doesn't work with ModTool "Add-Ons cannot be created with Softimage Demo Version."
* File > Add-On > Package... doesn't work with ModTool "Add-Ons cannot be created with Softimage Demo Version."
* '''putting scripts simply into folders doesn't work, they must be "plugins" (file extension can be the same e.g. "vbs")'''
* '''putting scripts simply into folders doesn't work, they must be "plugins" (file extension can be the same e.g. "vbs")'''
** a script can run on another computer if its content is found under a command, and plugin register that new command(s)
** A script can run on another computer if its content is found under a command, and plugin register that new command(s).
** e.g. use those commands in your toolbar's script buttons
** E.g. use those commands in your toolbar's script buttons.
* images can be put into any folder of the add-on, get them with '''''XSIUtils.ResolvePath("$XSI_USERHOME/") & "Addons\'''Addon_name\your_img_folder\img.png"''
* Images and any other files can be put into any folder of the add-on, get them with '''''XSIUtils.ResolvePath("$XSI_USERHOME/") & "Addons\'''Addon_name\other_subfolder\img.png"''
* The problem with embedded code: commands like ''CreatePrim'' can call an property page (PPG)
* The problem with embedded code: commands like ''CreatePrim'' can call an property page (PPG).
** But those popups can be disabled. Search for "disabling PPG popups" on this page.
** Those popups can be disabled. Search for "disabling PPG popups" on this page.




8,452

edits