Sway 3D object on Z-axis using slider?

Hi there,
I have multiple objects (side by side) which I would like to sway on the z-axis as if the wind is blowing them.  I already have their anchor points at the top of each object.  I have a few issues:
I have multiple objest which I would like to have random movement on.  I don't want ALL objest to sway to the left, then ALL sway to the right.  Rather I would like them to be somewhat random/organic.
I need to be able to control all of them with a slider...  I would like to be able to turn the sway up and down and ultimately have them all come to rest at a still position (with 0 z-rotation).
A slider would be ideal as I would like them to gradually stop swaying, not just "on" and "off"
There are about 15 objects to sway.  If there is no way to randomize them I would be happy even to make multiple slider controls so that object 1, 4, 6, etc. would be controlled (and have identical movement) by 1 slider, then objects 2,5,7 etc. would be controlled by another, and so on.  I suppose this would simulate randomeness but would not be ideal.  I would like the slider conrol to be dead simple.
Any thoughts?
Thank you very much!
-Stephen

Well, I'm getting closer but I'm not there yet.
I found out how to use this expression which seems to do what I want but only for a single object sway.  If I could randomize this and put it on all of the items it would be pretty close.  Here's the expression:
Math.sin(time*2)*1;
This has two problems.  First it appears to start  swaying at the begining of the comp instead of the comp starting with the object already swaying.  I might be wrong on this.
The other problem I already mentioned.  I don't know how to randomize this so each additional object has a random sway.  I at least found out how to attach the stay to a slider:
Math.sin(time*2)*thisComp.layer("new slider control").effect("SwayAmmount")("Slider");
I am able to set the slider at 1 and then to stop it I set it to 0.  I don't think this has a real ease or inertia, but it's ok I guess.
But again, no random options.  I've searched high and low to understand the random function.  I found: "random()" but I need it to freeze at a random number.  I found "seedRandom(x,true)" but all directions I can find for that talk only about possition in the comp.  I've given up trying to translate this from position.
Here's the closest I've come, but honestly I'm not even sure that it's a real function...
seedRandom(3,true);
RanNum = random(-2,4)
Math.sin(time*(RanNum))*thisComp.layer("new slider control").effect("SwayAmmount")("Slider");
This again links to the slider.  It DOES randomize somewhat and is better than nothing.  But surely there is a "correct" way which I am completely overlooking.  Using this method all layers sway left to right (fairly similarlily).  I would love to have some begin right to left, random...
Any thoughts?
Thanks!
-Stephen

