Render/Lighting/Background colour buttons automatically switch on layers?!

Hi There,
I've discovered what is either a bug in Acrobat 3D v7 or a problem with my scripting (most likely the latter!).
I have a series of buttons that i've scripted so that when pressed, switch on/off various objects. However, when any of the Render Mode or Lighting or Background Colour buttons are pressed, all the objects (whether they've been switched off or not) are automatically switched on.
Does anyone have any ideas on why this is happening? I had intended to attach my pdf as an example, but there doesn't seem to be an "attach file" option here.
Can anyone help?
George

George,
This is not a bug, it is indeed intentional. The Toolbar buttons are for the User, and if they click on a button to affect the rendermode/lighting/Background color, the safest and most logical thing for us to do was apply this affect to every object in the scene, and show the results.
There are a Few ways you could solve this:
1) In the 3D Properties dialog, DE-select "Show Toolbar by Default".
2) Use a ToolEventHandler(), and re-run your functions after the user interacts with a given tool. You would need to keep a visibility state variable to know what to re-instate.
gb

Similar Messages

  • How to use 3d simple scene scripts (render, lights, background color)

    Hi all, this might be a stupid question to ask but
    can someone help me with this:
    I have 3 simply buttons in 3d pdf file (no external js-file)
    one for rendering the scene which works fine...
    context3D = getAnnots3D(0)[0].context3D;
    context3D.setRenderMode("vertices");
    but how to set the light mode and background color mode with a script
    as easy as the rendering script?
    many thanks in advance!!!
    Darian

    scene.lightScheme = scene.LIGHT_MODE_DAY; //or any of (NONE, WHITE, BRIGHT, RGB, FILE, ...)
    They are all listed in the 3D javascript reference PDF.
    Changing the Background is a bit more work. You have to access the backgrond object through a canvas object. You have to handle one of the Key, Menu, Render, Camera, ... events to get ahold of the Canvas object.
    Example (Embedded JS)
    //=================
    ceh = new CameraEventHandler();
    ceh.onEvent = function(event)
    if (event.isNewCanvas)
    //This does a two color gradient, you can also use .setImage()
    event.canvas.background.setColor( new Color( 1, 1, 0.8 ), new Color( 0.17, 0, 0.30 ) );
    //this is not neccessary, but it will speed things up a tad.
    runtime.removeEventHanlder(ceh);
    runtime.addEventHandler(ceh);
    //================

  • Droid Maxx will not connect to wifi, slide the button to "on" and button automatically switches back to "off"

    Yesterday my Maxx stopped allowing me to turn on the WiFi.
    If I turn it on in the settings, it automatically slides back to off (in less than 5 seconds), never connects.
    In advanced settings under WiFi, mac address is unavailable (don't understand why no mac address is listed here), so is IP address (this one I understand because it isn't connected).
    troubleshooting steps taken so far:
    1.  power cycled - changed nothing
    2.  made sure no 3rd party apps causing issues (uninstalled or stopped) - changed nothing
    3.  powered up in safe mode - changed nothing
    4.  ran a factory reset/restore - changed nothing
    Note:  The phone hasn't been recently updated with a system update and nothing as been installed in over a week before issues
    Now what?

        Thanks for your efforts, jcma323. I'm going to send you a Direct Message. We'll get to the bottom of this.
    ChaunceyM_VZW
    Follow us on twitter @VZWSupport

  • My iphone does not automatically switch off the display light when locked. How do I fix this?

    I have an iPhone 5 with iOS 8.2 software.
    My iPhone does not automatically switch off the display light when it is locked. Therefore, if I get an e-mail/text message/pop-up from other application, the light just stays on, which obviously drains my battery.
    The problem just started yesterday, and it has been a couple of days since I updated the software, so I wouldn't think the software update is the problem.
    I have tried restarting the phone (using home and lock button), but that did not work.
    Something else that seems weird is that once in a while, a blue beam rolls over the screen from one side to the other. I don't know why it does this, and have no idea whether this is related to the display light issue.
    I hope someone is able to help by telling me what to do in order to get my phone to act normal again.
    Thank you x

    Restart your device by holding the home and power button until the Apple logo appears. You will not lose any data.

  • How do I change the gradient so my background colour goes from dark to light?

    I am a relative newbie to PSE. If have tried adding a gradient to my background colour but I have noticeable lines. I need it to go from dark to light from left to right.
    Can anyone help me?
    Mike

    Hi Mike
    You use the gradient tool (foreground to background color)
    e.g set colors to black/white at bottom of tool pallet
    Select gradient tool and set mode to lighten
    Click on top of your image and drag down to the bottom (holding the shift key whilst dragging ensures a vertical line)
    Then release the mouse.

  • IPad background changing orientation automatically.

    IPad mini retina problem: background changing orientation automatically despite orientation lock. I am using Smart Cover .

    Is there a lock symbol at the top of the screen next to the battery indicator ? If so, then depending on what you've got Settings > General > Use Side Switch To set to (rotation lock or mute notifications), then you can lock/unlock the rotation by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If there isn't a lock symbol then try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • IS THERE A WAY OF ALTERING THE APP FOLDER BACKGROUND COLOUR TO BE MORE CONTRASTING THAN THE WALLPAPER COLOUR?

    Have tried various google searches but to no avail. Can anyone suggest anything?

    You mean switch on the Increase Contrast button? I have done that - I was wondering if there is an option to alter the background colour so that it is totally different from the wallpaper colour. ie blue v red, for example

  • External and internal mikes are not automatically switching over either recording or on voice calls

    My laptop model name is HP Pavilion dv4-1100ea which is shipped with Vista Home premium 32 bits and has got service pack 1.
    Restored the laptop to factory setting since then I am having the following problems; I had the same problem when my laptop was brand new and whenever I reset the laptop to factory setting I get the following problems:
    1. External and internal mikes are not automatically switching over either in middle of the recording using sound recorder or while the call in progress on voice calls (skype):
       Using the sound recorder if I start recording the sound with external  mike  and in-between  recording if I  switchover from external mike to inbuilt mike and later on when I play back I can only hear the sound  up till where I used the external mike during recording, after the switchover to inbuilt mike I cant hear any sound.
       But if I start the recording with inbuilt mike and in between recording  if I plug in  the external mike and later on when I play back I can only hear the sound up till where I used the inbuilt mike during recording , after the switchover to external mike I cant hear any sound.
       So in brief both my external and internal mikes are working fine, only problem is that if I start recording (using sound recorder) or voice call with one specific mike, I have to continue with it till the end. I can’t switchover to another mike in between the conversation (voice call) or recording, if I do so, I have to select the mike manually in chat software but while recording I cant even select manually because in laptop, it takes the mike whichever is in current use as default mike in recording tab(sound window). The green tick automatically (in recording device tab) switches over according to the use of mike. Though the green tick in the recording tab is switching over automatically according to use of mikes, its not picking up the sound after switch over during recording.
    2. And also when I click on recording device tab in sound window and plug in external mike, though the green tick automatically switchovers from internal to external mike, while I speak both internal and external mikes volume meter respond to the sound inputs by rising and falling but if I take out external mike, green tick goes to internal mike and when I speak only internal mike volume meter respond to sound rising up and down not the external mike.
    To resolve the issue I have tried following steps with no luck:
    1.I have checked the mikes(internal and external) properties, the both mike shows to be enabled in general tab, in level tab the volume is set to 100 and in advanced tab , all options are selected.
    2. In device manager I have got only one audio driver named as “IDT High definition Audio CODEC”. I have uninstalled the audio driver and reinstalled it using scan for hardware option
    3. Uninstalled the audio driver in device manager and reinstalled the audio driver using recovery manager > advanced option> hardware driver re-installation.
    3. I have updated the BIOS(Insyde F.65, 12/02/2010).
    4. I tried to update the audio driver using below link but things went more worse so I did system restore (not factory setting though).
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-67051-1&lc=en&dlc=en&cc=us&...

    Sounds like you need to upgrade to the iPhone 5s
    The 5s has Touch ID
    You can unlock your phone with your finger instead of typing in a key code
    No swiping to unlock either, just touch the home button
    You can enrol multiple fingers as well
    Here is a video of it in action
    http://www.apple.com/iphone-5s/videos/#video-touch
    Or wait and see what iPhone 6 has to offer
    That being said, as desiel vdub posted if the phone is up to your face, the proximity sensor should turn the screen off
    And when you lower the phone turn it back on again
    Not sure about the phone locking when your on a call doesn't sound right

  • Background colour in pages document

    Is there a way of having white as my background colour for my document and using white script?

    Peter, thank you for your response.
    I wasn't trying to lock horns with you.
    Your story about your sister in law made me laugh.
    To be certain, I am NOT arguing that black text on white background is less legible
    [I'm sure you are correct that it is more legible. That would stand to reason].
    I am saying that staring at lots of white light hurts my eyes and I don't like looking at it for a long time.
    I'm sorry you disagree with what I have experienced that applies to me personally over many years.
    However,
    I don't think that's superstition.
    That's years of personal experience, related to my own personal eyeballs [not yours].
    To drop pretensions of science,
    I'm afraid what this boils down to is I can't be told what I like to see, or look at for long periods, and what is more comfortable for me personally.
    To use a very rough analogy : 
    Would it be more painful for you to stare at a very intense little ball of light [or a few of them] / [or a neutral-coloured ball of light] against a dark night sky?
    OR at a few black dots in front of , perhaps not the sun, but some other similarly but far less intense light across say, the sky as a backdrop, all of that light shining in your eyes?
    Would you rather try and read small text on a dim lightbulb, or against a fully-lit lightbulb?
    You may be different. I personally prefer the text on the more neutral lightbulb.
    I'm perfectly happy to be surprised, but I don't think you were addressing a slightly separate topic: legibility, rather than photoreceptors being bombarded with hot-light all day.
    While legibility is a factor related to eyestrain, I would suspect for different reasons,
    and ultimately, what negligible-difference I may lose in legibility is far-more than made up for by not having to stare at a flat panel beaming hot-light into my eyes all day.

  • How to change the text color of a label by using RGB values without changing the background colour?

    xCode interface builder:
    When I try to change the color property of a label's text by using the RGB values, the background color also changes to the same value automatically.
    in other words:
    While setting the RGB values for text colour of labels, the background colour also changes unless we use the sliders.
    How to make sure that only the color of text changes and not the background?

    You can simply do this.
        [labelname setTextColor:[UIColor colorWithRed:38/255.0f green:171/255.0f blue:226/255.0f alpha:1.0f]];

  • Default Background Colour not Black?

    I'm having a very irritating problem with the Windows default background colour.
    A while ago I had set it to this off-shade of yellow, but now whenever I make a new theme (or even load a saved one) my background colour reverts to this aforementioned yellow instead of whatever I have set it to. Which means my themes can never be saved
    and loaded, lest I want to see that awful colour again.
    A step-by-step process for those who are having trouble understanding my wording:
    make new unsaved theme, bg colour is currently set to yellow. I switch it to black, it works as intended.
    Save this theme.
    Whenever I load the saved theme, the background colour is yellow, not black, despite all other personalizations saving correctly.
    Is there a way to change the default colour so that all themes behave as intended, rather than reverting to my previously selected colour?

    Hi,
    Can you show us some different screenshots to  know more about this issue?
    Alex Zhao
    TechNet Community Support

  • A problem changing applet's background colour

    Hi there,
    I'm hoping somebody can help me with what I believe to be a problem I have in changing the background colour of an applet, the source code of which is posted below. If super.paint(g); is commented out, the background of the applet will be changed to whatever colour is specified, however if it is not the background will remain grey. As I understand though, super.paint(g); should be part of the program. What am I doing wrong? Should super.paint(g); in this example be part of the program?
    Before posting this I searched the forums and looked at some of the Q's & A's about changing an applet's background colour but am non the wiser.
    Thank you for your help.
    Regards,
    THE_TH1NG
    import javax.swing.*;
    import java.awt.Color;
    import java.awt.Graphics;
    public class Calculate extends JApplet
    public Calculate()
    //Variables used in our calculations.
    double sum; // Add the two numbers
    double product; // Multiply the two numbers
    double quotient; // The first number divided by the second number
    double difference; // The first number minus the second number - This may result in a negative value being returned
    double userInput1; //Stores the first number as a double after being converted from type string
    double userInput2; //Stores the second number as a double after being converted from type string
    public void init()
    String number1; // The first number to be entered by the user
    String number2; // The second number to be entered by the user
    number1 = JOptionPane.showInputDialog("Please enter the first floating point number"); // The user inputs the first number as a string
    number2 = JOptionPane.showInputDialog("Please enter the second floating point number"); // The user inputs the second number as a string
    // Convert the user's input from type string to type double
    userInput1 = Double.parseDouble( number1 );
    userInput2 = Double.parseDouble( number2 );
    // Perform the calculations
    sum = (userInput1 + userInput2);
    product = (userInput1 * userInput2);
    difference = (userInput1 - userInput2);
    quotient = (userInput1 / userInput2);
    public void paint( Graphics g )
    //The applets background will be set to the desired colour if super.paint(g) is commented out
    //But the background will remain grey if the code is not commented out.
    //What am I doing wrong?
    //super.paint( g );
    setBackground(new Color(50,150,255)); //Light Blue
    g.drawRect(10,10,250,100); // Draw a rectangle 250 pixels wide X 100 pixels high to enclose the rest of the program's output
    //Dispaly the results of the calculations to the user
    g.drawString( "The numbers entered are " + userInput1 + ", " + userInput2, 25, 25);
    g.drawString( "The sum is " + sum, 25, 40);
    g.drawString( "The product is " + product, 25, 55);
    g.drawString( "The difference is " + difference, 25, 70);
    g.drawString( "The quotient is " + quotient, 25, 85);

    You could try defining
    public void update(Graphics g) {
        paint(g);
    }That's the only difference I see between your code and my applet code. If that isn't it, you could try getContentPane().setBackground(...) but I don't know how that could make much difference (I would think that the content pane is transparent...)
    Another possibility is that, if you're using Swing, you probably shouldn't be overriding paint() and should stick to the paintComponent() method or whatever is appropriate.

  • Dw Change table background colour from hex to rgb impossible

    If you want to change the background colour (properties) in a table from HEX to RGB, it is impossible, because the buttons are without function.
    Is this a bug? Or is this intended?

    Don't forget the A for alpha-transparency
    .your_table_rule { background-color: rgba(255,255,195,0.5); }
    Nancy O.

  • How can I make background images change automatically

    I want my page background to change automatically after a set period of time (almost like a very slow slideshow). Is there any reason (other than file size) I can't simply do this with an animated gif as my body background image? I haven't got the expertise to do anything too technical. Thanks

    Is there any reason (other than file size) I can't simply do this with an animated gif as my body background image?
    BG images are not meant to be animated. It's a performance problem - the browser would have to continually re-render the whole page, since GIFs work on specific increments. That's why it's not supported. What you wanna do would be best done with jQuery/ JavaScript or Flash, where the substitution can be controlled, so the browser only needs to work hard when there is actualyl something changing. whether that's a good idea, is another matter, though. Personally I really despise such toy-ish features, as they severely impair usability and readability.
    Mylenium

  • Flash CS4 - Background Colour Change Not Changing in Test Movie

    Hello,
    Whenever I change the document's background colour in Flash CS4 and then "test movie", the background colour remains white. However if I publish it the colour will be the selected colour.
    It's not a huge deal since it publishes right, but I'd really like to be able to test my movie with the correct background colour.
    I'm on Mac OS X 10.6.8, and I am updated to the latest version of CS4.
    Any help would be greatly appreciated,
    Thanks

    Hey there,
    Could you describe the setup or link a file with the problem?  I can't reproduce the problem with basic fades (obviously they should continue to work when you switch the player).  Is it just in the document you're working on, or all documents you create?
    Thanks,
    Jen.

Maybe you are looking for

  • Copying data from one HD to another problem

    No matter what data I try to copy from one of my Firewire HDs to another I get this error message: The Finder cannot complete the operation because some data in ".DS_Store" could not be read or written. (Error code -36) Any ideas?? thanks, burger

  • How to restrict access in 2008?

    How to restrict access in 2008? So, I would like to do the 2 following things: 1. Grant developers access to read all Active Form Comonents 2. Create new Form Groups 3. Not be able to change nS Resticted AFC and 1. Grant developers rights to Create O

  • Itunes 7.1 and 10.2.8

    Hi: I have OS X 10.2.8 on my computer. Itunes 7.01 will not work with that version. I do not want to buy the OSX 10.3, but I want to wait for the next version (I may even upgrade my computer then). I cannot use itunes 6.5 with itunes store, expeciall

  • Trouble importing swf files

    I would like to embed a .swf file into my catalyst project, but everytime I import a file catalyst crashes if I try to modify or reposition the file. I have tried runing the project just to see if the swf is visable, but get a message saying that the

  • How do I unlock my disabled ipod

    My sons Ipod is disabled after too many attempts to unlock.  How do I go about getting working again?