Page 1 of 1

Small request / Tip

Posted: Wed Mar 02, 2011 9:30 am
by Magog
Hi face,
I've a little question for you.. :)

Can u create a button to facilitate the opening of the PPG Octane's without going every time to the file> export .... etc?

Example:

Re: Small request / Tip

Posted: Wed Mar 02, 2011 9:34 am
by face
I will show what I can do...

face

Re: Small request / Tip

Posted: Wed Mar 02, 2011 9:44 am
by Magog
Thanks for your kindness and courtesy!!!!

Re: Small request / Tip

Posted: Wed Mar 02, 2011 3:37 pm
by face
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.
Toolbar.zip
(4.37 KiB) Downloaded 408 times
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

Re: Small request / Tip

Posted: Thu Mar 03, 2011 7:50 am
by Magog
WoW!
But.. You're really fast! And extraordinary! :o :D
In the afternoon I will do a test!!

Tnx!!Tnx!!Tnx!!Tnx!!Tnx!!Tnx!!Tnx!!

Re: Small request / Tip

Posted: Thu Mar 03, 2011 2:42 pm
by Magog
Yeahh !! Really easy to install!
I've tried second option!

Tnx face!

Re: Small request / Tip

Posted: Thu Mar 03, 2011 4:22 pm
by face
Cool, I´m glad to read that...

face

Re: Small request / Tip

Posted: Mon Mar 07, 2011 11:27 pm
by DI2011
Sweet!!!

Thanks Face!!!!

Re: Small request / Tip

Posted: Tue Mar 08, 2011 12:53 pm
by Alul
Small thing but very useful. Thank You.