Please help with script for right-mouse click on 3D objects

Hi!
I have PDF file with two simple 3d objects (for example with two cube).
I need to make script that when user right-click to first cube, a PDF file (c:\a.pdf) opening (or c:\b.pdf for second one) in new windows. How to make it? Thank you so much!

Hi,
please check SDK sample 22 Right-Click, there is everything you need.
First catch RightClickEvent, then create the menu entry when beforeAction = true, and when beforeAction = false you have to remove it again (otherwise you will receive an error when rightclicking again).
Regards
Sebastian

Similar Messages

  • Please help with script for 3D object

    Hi!
    I have PDF file with simple 3d object (for example a cube).
    I need to make script that when user right-click to this cube, some PDF file (c:\mypdf.pdf) opening in new windows. How to make it? Thank you so much!

    Hi!
    I have PDF file with simple 3d object (for example a cube).
    I need to make script that when user right-click to this cube, some PDF file (c:\mypdf.pdf) opening in new windows. How to make it? Thank you so much!

  • How to select a row in JTable for right mouse click ?

    Hi All,
    I need to select a row on JTable for right mouse click ?
    Can any one help me ?
    Thanks a lot.
    Seelam.

    Got solution...
    tabel.addRowSelectionInterval(..) works.
    thanks.

  • How can I add a popup for right mouse click for anywhere on application?

    I have never used popup menus before but need to add on to my application.
    This is a swing application with several pages that are basically panels that are added and removed as needed.
    I need to have a popup menu that appears anywhere on the application when the right mouse button is clicked,
    no matter which component the cursor is over.
    I have been able to add one for a specific panel, but that is not what needs to be done, since there are dozens
    of separate panels in the application.
    Could someone point me to an example of how to make the popup active for anywhere on the application?
    Thanks.

    You are correct, I have not yet read the tutorial you suggested. I will do so tomorrow and try to move farther up the learning curve.
    My response was intended to acknowledge your reply and let you know where I am in trying to resolve this issue.
    You are also correct in that creating a popup may be a simple task, but, like I stated in my original post, I have never used popups in the past.
    And, like I said, things that are second nature for someone who uses certain components are not always intuitive for people who have not.
    I did do some research before posting my question, but all the examples I found were related to popups tied to a specific panel.
    I am able to create that, but the problem I ran into was that I needed to have a popup menu that was application general, not panel specific.
    It was not obvious to me how to do that and none of the examples I found explained how to do that.
    Hence, my question to the forum, hoping that someone who has gone through this exercise would impart knowledge to help me resolve this issue.
    It is not uncommon for persons to post examples or direct one to web sites that specifically address the issues in question.
    That is what I was hoping for, but I am not adverse to doing follow-up research on leads that are provided.
    My main issue is trying to figure out how to find a parent component (or panel) for the popup.
    You stated that I should be able to get that from the event listener.
    I'm not sure how to do that, but hopefully one of the event listener get methods will provide that information
    Hopefully, I will be able to resolve this with the feedback you provided, but if necessary, I will post code for a simple example to illustrate my problem.
    Thanks again for the feedback.

  • Please help with update for ios 8.1.3

    Some one PLEASE HELP ME!!!  I just updated my I phone 4s to ios 8.1.3 it was taking a long time then they finally updated and had the Hello screen after that I saw my photos then they would just delete it right in front of me I also lost some of my contacts but my notes still here can someone please help me find my photos are very important to me they have pictures of my relatives who passed away please help!!!

    After 4+ months of dealing with this data usage and battery drain problem that included 3 data captures of my wife's iMac, the trigger for us regarding the problems syncing with iCloud, and 5 hours of logs off my iPhone 6 to be analyzed by Apple engineers that included times my wife's computer was both on and off to demonstrate the difference in data usage and battery drain under those conditions, I can say with very reasonable certainty that the iOS 8.3 and corresponding Mac OS 10.10.3 update has solved the problem. 
    We have now been running for about 2 weeks and data usage with the iCloud Servers attempting to sync has dropped from a rate of 31 GBs to under 15 MBs per month.  Yes, you read it right.  We were burning 2000 times as much data doing absolutely nothing important on both of our phones, a 5s and a 6.  Just imagine what that does to battery life!  The 5s would last about 5 hours and the 6 was dead in less than 14.
    The distasteful aspect of this process was how the engineers were quietly fixing the problem at the same time sending messages to my contact person within Apple that were dismissive in nature in the face of indisputable unreasonable results. I must say, this experience with the multiple times the engineers' responses were inappropriate put a little tarnish on the old Apple shine of the ‘It just works’ mantra. This was my first experience in 34 years that caused me to stop recommending Apple products without reservations and with a disclaimer.
    Since the update solved the problem, then I can only conclude that there was a logic bug regarding the reaction within the process to the incoming data that was corrected.  There was noting short of logging out of iCloud that circumvented the problem for us, Gator5000e and probably many others noted on other threads.  I am not trying to imply that this is the cause of everyones battery use problem, but it is reasonable that it was a cause for many.

  • PLEASE HELP with Audio for YouTube!

    Hi,
    I KNOW YouTube is not the best for quality, but I absolutely HAVE TO post a couple of videos there!
    So.... having used Standard footage & the regular preset for DV-shot footage, does anyone KNOW which Encoding conversion to use (and I assume bitrate selection as well) that will allow me to post them on YouTube and actually hear something which even resembles the professionally Mastered recordings I am using.  So far I have tried WMV, h264 & a few others with various bitrates and most all of them sound horrible once YT converts them.  I was fine with the WMV video but the audio is way to disgusting to even listen to (especially compared to what the audio actually really is).  I have read some posts here suggesting FLV, WMV, etc, & I am truly at a loss and in major need of help here.  I have read Eddie's article link, & still the audio once YT does "it's thing" is ridiculous!
    The audio sounds great (good enough) on my computer after Encoder does its thing, but if anyone has encountered this and has the answer....PLEASE - what conversion & WHAT BITRATE should I use to make YT NOT ruin my recordings (and sound good on there)?!?!
    I even considered importing an already converted AAC or mp3 audio file into Pro, & then exporting it via Media Encoder but don't even think that's possible (or necessary).
    Please help as I HAVE to post it on YT yesterday already!
    As always, thank you for you help!!

    I never really had problems with sound quality on youtube...but I just use stereo pcm/wav mostly in editor. I think you should post what your using in your project and what you are exporting it as...cause its too vague to really give much specific advice re: helping you. also, say whether you have any sound codec packs or anything loaded...anything other than the original program codecs...and say what version of the product you are using...premiere pro what ??

  • Please help with sizing for a canvas wrap

    I have looked at every video possible on this. I don't know what I am doing wrong?
    RIght now my image size in cs3 is
    60.2m
    5616x3744 in pixels
    18.72x12.48 in inches at 300 dpi
    I want to make my image capable of being a 36x24 inch gallery wrap. I realize I have to go into image size but when I raise it to a 36x24 my calculations go out the roof! Is that okay?
    222.5M
    10800x7200 pixels
    36x24 in inches at 300 dpi
    Can I send something that large to a printing lab?
    Sorry this is only my second time to do a gallery wrap and I am clueless about image size as far as measurements go!
    I do have a 5d mark2 shooting RAW always that should allow me to have an image size of this quality easily right?

    Grant
    That is exactly why I am posting this... I HAVE NO FREAKING CLUE that I can reduce the dpi and if so how low can I go with my image needing to be sized at 36x24? Sorry, I am really just kidding around! I am no computer whiz with digital stuff, my love is strictly photography. I am so scared I will loose the quality I don't want to make a wrong move. I don't even know if I am suppose to up my size that much. I know my camera is good, but when it spits out a size like 18x12 in cs3 how high can I size it up and drop the dpi before I loose quality? Is there some kind of chart for this?
    Thanks for your help!

  • Need Help with script For Bulk Users Name & Description Updation

    Hi Guys,
    I have below requirement :
    We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).
    1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required. )Attached the screenshot)
    Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.
    Any help will be highly appreciated,
    Thanks,
    Suvajit Basu

    Hi,
    I dont have any script but seeking for a help.
    Thanks,
    Suvajit Basu
    In that case you should read this first:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Prewritten scripts can be found in the repository (Brent has already suggested one for you):
    https://gallery.technet.microsoft.com/scriptcenter
    If you can't find what you need and you can't write your own, you can request a script here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Help with script for "Import AD users from CSV with checks first"

    Hi everyone.
    Can anyone tell me if i am on the right track here?
    I want to be able to provide a CSV with users and import into a new AD domain/forest. But i know there already are some AD accounts so i need to run some checks. For now i am checking only on Name and Email.
    The issue i have is is with "write-host "$UserFullName was not found. Creating user.". It outputs this 19 times which is the same amount of times as there are users in AD in this OU.
    Not sure if my method is right. 
    $allImportedUsers=@()
    $allUsersArray=@()
    $searchbase="OU=PL,DC=EUECS,DC=CORP,DC=ARROW,DC=COM"
    $path = "OU=Users,OU=PL,DC=EUECS,DC=CORP,DC=ARROW,DC=COM"
    $allImportedUsers = Import-CSV polandusers_edited.csv
    $allUsersArray = Get-ADObject -LDAPFilter "objectClass=User" -SearchBase $searchbase -Properties * | select *
    $allImportedUsers | ForEach-Object {
    $Firstname = $_.givenname
    $Lastname = $_.surname
    $UserMail = $_.EmailAddress
    $UserFullName = $Firstname+" "+$Lastname
    $importUserSAM = $_.Samaccountname
    $allUsersArray | ForEach-Object {
    $currUserFirstname = $_.givenName
    $currUserLastname = $_.sn
    $currUserMail = $_.mail
    $currUserFullName = $_.name
    $currUserSAM = $_.samaccountname
    $currUserDN = $_.DistinguishedName
    if($currUserFullName -eq $UserFullName) {
    write-host "CSV $UserFullName matched on name"
    $userMatched=1
    if($currUserMail -eq $UserMail -AND $userMatched -ne 1) {
    write-host "CSV $UserFullName matched on email"
    $userMatched=1
    if($userMatched -ne 1) {
    write-host "$UserFullName was not found. Creating user."
    $userMatched=0
    If only i had a cool signature!! ;)

    Move below to outside the inner for-each loop:
    if($userMatched -ne 1) {
    write-host "$UserFullName was not found. Creating user."
    $userMatched=0
    so the bottom should look like
    }if($userMatched -ne 1) {
    write-host "$UserFullName was not found. Creating user."
    $userMatched=0

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

  • Please help with the FOR loop and the array..

    I was trying to place some words in the Movie Clip
    "TextPanel" and set a
    random position to each of them.
    But it's not working.
    1) I created a Movie Clip "word" and inside that MC I created
    a text field
    and gave it an identifier "textFiled".
    2) The linkage name for Movie Clip "word" I set to "word".
    3) In the actionscript I created an Array called "aWords".
    4) Then I created a FOR loop that should
    place (attach) Movie Clips "word0", "word1", "word2" and
    "word3" to the
    movie clip TextPanel, and set the textField text for each of
    them to the
    text from the Array.
    But the script attaches 4 Movie Clips with a name
    "Undefined", instead of 4
    different names (from the Array).
    What is wrong with this script?
    var aWords:Array = [apple,banana,orange,mango];
    for(i=0;i<aWords.length;i++){
    var v = TextPanel.attachMovie("word","word"+i,i);
    v.textFiled.text = aWords
    v._x = randomNumber(0,Stage.width);
    v._y = randomNumber(0,Stage.height);
    Thanks in advance

    But in my Post I already wrote v.textFiled.text = aWords
    so I don't understand what were you correcting..
    And one more:
    I have tested it by changing the
    v.textFiled.text = aWords; to v.textFiled.text = "some
    word";
    and it's working fine.
    So there is something wrong with the Array element, and I
    don't know why..
    "aniebel" <[email protected]> wrote in
    message
    news:ft2d5k$lld$[email protected]..
    > Change:
    > v.textFiled.text = aWords;
    >
    > to:
    > v.textFiled.text = aWords
    >
    > It needs to know which element inside the array you want
    to place in the
    > textfield (or textfiled) :)
    >
    > If that doesn't work, double check that your instance
    name is correct
    > inside
    > of "word".
    >

  • Please help with snippet for form.

    I'm building my wedding photography site with iWeb and I want to place a form on there where customers can, via a series of pull down menus, choose various addons to their wedding package which I want to show a running total at the bottom for an instant quote. I would then need to get a copy of this data sent to me.
    What kind of HTML snippet would I need and where could I find one?
    Thanks in advance.

    Thanks Scott, that jot form looks great for a contact form etc. Due to being add free. But it doesn't look like it allows me to add a value to a selection on a drop down menu and a way of adding it up/displaying the total on my site.
    Example id need fields like this;
    "album required"
    The available selections could be:
    "12 x 8" value added to viable running total would be £100
    "14 x 10" value added to viable running total would be £150
    "16 x 12" value added to viable running total would be £200
    Then another field may be:
    "Hi Res CD required?"
    the available selections could be:
    "no thanks!" having a value of £0
    "50 images" having a value of £100
    "all images" having a value of £250
    So if the user chooses "16 x 12" and "all images" the running total on the page would show the user "£450"
    Any help would be greatly appreciated.
    Thanks!

  • Please help with choosing the right text component

    Hello,
    In my applet, I need a single-line text component with the following capabilities:
    1: Support for bold font (entire text,not just part of it)
    2: Support for underlined text (entire text,not just part of it)
    3: Support for blinking text
    4: Ability to put caret anywhere within the text field with mouse
    5: Support for field validation
    6: Ability to handle various key events and modify the text and/or move around caret position accordingly.
    Now, I know there are at least 4 different text components: JTextField, JTextArea, JEditorPane, JTextPane. Which one of these is most suitable for the above features? Is it possible to use JTextField to support all of the above?

    Here is a link to the Java Swing tutorial which discusses the text components.
    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html
    I think you need to use a JEditorPane or a JTextPane (although I'm not sure any of the components support blinking text). A demo program shows some of the capabilities of these components:
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html

  • Please help with query for 5 lastest opening balance  !!!!!!!!!!!

    Can anyone plese tell me or guide me how to write the query to show the 5 lastest opening balance from the A/R invoice on the specific BP partner?
    Example
    The box to input "BP partner"
    and then show,
    Lastest transaction | Ship date | Invoice number | Balance Amount | Culmulative
    1    
    2
    3
    4
    5
    Your help will be very very appreciated.

    This is very good but I would like to show only the top 5 remaining invoice. I think that I have to combine it with JDT1. I have seen one query that may be able to apply on my case.
    SELECT
    T1.CardCode + '' AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    T0.RefDate,
    CASE
         WHEN T0.TransType = 13 THEN 'IN'
         WHEN T0.TransType = 14 THEN 'CN'
         WHEN T0.TransType = 30 THEN 'JE'
         WHEN T0.TransType = 24 THEN 'RC'
         WHEN T0.TransType = 46 THEN 'PS'
         ELSE 'Error ! ! !'
    END AS 'Doc Type',
    T0.Ref1 'Doc. Number',
    ISNULL(T0.FCCurrency, ' - ') AS 'Ccy',
    (T0.BalFcDeb - T0.BalFcCred) AS 'Bal. F. Ccy',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') <= -1)                     ,0) AS 'Future',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 0)                         ,0) AS 'Current Mth',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 1)                         ,0) AS '1 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') = 2)                         ,0) AS '2 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate ,'[%1]') = 3)                         ,0) AS '3 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') between 4 and 6)    ,0) AS '4 - 6 Mth Ago',
    ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred WHERE DateDiff(mm, T0.RefDate, '[%1]') >= 7)                       ,0) AS '>7 Mth Ago'
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C' and Balance != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    but still try to figure it out....

  • Please help with Specs for Elements 10

    Its been so difficult to get to the detailed specs for Elements 10
    Can anyone tell me if it does the following
    1. Import raw data from a Panasonic X5?
    2. Adjust vibrancy directly?
    3. Add starburst effect like in this photo
    Thanks

    See this Adobe document for the latest Adobe Camera RAW (ACR) update:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5371
    The "ReadMe" link lists the supported cameras.  (The DMC-LX5 is supported.)
    Yes, a RAW file will open directly in ACR, and JPGs can be opened in ACR by using File...Open As.
    No.  You'll need to find a plug-in that does starbursts.
    Ken
    P.S.,  Barbara, once again, my slow typing did me in....

Maybe you are looking for