Similar Messages

  • Access object on the stage using an as3 widget

    I am trying to use a FlashPro as3 widget and Captivate 6, to toggle an image on the Captivate stage (hide/show) and can't find enough information on how to access the stage objects.
    I can use 
    var numKids:int = parent.parent.parent.numChildren() 
    to see the number of children (of the stage object?) , but can't seem to figure out how to hide or show the child objects (image, button or anything).
    My image names in my Captivate Project are Img_Einstein1 and Img_Einstein2.  They reside on a blank slide along with two buttons and another widget.
    I have looked at Tristen's web site and found a lot of useful information, but I guess I am just not putting it all together.  Because I am a contractor I can't use the Widget Factory or purchase outside widgets.
    Any help will be greatly appreciated!

    On 6 you don't have shared actions yet. I don't understand the explanation with 20 and 10. There are several examples of toggle buttons on my blog. For showing/hiding here a simple one:
    http://blog.lilybiri.com/blog-after-posterous-clickclick

  • Add an object placeholder to a master slide

    How do I add an Object Placeholder to a master slide so I can drag and drop photos and have the pictures automatically size themselves to fit the placeholder? (I need to place 400 images, 18 to a slide and manage their builds individually.)

    To add a placeholder to a master, select the master, and then in the Master Slide Inspector palette, select the Appearance tab, and under Layout check the "Object Placeholder" option.
    However, do note that a slide can have only one Object Placeholder on it. If you have a large number of images that need to be sized to certain maximum dimensions, you might find instead that a tool such as Downsize is useful -- it will automatically resize a folder of images to a maximum height or width (and it's only $20). ImageWell also does quick resizing (freeware, although no batch feature).

  • Procedure for having two Y-Axis using scripts?

    Hi all
    I am planning to display two different channels on two differnt y-axis using VBscript....Like for example : i have two channels namely 1.Torque 2. Speed 3.Time, so i would like hav e this way, time on x-axis, speed on y-axis, And Torque on Y1-axis.......I would be very glad if some one could give me some example program or coding regarding this.....
    With regards
    Kenni

    Hi Kenni,
    The easiest way to do this is to prepare a REPORT layout and to use a script assign the channel which should be drawn (see attachment).
    To get the syntax to assign the channels please open the REPORT object (in your case the 2D axis system) and use CRTL-A. This copies the necessary commands to the clipboard and than you can paste it into your script (or use the teach-in mode than CTRL-A copies the commands directly into the script).
    Greetings
    Walter
    Attachments:
    Example1.zip ‏5 KB

  • Feedback on impementing second horizontal axis using Flex 2.0.1

    I am attempting to use the concept of a second horizontal
    axis using Flex 2.0. It is not clear to me if it is supported by
    the Flex 2.0.1 sdk although livedocs does provide an example using
    secondVerticalAxis. A snippet of my code is attached with this
    message. At runtime, the second series does not display. Any
    feedback about usage of the component would be greatly appreciated.
    Thanks.

    >>That data base is fine for a development environment.
    Thanks edbrendel.
    So, since I am able to run Apache 2.2 as I want to, would I
    be better of to use MySQL 5 or MS SQL Express if I want it to be
    largely development, but also for my own stuff (my galleries etc.)
    actually running pages served to the web?
    I know of the technotes, a couple of them (incl. the MySQL
    note on installing V. 5 as a datasource and all that), but never
    saw that one...so thanks very much. I've manually added the Apache
    2.2 file line in httpd.conf and added the file in the config area,
    which always worked in the past with XP Pro and XP64...hope it does
    with 2003 I had 2003 server when I first started playing, it was a
    nightmare, I hope now that I've bought everything I can wrap my
    head around it!). I just make sure I don't try to configure CF
    until after manually adding the files, and changing the Apache
    config file and restarting. Then I go into the administrator for
    the first time.
    Shawn

  • How to pass array of Object in A Procedure using OCCI.......

    I m also trying for How to pass Object to a procedureb using OCCI...
    Steps....
    1. I created A type.....
    2. Then I created a VARRAY using that Type.
    3.After that I have written An Procedure with object as a parameter..
    now using OCCI how do u bind the parameter with this . plz note that using OTT
    i have already created the class representation of above object type i.e class
    four Files Created 1> demo.h 2>registermapping.h
    3> demo.cpp 2>registermapping.cpp
    After I want to Pass the Values in A Vector...
    vctor<full_name *> vect;
    stmt=con->createStatement("BEGIN Add_Object(:1); END;");
    full_name *name1 = new full_name; //Giving the Error here Given below....
    name1->
    name1->
    Through name1 Which Function I will call in which I will Pass a String....
    like
    name1->readSQL("Sanjay"); Or I have to add a function......
    vect.push_back(name1);
    setVector(stmt,1,vect,"FULL_NAME");
    error C2259: 'FullName' : cannot instantiate abstract class
    can u plz suggest me Why this Error is Giving......?
    How to pass the data?
    setFirst_name() and setLast_name() this two function I will add in Demo.cpp which one created automativcally by Using OTT command.....or other way plz tell me Boss ....
    Can u lz Suggest me ASAP....

    hi Nishant ,
    What u have done Now I mm trying ....
    can u Plz Suggest me......
    How to pass and Array of Object in Procedure using OCCI... Doing....
    90% finished Two Error's Are Coming...
    1> If I create the Class then Data Not Inserting table......
    2> If I will create the Class through OTT command.......
    then U can't Instantiate Object It is DIsplying ,this is Abstract Class(PObject)...
    Beco'z the below Method is Not adding Automatically by OTT command which is Pure Virtual Function.....
    But I added this Function Still SAme Error Giving..
    getSQLTypeName(oracle::occi::Environment env, void *schName,
    unsigned int &schNameLen, void **typeName,
         unsigned int &typeNameLen) const
    Plz Suggest me....
    regard's
    sanjay

  • How to get the position of the stem in control valve using slider control in the front panel

    I have created a calibration program for a control valve. Signal (4-20mA) is generated from labview using slider contorl which is given to the valve via DAQ(module 9265) and again the feedback signal from the valve is acquired using DAQ(module 9203).. . There is an input ISO/ISC(Increasing signal to open/ Increasing signal to close) in the front panel.
    ISO would set the output to increase from (4-20)mA further opening the valve
    ISC would set the output to increase from (4-20)mA further closing the valve
    I have doubt, how can i get the position of a stem

    Ravens Fan wrote:
    If the position of the stem is being sent to the PC through a 4-20 mA signal into your DAQ 9203 module, then you just need to do an analog input read in order to get the signal.
    When reading this post, that is what came to mind...  So let's see if both RavensFan & I are trying to understand the same thing...  Are you saying that the position of the stem is linear (or scaled) to the amount of current sent to it?  Meaning a 4mA signal would move it a certain distance, and 10mA would move another given / known distance?  Or are you saying that it is calibrated so that a 20mA signal for a certain duration (ms) would move it a given distance? So the scale would be time and not current unless a lookup table is used to adjust the time duration based on the current being drawn...
    It's just that I am not familiar with solenoid / drive devices that related to current..  To voltage, yes.  To time, yes..  To current, I'm simply saying that I am not familiar with that.  Can you tell us more about this stem (mfg / model designation)?

  • Edit Objectives and other columns using PHAP_ADMIN : SAP Appraisals

    Here is a common scenario that we are having problems setting up. We are on SAP 4.7 - ext 1.1. We have annual MBO ratings where the employee's objectives are rated by the manager. The employees create their objectives in the system using T.code PHAP_CATALOG. We have created OSA templates where in the Objectives can be only changed by appraiser and manager can only display. This is configured in the template using column access. (For example in planning stage the column access for objective setting is set to: Column Owner - Appraisee, Planning Owner- Change, Planning Others - Display.)
    However, we would like the HR Administrator to be able to edit the objectives in planning status and subsequently other columns in the appraisal document. However in transaction PHAP_ADMIN the objectives are grayed out and the HR administrator cannot change the objectives of employs are edit anything in the document. This is probably because the column access is set to display for others. The role given is an exact copy of standard SAP delivered role for appraisal administrator. We have included P_Origin authorization object also.
    I understand PHAP_ADMIN should over rule and enable changes by the administrator.
    How do we manage this requirement?
    Thank You

    Hello,
    This is the outcome of my research on this issue. Granting full access to administrator users is not the default behavior in PHAP_ADMIN for 620. It was introduced to 640 and unfortunately cannot be down ported.
    However, We could give full access to the administrator using BAdI 'HRHAP00_COL_ACCESS'  and this had the same effect. The necessary coding for method 'GET_COLUMN_ACCESS' looked like this:
    | * If the transaction is PHAP_ADMIN allow full access
    | IF sy-tcode CP 'PHAP_ADMIN*'.
    | column_owner = 'X'.
    | availability = 'X'.
    | ENDIF.
    I would like to give due credit to Alexander Esslinger from SAP, who helped us solve this problem.
    Thank You
    Magesh

  • Captivate 5.5 is setting a Mastery Score in the Manifest when using Slide Views

    We have encountered a problem with Captivate 5.5 where it is setting the Mastery Score in the manifest to match the Quiz score setting even though we are only using slide views to track completion.  This is a problem because if we set the score to zero, our Saba LMS will immediately grant the user credit for the course on the first slide.  If we set the score higher than zero, the user will never get credit for the course as Captivate doesn't send a score to the LMS when using slide views to track completion.  Our LMS seems to ignore the status passed by the course once the Mastery Score is set.  We have compared the manifest behavior in 5.0 and it does NOT set the Mastery Score.  We can edit the manifest prior to loading in the LMS but this is a hassle and we'd like to figure out a way to permanently change the behavior to no longer set Mastery Score when using Slide Views to track completion.

    Hi,
    I believe the easiest way to do this is to edit the manifest.xml file in the Captivate Templates folder.  I posted instructions on doing that here: http://forums.adobe.com/thread/956390?tstart=0
    Hope this solves your issue.  V

  • Can't scale the objects. The requested transformation would make some objects too small to use.

    How does one remedy this Adobe error message? "Can't scale the objects. The requested transformation would make some objects too small to use." This one always gets me. I'll spend more time trying to find the object in question. This has happened in almost al versions, but this time it's CS5.

    Hmm, possible solution would be to select your object(s), scale them to 90%, and then hit Cmd+D or Control+D to repeat the transformation. I read that sometimes if you scale down too much and too fast it can cause this message.
    Hope this works for you!
    Michael

  • What is the use for lock object and how to use the lock objects

    Hi Guru's,
    I am new to ABAP .Can you please clarify the that what is the use of lock object and how to use the loct object .what is use of the Deque & Enque  function modules .

    hi ,
    below are some minfo about lock objects :
      Lock Objects
    These types of objects are used for locking the access to database records in table. This mechanism is used to enforce data integrity that is two users cannot update the same data at the same time. With lock objects you can lock table-field or whole table.
    In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built-in on database tables. Developers can also lock objects over table records.
    To lock an object you need to call standard functions, which are automatically generated while defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defines LUW i.e. Logical Unit of Work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases the lock at the end of transaction. The LUW starts when a lock entry is created in the system table and ends when the lock is released.
    Creating Lock Objects
    Lock object is an aggregated dictionary object and can be defined by using the following steps:
    o From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen
    o Enter short text as usual and the name for primary table.
    -Save
    -Select Tables option
    From this screen you can:
    Select secondary tables, if any, linked by foreign key relationship.
    Fields for the lock objects. This option allows you to select fields for objects (R/3 system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.
    1) Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
    2) Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
    3) Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
    Also, last but not the least, locking the object is logical (locking with any enqueue ) .so, you have to use the lock object while trying to access from second program .
    reward if helpful ,
    Regards,
    Ranjita

  • This Data Object is currently in use and cannot be edited at this time

    Hi,
    I have a problem with one of my data objects in that when I try an edit it I get ‘This Data Object is currently in use and cannot be edited at this time’. I have tried everything from rebooting the machine. Any ideas?
    Robert

    If you have defined any plan or an alert on this data object , please disable them and try agian..

  • Want to Send array of objects to an Axis web service

    Hi,
    I wanna send an Array of objects to an Axis based web service. Is there any work around, how to or example available.
    Regds,
    Farooq

    908794 wrote:
    Hello,
    I would like to see the raw http response which is returned from web service calls.Why the HTTP response? Isn't the soap message body enough? If it is, you probably want to check out SoapUI.
    A simple google query for "apache axis2 http response" also return this article:
    http://blogs.cocoondev.org/dims/archives/004668.html
    And finally, you did go through the Axis2 website right? It has a wiki with a rather staggering amount of articles in there.
    http://wiki.apache.org/ws/FrontPage/Axis2/

  • I am unable to use slide to unlock on 4s

    Hi, I am unable to use "slide to unlock" my iphone 4s. Only thing i can use is siri. apart from siri none of the functions can be used. I cant answer any calls. Please help.

    Hello Hirensoni
    Start with the article below to troubleshoot issues with your touchscreen on your iPhone. You may need to restore your iPhone to get it back up and running.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Regards,
    -Norm G.

  • "Embedding OLE objects is unsupported. Use File- Import to import media." Error dialog while concurrently Flash CC executions

    Hi,
    we are using Flash CC an a dedicated windows server with two userprofiles. Each user has its own licence.
    If we run a jsfl script singly, this script runs fine.
    If we run the same jsfl script on both users we get the error:
    "Embedding OLE objects is unsupported. Use File->Import to import media."
    I read the article addItem() -> "Embedding OLE objects is unsupported" , but it could not the problem, because the script runs fine singly.
    Could it be possible that both users uses the same Flash CC Clipboard ore are there any other shared modules etc?
    Best regards
    Alex

    can you write how to use ?
    i write
    "import the flash.display.MovieClip; "
    still error ahhh
    i try to change extends MovieClip instead Spirt
    and not error stop(); and gotoAndStop Already
    but
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MemoryGame/nextTurn()
              at MemoryGame/clickStart()
    i got thissssssss TT
    import flash.display.Sprite;
    import flash.events.*;
    import flash.text.*;
    import flash.utils.Timer;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.display.MovieClip;
    that i import

