RE: Scripted Ghosting on off button

2014-02-17 Thread gareth bell
Quick and dirty



From: mladen.ke...@gmail.com
Date: Mon, 17 Feb 2014 13:38:34 +0100
Subject: Scripted Ghosting on off button
To: softimage@listproc.autodesk.com

Hello everyone, 
I need help creating a toolbar button witch will turn ghosting of selected 
object on/off and switch it onto trail mode. 

i would be really thankful to anyone who help :)


thanks,
Mladen

Ghosting Toolbar.xsitb
Description: Binary data


Re: Scripted Ghosting on off button

2014-02-17 Thread Martin Yara
So, what is the problem?

To switch ghost you have to change the camera animghostenable property in
camera display and the object property ghosting and ghosttype

I wrote something like that a long time ago, it was something like this:

//JS
SetValue("*.*.*.camdisp.animghostenable", true, null);
for (var i=0; i < selection.count; i++) {
selection(i).properties("visibility").ghosting = 1
selection(i).properties("visibility").ghosttype = 4
}

Martin





On Mon, Feb 17, 2014 at 9:38 PM, Mladen Kevic wrote:

> Hello everyone,
> I need help creating a toolbar button witch will turn ghosting of selected
> object on/off and switch it onto trail mode.
>
> i would be really thankful to anyone who help :)
>
> thanks,
> Mladen
>


Re: Scripted Ghosting on off button

2014-02-17 Thread Mladen Kevic
nice and clean :)

thank you very much


On Mon, Feb 17, 2014 at 2:32 PM, gareth bell  wrote:

> Quick and dirty
>
>
>
>
> --
> From: mladen.ke...@gmail.com
> Date: Mon, 17 Feb 2014 13:38:34 +0100
> Subject: Scripted Ghosting on off button
> To: softimage@listproc.autodesk.com
>
>
> Hello everyone,
> I need help creating a toolbar button witch will turn ghosting of selected
> object on/off and switch it onto trail mode.
>
> i would be really thankful to anyone who help :)
>
> thanks,
> Mladen
>