by face » Wed Mar 02, 2011 3:37 pm
face
Wed Mar 02, 2011 3:37 pm
Have made a custom copy of the toolbar "Main Shelf".
The files and folders in the zip comes to your...
C:\Users\USERNAME\Autodesk\Softimage_WhatEver\Application\toolbars
...folder.
If you have a modyfied toolbar or you want to place the button on an other toolbar, you must do some things.
- Extract only the bitmaps folder/file from the zip to the folder above.
- Rightclick on the toolbar where you want the button and choose "Customize Toolbar"
- Select in the new window the group "Toolbar Widges".
- Drag and drop the "Script Button" to the right place.
- In the "Customize Button" window, change the "User Button Size" from width and height to 36.
- In the "Button Label" and the "Tooltip" you can write what you want.
- Change the "Bitmap" to "OctaneLogo" without the brackets.
- Change the "Script Language" to VBScript.
- Copy and paste the following code in the "Script Commands" window.
- Code: Select all
exists = false
set oProps = ActiveProject.ActiveScene.Root.Properties
for each oProp in oProps
if oProp.Name = "Octane_exporter" then exists = true
next
if exists then
inspect
else
gen
end if
function inspect
InspectObj "Octane_exporter"
end function
function gen
SIAddProp "Octane_exporter", "Scene_Root", siDefaultPropagation, "Octane_exporter"
inspect
end function
- Press OK
- The button is now in the toolbar, but the position isn´t where you want.
You can now simple drag the button to the right position. - After that, close all windows.
- Choose Yes to save the changes in the toolbar.
Hope that works
Have fun...
face