Maybe you are looking for

  • Invalid descriptor index error

    hai... i am having this error.. java.sql.SQLException:[Microsoft][ODBC Microsoft Access Driver]invalid descriptor index. I am doing RMI application..while i am trying to insert i got this error... here i paste my code....can anyone help me in finding

  • Ipod Mini - Mainboard - SMD Chip Q10 ? what is it ? damaged when reassmblng

    When re-assembling my Ipod Mini , 2nd Gen , 4Gb , I damaged the 6-pin chip Q10 which mounts on the back of the main board near the bottom . I'd like to try to find out what it is in order to try to replace it . It's a Surface Mount Device or SMD . Th

  • How to maintain the state of apex_application items

    Hello all, I am having a tabular form using apex_application items, In the first column I am having a select list, user is going to select one value from select list and the other columns in that row are populated accordingly. Problem is here when us

  • Matrix  Report ...Heading Overflow

    Hi All: I have to create a matrix report in following format which display total depending on row & column Designation Lab Assistant Lab Technician Teacher Teacher Assistant Department Physics        2                     1                  1        

  • CSS3 Gallery problem, help!

    Hey everyone, I have a CSS3 gallery on my website www.hardtimesdesigns.co.uk/portfolio.html that works perfectly! I am trying to replicate the same gallery for a friend for his website. My effort can be seen here www.alicatrenovations.com.au/gallery.