Daz Script Window Opacity Syntax?

athenenoctuaathenenoctua Posts: 0
edited December 1969 in Daz Studio Discussion

What is the Daz Script syntax to set window opacity?

Here are a few lines from the mcjListRender script, declaring a dialog box:
var wDlg = new DzDialog;

wDlg.caption = programName + " " + versionName;


If I extrapolate from the syntax I see in the scripts I'm looking at, the declaration of window opacity would go something like

wDlg.windowOpacity = ".5";

No love when I insert this line, though.

Comments

  • Richard HaseltineRichard Haseltine Posts: 97,085
    edited December 1969

    I'm not aware that you can do this.

  • athenenoctuaathenenoctua Posts: 0
    edited December 1969

    Thanks, Richard. That answers a major question for this quixotic project I'm attempting--it means I'm going to have to create it (or con one of my coder relatives to create it) in a compiled language such as xcode. I can't do it with script.

  • Richard HaseltineRichard Haseltine Posts: 97,085
    edited December 1969

    I'm not sure that DS supports transparency of windows, in any manner - if it did you'd expect itt o be used, and I can't recall anywhere that it occurs.

  • athenenoctuaathenenoctua Posts: 0
    edited December 1969

    I'm not sure that DS supports transparency of windows, in any manner - if it did you'd expect itt o be used, and I can't recall anywhere that it occurs.

    When you say DS, do you mean Daz Studio or Daz Script?

    I am now certain that the IDE (compiled, not interpreted Daz Script) supports exactly what I'm envisioning: While playing around with the Region Navigator, I came upon this:

    Holy Grail transparent slider in lower left of shot.....

    Screen_Shot_2012-12-29_at_5.40_.12_PM_.png
    396 x 342 - 45K
  • Richard HaseltineRichard Haseltine Posts: 97,085
    edited December 1969

    I was thinking in general, but forgetting those sliders (since I don't use the feature they go with).

  • athenenoctuaathenenoctua Posts: 0
    edited January 2013

    Here's an idea, but not the way the poster intended.

    This person seems to have created a model and turned it into a rigging tool, right inside the 3D space itself. I could work with this. Could you tell me if he/she is using anything besides "follow me" as controls? How are the sliders being used to scale the...erm...body parts?

    http://www.youtube.com/watch?v=DXJU8fES7dk

    Post edited by athenenoctua on
  • athenenoctuaathenenoctua Posts: 0
    edited December 1969

    It is waay past my bedtime, but I noticed you (Rob?) just put this up in the documentation:

    http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/styling/defining_a_color_value

    I think this enables me to use Daz Script to enable transparency.

    When I get some sleep, I will look at this more closely.

    Thanks!

  • Richard HaseltineRichard Haseltine Posts: 97,085
    edited December 1969

    Not me, I think the scripting docs are all Rob. That does look useful, yes.

Sign In or Register to comment.