Layered 3D object with different view settings: Help!

I need to do what I'd think is a fairly simple A3D project where I need to display an object with 3 0r 4 embedded layers (just think of it as a box in a box in a box for now) What I need to do is have a matrix of radio buttons (3x4) which simply carry the following functions for each layer. The first column button would display the object solid, the second button column would display the object transparent, and the third column would turn the object off....object being you can inspect the layers in different modes. I am fairly adept at 3D but this has me a bit gun-shy. Could anyone get me started or point out materials which would help me achieve this?
Thanks in advance

In the javascript for each of the buttons,
do this
//Get the 3D context object (put in the page number
//that the 3D annotation is on
var context = getAnnots3D(*Page Number*)[0].context3D;
//Change X to be either 1 (on), 0.5 (Transparent), or 0 (invisible)
context.scene.meshes.getByName("NameOfMesh").opacity = X;
You could also do .visible = false;
Note: You would have then set visible = true in both of the other cases.
This site has lots of Docs
http://partners.adobe.com/public/developer/acrobat/sdk/index_doc.html
Look for one that is called "Acrobat 3D JavaScript Reference"

Similar Messages

  • Creating View Object with different criteria

    Hi,
    I have a requirement to execute the following queries in the application logic. We have YEAR table with mileage rates with different effective dates. If the service date is greater than any of the existing effective dates we need to get the rate with that effective date. if the service date is less than the existing effective dates, then we have to get the rate with least effective date.
    SELECT mileage_rate, ... FROM year
    WHERE eff_date =  (SELECT MAX(eff_date) FROM   year WHERE  eff_date <= :bServiceDate)
    SELECT MILEAGE_RATE, .... FROM YEAR WHERE
    EFF_DATE =  (SELECT MIN(EFF_DATE) FROM YEAR)
    We have to execute the 1st query and if there is no matching records then we have to take the second query with min effective date. At present we are creating two view objects for the above scenario. Is there any possibility to create one view object with different criteria. What is the best solution to handle the above problem in ADF.
    Thanks and Regards,
    S R Prasad

    Well on the ViewObjectImpl you can fire the method getQueryHitCount() passing in the required ViewRowSetImpl. If you get the query hit count as 0, use can attached the other query and execute it.

  • For FF19 with PDFs, can the yellow "Open With Different Viewer" pop-up bar be disabled?

    Hi all, I really like the built in PDF viewer because search as a I type works with, thanks FF devs!
    But ... I get this yellow pop-up with many PDFs I view:
    This PDF document might not be displayed correctly and a button for Open With Different Viewer
    The thing is these PDFs seem fine and I have to close the warning every time.
    Is there anyway this pop-up can be disabled or I can set an about:config setting to skip it? I can manually save a PDF or disable FF19's viewer if there's a noticeable problem with the FF19 viewer.

    Ok, since the pop up bar can't be disabled I'll disable the built in PDF viewer. Too bad, I like the search as you type feature with PDFs but this un-disable-able pop-up bar is not user friendly.

  • Is it possible to create 2 Date objects with different hashcode.

    Hi,
    I want to create 2 java.util.Date objects with different hashcodes. Is it possible??
    Regards,
    Farooq

    import java.util.Date;
    import java.util.Calendar;
    public class TwoDates {
        public static void main(String[] args) {
            Calendar oneCal = Calendar.getInstance();
            oneCal.set(Calendar.YEAR, 1903);
            Calendar anotherCal = Calendar.getInstance();
            Date oneDate = oneCal.getTime();
            Date anotherDate = anotherCal.getTime();
            System.out.println(oneDate.hashCode() + " " +
                               anotherDate.hashCode());
    -14330615 -825112150

  • Is it posible to create objects with different names dinamically?

    Hi,
    I'm creating an app that manages different wireless nodes in a network and I was thinking that I could create a class called Node which would have a constructor that every time I created an object Node, I would pass the address and some other data about the Node and the constructor will save all that data and also create a unique ID for every Node object.
    Now the problem is that I need to be able to discover all the nodes in my network every time the user clicks a Ping button. So every time the users clicks Ping I need to do a ping and create as many Node objects as nodes I have in my network. The thing is I don't know how to make it create the node objects with different names so after I've created all the nodes objects I can refer to one of them.
    Something like this.
    int Id=0;
    id++;
    Node node+Id = new Node();
    I think its not possible to do something like that. If it isn't how can I do to refer to one of the objects I've created?
    Thanks.

    Twistx77 wrote:
    Thanks to both of you. I'll check out the Link and if I can't find the solution there I'll make the array , I don't know how I didn't think about doing that. There are two collections you should study specifically:
    First you have the ArrayList which in essense is a growable array. This means you don't have to decide in advance how big it can be.
    Second there's the HashMap. It's sometimes called an associate array. Such an array doesn't have fixed position indexes like an ordinary array. Instead each index (called key) is associated with a value but the keys don't have any particular order. Still, given a certain key, finding the corresponding value in a HashMap is almost as fast as an array access.

  • Problems with Folder view settings and file association in Windows 8.1

    My Windows 8.1 64 bit started forgetting the view settings from a folder.So if I go in a folder and I set it to List-View for example,whenever
    I close that folder and I reopen it the view is set automatically to Details view.And this applies to every folder in my computer except Desktop.It drives me crazy,especially in my pictures folders.
    Also with this problem another one came.I can't set a program to open some files,so the file associations for some files is broken.For example
    i can't set qTorrent to open torrent files.It just won't open them and the files apear as white documents just like I hadn't had a Torrent program installed already.I find it weird that both problems appeared together.
    I previously had to reinstall windows on my machine,because of this problems.It worked normal at the begging,but today these problems appeared
    again.
    I tried scanning SFC
    Scan with no result.
    I hope I will get a fix here.
    Thanks.
    Update:I also just discovered that Metro apps are not working...what the heck its wrong with my windows.

    Hey thanks for the reply ,but I got a fix for everything.Apparently the problem is in the registry.
    So If the problem began recently, you can try this to fix it :
    Press Windows Key + R to show the Run box, type RSTRUI and press enter.
    Choose a recent date and time from before the problem beginning (such as the day before yesterday) and click Next.
    The system will restore registry settings from that day, and restart.
    If you do this however,all the programs you had installed after the restore point date will
    be DELETED   (same with any settings changes made before that date),so be sure to backup things.Hope this will help someone someday. .

  • Separate Sections of a Sequence with different encoding settings

    Hi!
    Is it possible to set different encoding settings for different parts of a Final Cut sequence? If yes, what must I do?
    Take care,
    Christian

    All I want to change is the quality setting of the h.264 codec.
    It's all about the movies you will find at:
    http://www.teachers-corner.org/feeds/TC_RSS.xml
    (beware, large files)
    All these movies start off with an intro, which needs a quality setting of 75% to look good. The rest of the screencast looks good enough with a setting of 50%.
    All other parameters shall remain unchanged.
    Did that help?
    Take care,
    Christian

  • How do I create a automatic second page with different layout settings?

    Hi there,
    I want to create a business letter template with a different second page. I already managed to create a different layout on page nr two, but
    whenever I write a letter with this template and I reach the end of page one, pages creates a thrid page in between my page nr one and nr two with a mixture of the layout of template page nr two and the footer of page nr one.
    I want pages to take my template page nr two (with different header and footer) as second page instead of creating one itself.
    If I don't need a second page - because my letter is to short - I should not have to delete a second page. It simply should not be there...
    Thanks for Help!
    G4's and 12" PB   Mac OS X (10.4.6)  

    Hello Stefan,
    you achieve this with a little trick. Create your letter and set the layout for the first and the second page by inserting a placeholder text. This placeholder text should fill the first page and the top of the second page, so both pages are build in one section. When the entire letter is layouted well, select the placeholder text and than save the letter as a template.
    Now every time you open this template, you only have to insert the main text (replace the placeholder text with real content), and the second page disappears until the main text overflows the borders of the first page. Than you will get the second page again with the layout you have created for it.
    I hope this will work for you like it works fine for me.

  • Having Multiple Adobe PDF printers with different output settings

    Hello,
    My company is using Adobe Acrobat X and XI on Win 7 Pro, and we would like to create 2 separate Adobe PDF printers that have 2 different output settings. So I installed a second Adobe PDF printer using the same Adobe Converter Driver as was used to install the first one. Then, I went into Devices and Printers and I edited the printing preferences of one Adobe PDF printer, but what I found was when I changed the preferences of one printer, it automatically changes the other one as well. Is there a way around this?

    Thanks for pointing me to the iTunes Folder Watch program. It looks like this will solve my immediate needs. It's a little clunky in spots, but does handle adding new files very well. And it only cost about $10 to get the fully functioning version with the automatic monitoring in the background.
    I copied the iTunes library files to each account, setup a watch folder that points to the location of the iTunes library content and all the music syncs up perfectly without duplicates. I have yet to test the applications, but music, movies, TV Shows, audiobooks, and podcasts all work fine.
    If anyone else is considering this product, just make sure you double check your file location in the iTune settings to make sure each account is pointing to the same location and is organizing the content in the same way or else the individual account libraries will fight against each other to organize all the content where it is configured to put it. Copying the library files isn't enough since some of these settings are in the Windows Registry.
    I made this mistake at first. I had all the accounts pointing to the same folder, but one of them (the original) had the "Upgrade to iTunes Media Organization" turned on which categorizes all content into folders based on type such as music, movies, podcasts, etc. Since the others were organizing just based on artist and album this caused the accounts to try to reorganize the files when Folder Watcher would tell it there were new files to manage.
    All in all, this solves most of my concerns, but I'm still surprised Apple hasen't added this natively into the iTunes product. Especially when this guy figured out how to write the software to do it and is only charging about 10 bucks to do it. Well I hope this guy makes a million bucks off his little product bacause he surely deserves it!

  • How can I import CD's with differing custom settings? IWhen I want to change settings the AAC encoder window does not appear because Itunes has adopted the first custom settings as default.

    I imported a CD with custom settings for stereo bit rate, sample rate and channels. When I tried to import a second CD with different settings I could not get to the AAc encoder window that gave the settings options. The custom settings I had chosen for the first CD had become the default "custom" settings.

    Hi there,
    please take a look at my suggestion under message #19227279
    regards,
    Markus

  • Multiple profiles with different cache settings

    I want to have multiple profiles with different settings for the cache. I'll call them ProfileOne and ProfileTwo for simplicity's sake. ProfileOne I want to clear its cache on exiting Firefox and on ProfileTwo have it retain its own cache. I have already setup both profiles and configured them accordingly with ProfileOne's privacy settings for Clear History > Cache checked so it clears on exit and ProfileTwo is not set to clear anything on exiting.
    The main issue is that after doing something with ProfileTwo then switching to ProfileOne, upon exiting ProfileOne it also deletes ProfileTwo's cache. I have tried using the profile manager to create the profile in a different location than default to no avail. Is there any way to set it so ProfileOne's cache can still be cleared on exit without affecting ProfileTwo's cache?

    After checking a few different options, it looks like the add-on Better Privacy provides the options I need for LSO management and does separate HTML cookies from Flash cookies nicely and lets me save specific site's LSOs. Thanks for the assistance!

  • I want multiple Firefox windows open w/different View settings - toolbars displayed in one, not in other. With the new version, I can no longer do that ?

    I want to remove the toolbars in one open instance of Firefox but not in others.......this was possible in the prior version. Now if I change the settings in one instance, it automatically changes in the other open Firefox windows. How I can I make this work as it did before the upgrade? Thanks, Kris

    Thanks a million! It was not intuitive to "swipe" the open applications up but it works perfectly!!
    Thank you
    shafferd

  • Batch Replace Smart Object With Different Image Quality and Sizes

    Hi there,
    I need help. I have this template that is in 1000x1000pixel and 300 dpi. I'm trying to replace the smart object inside with various JPEG that I have. These JPEG comes in large image sizes but lower than 300dpi. The issues is, when I run the script that I have, some of the pictures become really pixelated. Beforehand, I resized them to fit into the empty place in sizes that I find fit the best (8 cm x 6 cm). Some of them work okey, but then some of them just pretty bad. I'm wondering if you can help me fix the script that I have so I didn't have to resized the images before running the script, and for all of them to automatically fit into my template without altering the quality of the image that I put in.
    below is the script that I am using and the screenshot of my template:
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var theName= myDocument.name.match(/(.*)\.[^\.]+$/)[1];
    var thePath = myDocument.path;
    var theLayer = myDocument.activeLayer;
    // psd options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = true;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // check if layer is smart object;
    if (theLayer.kind != "LayerKind.SMARTOBJECT") {alert ("selected layer is not a smart object")}
    else {
    // select files;
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog ("please select files", "*.psd;*.jpg;*.jpeg;*.tif", true)}
    else {var theFiles = File.openDialog ("please select files", getFiles, true)};
    if (theFiles) {
    // work through the array;
    for (var m = 0; m < theFiles.length; m++) {
    // replace smart object;
    theLayer = replaceContents (theFiles[m], theLayer);
    var theNewName = theFiles[m].name.match(/(.*)\.[^\.]+$/)[1];
    //Raise color picker for Back cover;
    try {
    app.activeDocument.activeLayer = app.activeDocument.layers[app.activeDocument.layers.length - 1];
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
    var desc7 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref2 = new ActionReference();
    var idcontentLayer = stringIDToTypeID( "contentLayer" );
    var idOrdn = charIDToTypeID( "Ordn" );
    var idTrgt = charIDToTypeID( "Trgt" );
    ref2.putEnumerated( idcontentLayer, idOrdn, idTrgt );
    desc7.putReference( idnull, ref2 );
    var idT = charIDToTypeID( "T " );
    var desc8 = new ActionDescriptor();
    var idClr = charIDToTypeID( "Clr " );
    var idsolidColorLayer = stringIDToTypeID( "solidColorLayer" );
    desc7.putObject( idT, idsolidColorLayer, desc8 );
    executeAction( idsetd, desc7, DialogModes.ALL );
    } catch (e) {};
    //save jpg;
    myDocument.saveAs((new File(thePath+"/"+theName+"_"+theNewName+".jpg")),psdOpts,true);
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
    if (theFile.name.match(/\.(psd|tif|jpeg|jpg)$/i) != null || theFile.constructor.name == "Folder") {
    return true
    ////// replace contents //////
    function replaceContents (newFile, theSO) {
    app.activeDocument.activeLayer = theSO;
    // =======================================================
    var idplacedLayerReplaceContents = stringIDToTypeID( "placedLayerReplaceContents" );
    var desc3 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc3.putPath( idnull, new File( newFile ) );
    var idPgNm = charIDToTypeID( "PgNm" );
    desc3.putInteger( idPgNm, 1 );
    executeAction( idplacedLayerReplaceContents, desc3, DialogModes.NO );
    return app.activeDocument.activeLayer

    Thank you for your answer.
    I was resizing it before from bigger image size to a smaller one (121 cm to 8 cm) which fit my template size. But the dpi remains in 72 which makes the picture pixelized.
    I am wondering if I can find a script that will keep the size of the first image that I put on the template for other images that I place, regardless the size they are imported to. Basically, how to make them all fit into the template regardless the size.
    Thank you for the info about the scripting forum. I will write there too.
    Sorry, I'm so new to this

  • New instances of an object with a button - please help

    Hi
    Hope anyone can help with a simple sample/solution.
    Think i seach the entire world !!!
    Want to make fx. 40 instances of an object ( chosen by user ) - in the "old Flash" there was eval();
    - as i remember I could create multiple instances of an object like this:
    int numberOfBikes = 40;
    for (i = 0;i < numberOfBikes;i++){
    newInstanceName = eval("bike"+i) ; // this is my only problem in the world - for now :o(
    Bike newInstanceName = new Bike() ; // newInstanceName translated to example "bike12"
    newInstanceName.moveTheBike(some arguments) ;
    // YEAH - then I had 40 different bikes
    Please - if anyone have a simple solution for that single line of code - 500 lines of complex array coding does not help a newborn !!!

    You are at once on my Buddy list :o)
    Now i have 40 bikes running all over town - looks pretty cool
    This worked in my run method:
              int i;
              int numberOfBikes = 40;
              test bikes[] = new test[numberOfBikes];
              for (i = 0;i < numberOfBikes;i++)
                bikes[i] = new test();
              }This code in my while loop to call the Class method:
              for (i = 0;i < numberOfBikes;i++)
                         bikes.goAhead(gcon, H, V);
    Cool - was a MEGA help !!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to deploy Office 2010 with different OCT settings ?

    Let say my company has 2 departments.
    One department needs all the Office features, while another department needs only Excel and Word.
    Can I place 2 different OCT msp files inside the Updates folder, and install the Office for different department by using the specific OCT msp files ?
    Also, need 2 different config.xml file too (inside folder ProPlus.WW)

    Hi,
    We can use
    Microsoft Exchange Server Deployment Assistant to generates a custom step-by-step checklist that will help you deploy different versions of Exchange Server for different types of scenarios.
    More details about Understanding Hybrid Deployments with Exchange 2010, for your reference:
    https://technet.microsoft.com/en-us/library/hh563847(v=exchg.141).aspx
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

Maybe you are looking for

  • New to Solaris (unix) - basic questions (please)

    Hello! I am completely new in Solaris World, and in fact in Linux too. All I can do (may be) is to walk throught dir tree. I have one big question and many many small ones. I've just installed Solaris 10 (writing this there), I am very happy and I do

  • All of my apps are gone, and I'm having trouble with iCloud

    Let me preface this by saying that Apple made me change my password a few days ago, before I downloaded the new IoS software. So I synced my music, videos and apps to my PC this afternoon before downloading the new software. I downloaded the software

  • Sp_addlinkedsrvlogin AD group limitation (workaround? anyone?)

    Hello. I have looked all over boards and can't seem to find any elegant (or even hacky) workaround for this situation, hoping some of you geniuses can help. SQL Server 2008 R2 Enterprise. We have a linked server to a DB2 server. The current linked se

  • Creative Cloud - Your application install seems to be damaged, Please reinstall the application.

    I have purchased a year subscription to Creative Cloud. I am able to successfully download and open Creative Cloud and download an app. When I try to open the downloaded app, a message appears that says "Your application install seems to be damaged,

  • Timezones and dates in Web Dynpro

    Hello all, We have a web dynpro application and it seems to be showing different dates for different users in our application.  I am trying to figure out how web dynpro determines which locale to use (or timezone) when displaying.  We are exposing th