-trying to change the appearance of a sphere at runtime

Hi,
I've been trying desperately to change the appeareance of a simple sphere during runtime. I keep getting
javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to set appearance
My code looks as following:
//create a sphere
sphere = new Sphere(size*1.15f, blacklook);
sphere.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);
//change its app during runtime
sphere.setAppearance(redlook);I don't know what the heck is not correct with my approach.
PLEASE HELP!

>
So what in the world ist the
sphere.setCapability(Sphere.ENABLE_APPEARANCE_MODIFY);for?
I don't understand. Any idea?You can get the current Appearance object of a Shape3D object with the getAppearance method and change this object (watch that appropriate capabilities have to be set on the Appearance object) instead of creating a new Appearance object and add it to the Shape3D.

Similar Messages

  • Hyperlink panel disabled - So how do I change the appearance of a hyperlink?

    I am at the final stages of layout and the only thing preventing me from publishing electronically is that the hyperlinks have bounding boxes around them. I have previously been able to use the hyperlink options to change the appearance of a hyperlink but my panel is completely greyed out > see below. I can only change the destination and that does not give any link options. The panel doesn't even register any hyperlinks although you can see many in my screen grab alone. I have modified the character style but since these are active links (which should remain active), the style does not change the bounding box. I even tried retyping links and linking them to their URL with InDesign but I cannot control any options after a link has been made. I also cannot afford to do this +100 times. Anyone have any tips? I'm using CS6 on a MacBook Pro. I've already rebooted the computer and InDesign to no avail. Am I doing something wrong? Is there a script I can use?
    Thanks to anyone who can help!

    This is the sort of problem that is typically casued by damaged prefs. See Replace Your Preferences

  • While trying to change a BOM with transaction CS02, a runtime error appears

    While trying to change a BOM with transaction CS02, a runtime error appears.
    In intial screen he entered material ,plant BOM usage and date valid from  after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
    Developer trace
    ABAP Program SAPLKED1_WRITE_CE4_BPS1                 .
    Source LKED1_WRITE_CE4_BPS1U01                  Line 30.
    Error Code SAPSQL_ARRAY_INSERT_DUPREC.
    Module  $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
    Function HandleRsqlErrors Line 775.
    RABAX: level LEV_RX_STDERR completed.
    RABAX: level LEV_RX_RFC_ERROR entered.
    RABAX: level LEV_RX_RFC_ERROR completed.
    RABAX: level LEV_RX_RFC_CLOSE entered.
    RABAX: level LEV_RX_RFC_CLOSE completed.
    RABAX: level LEV_RX_IMC_ERROR entered.
    RABAX: level LEV_RX_IMC_ERROR completed.
    RABAX: level LEV_RX_DATASET_CLOSE entered.
    RABAX: level LEV_RX_DATASET_CLOSE completed.
    RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    RABAX: level LEV_RX_ERROR_SAVE entered.
    RABAX: level LEV_RX_ERROR_SAVE completed.
    RABAX: level LEV_RX_ERROR_TPDA entered.
    RABAX: level LEV_RX_ERROR_TPDA completed.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    RABAX: level LEV_RX_END entered.
    RABAX: level LEV_RX_END completed.
    RABAX: end RX_RFC
    In sm21
    Perform rollback
    Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
         Short dump "090618 110101 donalda 11557 " generated
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     18.06.2009 at   11:01:01
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
    one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "RKE_WRITE_CE4__BPS1" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "RKE_WRITE_CE4__BPS1"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Use an ABAP/4 Open SQL array insert only if you are sure that none of
    the records passed already exists in the database.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
    "SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
    "RKE_WRITE_CE4__BPS1"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi ,
    you are getting beacuse u are trying to do mass update to database.
    Please check that below note are applicable to your system.
    Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
    Note 869534 - AFS MRP doesn't work properly with all BOM item categories
    Thanks Rishi Abrol

  • Hello. I am trying to change the colors on my ical. I have been able to select a calendar group, click "get info" and then "other" in the color options and which point a a lot of color options are available. HOWEVER, I can't seem to select the color.

    Hello. I am trying to change the colors on my ical. I have been able to select a calendar group, click "get info" and then "other" in the color options and which point a a lot of color options are available. HOWEVER, I can't seem to select the color. I click on a new color and press enter and nothing happens...not sure what I am doing wrong.

    What do you currently see?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    Do you have the menu bar?
    *Press the F10 key or tap the Alt key to bring up the hidden Menu bar.
    Do you have any toolbars visible at all?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    You can check for problems caused by a corrupted localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • I am trying to change the name in my "from" box

    I am trying to change the name in my "from" box. My name has changed and although I have changed the name on the account, I can't figure out how to make the default name in my "from" box change from my previous name to my new name.

    You may need to know that (in Snow Leopard at least) you specify multiple possible "From" email addresses as a list separated by commas.  Just type them into that little Email Address box*: they'll move over to make room.  Then, on your new messages from that point on, a pop-up menu will appear for the From field.  Neat, eh?
    *-- Notice that you can lie in this box.  Your ISP might not let you get away with it, but spammers use this loophole.
    --Gil

  • HT1645 I did step 2 but my computer isn't giving me the pop-up in step 3 so i can't push an OK button.  I waited 15+ hours for it to burn and it sent me to this page.  I have tried to change the encoding settings again, and it adjusts the capacity but no

    I did step 2 in the "iDVD:  Setting Encoding preferences" but my computer isn't giving me the pop-up in step 3 so i can't push an OK button in regards to the message.  I waited 15+ hours for it to burn and it sent me to this page.  I have tried to change the encoding settings again, and it adjusts the capacity but no message pop-up appears.

    You can undo your permission changes. Probably the most relevant one is cookies. Try one or both of these methods:
    (1) Page Info > Permissions tab
    While viewing a page on the site:
    * right-click and choose View Page Info > Permissions
    * Alt+t (open the classic Tools menu) > Page Info > Permissions
    (2) about:permissions
    In a new tab, type or paste '''about:permissions''' and press Enter. Allow a few moments for the list on the left to populate, as this information needs to be extracted from a database.
    Then type or paste ''rcn''' in the search box above the list to filter it to the most relevant domains. When you highlight a domain, you can adjust its permissions in the right pane.
    Any luck?

  • HT201210 iOS7 - changing the appearance?

    I do not believe I am the only person who finds the look of iOS7 to be poorly considered. The very distinctive look of iOS6 has been sacrificed for a cheap-looking and garish re-deign and palette that is far from easy on the eye. It is a morphing of marketing material from Orange from 15 years ago with graphics from Ceebeebies - truly hideous. I find I am using my iPhone now with a degree of reluctance. When I do it's like the giant scratch on your new car that you can't stop staring at. Yes there are more important things in the World - but I am still tied into a contract on my phone for a good while yet and I would never have purchased an iPhone if it looked like this. Did Apple carry out ANY market research on this? If so - can we see the published details. If not, why the complete disregard for the thoughts of the millions who generate the compny's billions? So my question is - can I (in the good old way that Microsoft updates let you) change the appearance of iOS7 to the "retro" look of iOS6? If not, when will Apple release a fix to let me?

    I am trying to get used to it but it's not getting any easier to look at my iphone ios7 interface.  I want like it but I can't.  Some of the new features are nice - but not worth the sacrifice of having cheap looking icons and unpleasant backround colors that overall look like a cartoon desktop that is hard to read. 
    I liked the old os immediately and never tired of it.  Change for the sake of change is not necessarily improvement.
    I hope Apple is listening - it's not fun to struggle with this look.

  • Trying to change the Tab size of SQL Server 2008 R2 ?

    Been trying to change the size of the tab but it just doesnt change!
    Went to Tools-Options-Text Editor-Transact-SQL
    From 2 to 1. 
    Any ideas? 

    Hi Shavendra,
    The Options dialog box lets you change the default behavior of the Database Engine Query Editor while you are programming Transact-SQL scripts. To display these settings, click Options on the Tools menu, expand the Text Editor folder, expand the Transact-SQL
    subfolder and then click Tabs.
    Tab size: Sets the distance in spaces between tab stops. The default is four spaces.
    Reference: http://msdn.microsoft.com/en-us/library/bb895215.aspx.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • HT5621 Trying to change the email on my apple ID but get error message that the email I want to change to is already used for notifications. What do I do?

    Hi,
    I'm trying to change email address on my Apple ID since the email registered for the account has been hacked and I can't access it anymore. The email I want to change to is connected to another Apple ID I created about 4 years ago, though I successfully changed the email on that account as well. So the email I would like to use for my main Apple ID shouldn't be "locked" anymore.
    Though, when trying to change the email on my Apple ID I get an error message (in Swedish, so this is a direct translate from google): "This e-mail address is your email address for notification. It can not be used as the Apple ID or primary email. Choose a different address."
    I'm not really sure what this means or how I can fix this. The email address is connected to my Ipad and Iphone for the email app, can that have anything to do with it?
    If it makes any difference, I updated both my Ipad3 and Iphone4 to ios 7 today. I'm trying to change from my Macbook air though.
    Please advise, would really appreciate a reply ASAP.

    caek1 wrote:
    Hi,
    I'm trying to change email address on my Apple ID since the email registered for the account has been hacked and I can't access it anymore. The email I want to change to is connected to another Apple ID I created about 4 years ago, though I successfully changed the email on that account as well. So the email I would like to use for my main Apple ID shouldn't be "locked" anymore.
    Though, when trying to change the email on my Apple ID I get an error message (in Swedish, so this is a direct translate from google): "This e-mail address is your email address for notification. It can not be used as the Apple ID or primary email. Choose a different address."
    I'm not really sure what this means or how I can fix this.
    It means exactly what it says... The email Address is in Use. You cannot re-use it.
    Apple ID Support  >  http://www.apple.com/support/appleid/

  • I tried to change the file type of the movie, but now I am unable to open/edit it in iMovie, HELP !

    I tried to change the file type of the movie, but now I am unable to open/edit it in iMovie, HELP !

    Thank you very much! This is exactly what I was looking for.
    I appreciate your time and effort in solving my question : )

  • I have my iphone 4 and an ipod touch on the same apple ID.  My daughter tried to change the settings on the ipod so that she could facetime on both her ipod and iphone which is on a separate Apple ID.  I no longer have a 3G connection.

    I have an iphone 4 and an ipod touch on the same apple ID.  My daughter who uses the ipod tried to change the apple ID on the ipod to be the same with her apple ID on her own Iphone so that she can use facetime on both devices.  Not sure what she did but my 3G connection is no longer working.

    Changing Facetime settings on an iPod will have no affect on cellular settings on an iPhone. Something else is going on there. If she did not change any settings on the phone, then nothing she did could affect your celluar 3G.

  • Is there a way to change the appearance/size of iCal fonts

    Is there a way to change the appearance/size of iCal fonts.....
    For some reason I cant log into he iCal forum s have posted here.... '

    Various 3rd party app downloads are here, as an example...some may be used to modify the system in different ways:
    http://www.apple.com/downloads/macosx/

  • I am trying to change the background color of a pdf document

    I am trying to change the background color of a pdf document, but am not able. I am working with Adobe X. Can anybody help me?

    Hi ZAXSCD,
    You can change the background color of a PDF document by following the steps mentioned below:
    - Open PDF document in Adobe Acrobat X;
    - Click on Tools --> Pages --> Under 'Edit Page Design' select Background and then 'Add Background';
    - In Add Background window, under Source --> From color, select the color of your choice and click OK'.
    You can also refer to the screenshots mentioned below:

  • Error while trying to change the user password on OSX Lion

    Hello,
    I am trying to change the user password ( no admin user ) using the webinterface. I enabled the functionality in webservices on the server.
    I can loginto the three line password changing form. After I enter the old and two times the new password, I get the information
    "Your request could not be completed. The password server may be unavailable."
    How can I fix this problem?  I also tried https://discussions.apple.com/thread/2485167?start=0&tstart=0.
    Thanks in advance for help.

    I currently have this error on my 10.6.8 ML server when trying to change password.
    In my situation, the message definitely comes from the password policies. As soon as I use a new password that respects minimum complexity (e.g. 8 characters min, 1 lowercase letter, 1 uppercase letter, 1 number), the password changes flawlessly.
    It would be nice to change this horrible message to something more meaningful... If someone has any ideas on how to do this, thanks for sharing!

Maybe you are looking for

  • How can I convert MP3 file to AIFF to use in FCP?

    Hi guys, How can I convert an MP3 file to AIFF file to use it in Final Cut Pro? Anyone please, Thanks in advance, Zia

  • SAX Parser For XML

    Hello all, I am trying Parsing XML thorugh SAX. Were to get SJXP.jar and parser.jar files on sun site if any body have these files plz mail :[email protected]

  • Remove first selected  character

    Hi all, I have one requirement , in my one table A _POSTN  there is Column NAME I this column values like DEFAULT_NZ_FUELS_WHOLESALE_1, Z_FALAGUB, DEFAULT_UK_ILS_LUBES_1 etc I want output for only those record Z_FALAGUB, Z_REHMEN, output should remov

  • Can not import WS to the Tree

    ZfD6.5Sp2 Ws: XP_SP2+4.91sp2 client. This Debug log from the WS (wsreg --importserver 172.16.16.254) I read this log, but not understud - WHY WS NOT IMPORTED ?? May be this bad news (for me), but -, when i do: wsreg.exe or wsreg --impertserver 172.16

  • My homepage reverts to the apple store every time I restart my macbook

    Every time I start my MacBook it reverts to the Apple Store as the home page. I can keep my chosen homepage so long as I don't switch off my computer.