Creating own controller

There are parts of my movie where I want the user to have complete control. So I created a controller with step back, pause, step forward, play.
Any help with script would be appreciate. I have tried go to the frame for stop --- and even put it in a loop - but it doesn't stop
I have tried frame+1 for step forward without any lock.
How do control frame movement.
I would prefer not to use markers - because the count would be in the thousands.
Thanks

One way to approach this is to place all the logic for controling the position of the timeline in a parent script and then use a global exitFrame handler inside a movie script to route the call to an instance of the parent script.
It's simpler than it sounds.
Here's the movie script:
global gControler
on prepareMovie
  gControler = script("Timeline Controler").new(#play)  -- #play, #pause, #reverse. [speed] optional speed value
end
on exitFrame
  gControler.updateFrame() 
end
Now you can control the flow of the timeline via the global object "gControler" which I provide below.
The interface is:
gControler.play(), gControler.play(3), etc
gControler.reverse(), gControler.reverse(2), etc
gControler.pause()
gControler.jump(1), gControler.jump(10), etc
gControler.seek(10), gControler.seek(1000), etc
Any exitFrame handlers in FrameScripts will override the movieScript exitframe handler. Which you may or may not want to do.
Paste the following in to a parent script named: "Timeline Controler"
-- Parent Script Timeline Controler
property  pState  -- #play, #pause, #reverse
property  pSpeed  -- frames per exitFrame. Normal play rate is 1.
on new me, aState, speed
  if aState.SymbolP then
    pState = aState
  else
    pState = #play
  end if
  if Not [#play, #pause, #reverse].getPos(pState) then pState = #play
  if speed.IntegerP then
    pSpeed = speed
  else
    pSpeed = 1
  end if
  return me
end new
-- change current frame based on state variable pState
on updateFrame me
  case pState of
    #play:       go(min(_movie.frame + pSpeed, _movie.lastframe))
    #reverse:  go(max(1, _movie.frame - pSpeed))
    #pause:    go(_movie.frame)
  end case
end updateFrame
-- go forwards
on play me, speed
  if speed.IntegerP then
    pSpeed = speed
  else
    pSpeed = 1
  end if
  pState = #play
end play
-- go backwards
on reverse me, speed
  if speed.IntegerP then
    pSpeed = speed
  else
    pSpeed = 1
  end if
  pState = #reverse
end reverse
-- loop on a frame
on pause me
  pState = #pause
end pause
-- move "pos" number of frames from current position. Can be positive or negative
on jump me, pos
  if pos.IntegerP then
    go(max(1, min(_movie.frame + pos, _movie.lastframe)))
  end if
end jump
-- go to an absolute position on the timeline
on seek me, pos
  if pos.IntegerP then
    go(max(1, min(pos, _movie.lastframe)))
  end if
end seek

Similar Messages

  • [6140] Failover does not change owning controller

    Hello!
    We connected our 6140 to one host with two HBAs. Each HBA is connected to one of both controllers. I can see the volumes and create a filesystem there. When I pull out one cable, I get this message:
    qla2x00: FAILBACK device 0 -> xxxxxxxxxxxxxxxx LUN 00
    qla2x00: FROM HBA 1 to HBA 0This seems OK on the client side, but now I am unable to mount the volumes any more. But when I change the owning controller in the Web interface of the 6140, mounting works. I thought this should be done automatically? What do I have to change?
    TIA
    Stephan

    This seems OK on the client side, but now I am unable to mount the volumes any more. But when I change the owning controller in the Web interface of the 6140, mounting works. I thought this should be done automatically? What do I have to change?
    I have experienced this problem with Apple XServ servers and there HBA's , for some reason even though the card is dual ported you are unable to use both ports on the two controllers.

  • How to create own Web Items for Web Application Designer

    Hi all,
    is it possible to create own Web Items for the Bex Web Application Designer? Each Web Item has a Master Web Item and a class that is responsible for rendering data. I need a solution to get the Web Item's data - i.e. the content of a table (if Web Item = table). So my approach would be to create an own (Standard) Web Item with an own class. For example I would like to change the table's Web Item parameter <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/> to an own class...
    Is this possible?
    Or ist there any possibility to get the Web Item's data by an interface?
    Any support is welcome...thanks in advance!
    Best regards,
    Dominik

    if you want to create your own webitem check out the link given by other sdner.
    if you want to be able to execute BW query using abap you can check out the following weblog.
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    Regards
    Raja

  • How to create own evaluation path

    Hi Experts
    Can anyone of the HR experts let me know how to create own evaluation path to be used in Function Module 'RH_STRUC_GET'.
    Thanx,
    Rahul

    Hi
    To maintain evaluation paths, choose the IMG activity SAP Web Application Server ® Business Management ® SAP Business Workflow ® Basic Settings (Organizational management) ® Number range maintenance ® Maintain evaluation paths. When the system is in operation, use transaction OOAW .
    Here you will find the maintenance view Change evaluation paths: Overview.
    Assign a name to the evaluation path (maximum of eight alphanumeric characters).
    Go to the dependent view Evaluation paths (individual maintenance).
    Describe the relationship chain to be used for the evaluation.
    To establish the permitted relationships for an object type, use report RHRELAT0 .
    REWARD POINTS

  • How to create own customized screensaver on Windows 7 Embedded Standard sp1

    Hi Support,
                      How to create own customized screensaver on Windows 7 Embedded Standard sp1 OS.
    Regards
    YASH PAL SINGH

    This forum is for POSReady. wES7 forum can be found here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=quebecmisc
    Create the screen saver in Windows 7 first and then put the file in the distribution share to be included in the image. There are tools that can help create a custom screen saver:
    http://download.cnet.com/windows/screensaver-editors-and-tools
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • How to create own interface without .cpp file?

    how to create own interface without using .cpp file ? To access the method inside the interface .
    e.g.  ILayoutTarget.
      Should not be SDKFileHelper.h because they are using SDKFileHelper.cpp file

    Rathan,
    PLz chk the below link (PDF file)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79?quicklink=index&overridelayout=true
    Mutti

  • How to create own tags in JSF?

    I am using xhtml, So I need to create own tags for retrieving data from database & query for data. So Just explain me the procedure for doing so. I m using hsql database...
    Thanking you
    --Mansingh Shitole                                                                                                                                                                                                                                                                                                                                                                                                                           

    ms_shitole wrote:
    I am using xhtml, So I need to create own tags for retrieving data from database & query for data. So Just explain me the procedure for doing so. I m using hsql database...It sounds to me that 1) using are using Facelets and 2) you are looking for a replacement for the JSTL SQL tags. If this is the case, I'll quote the J2EE Tutuorial:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html says:
    The JSTL SQL tags for accessing databases listed in Table 14-8 are designed for quick prototyping and simple applications. For production applications, database operations are normally encapsulated in JavaBeans components.

  • How to create own routine in VOFM or else where?

    hi
    please tell how I can create own routine in VOFM or else where?
    I want to create
    Condition formula for alternative calculation type
    for my pricing procedure
    (example -calulation type column in pricing procedure-routine no 12)
    thank you

    hi sudhir
    in VOFM only.
    go inside & select pricing in requriment.
    create a new routine number from 900 & above.
    for this you need an access Key & generate it from SERVICE.SAP.com
    but you need SID for that.
    and proceed with the logic with the help of an ABAPER & then every thing is compleleted then activate the routine created.
    hope this clears your issue.
    balajia

  • Creating own datatypes/handles

    Hello!
    I have a C library which has differents functions that expect various handles (uint32) as parameters. Calling these functions from within LabVIEW is not a problem. What I want to do is make these handles avaible to the outside, accessible through a SubVI connector, somehow comparable to the "Tasks" in DAQmx functions. I can without problem give them as uint32, however this way different types of handles can easily get mixed up as they all appear as blue lines and look like some integers and are not typechecked at all.
    Is there a possibility to create own datatypes in LabVIEW that basically can be translated to a simple uint32 in order to pass them to a DLL but to avoid mixing up different types of handles outside of the SubVI. It would be comparable to some C "typedef" with additional typechecking when they are passed to a SubVI. This would simplify the use of the VIs I am creating siginificantly as errors with mixed up handles are very hard to spot and cause major run-time errors. Additionally it would be very helpful if it was able to create its own coloring/design for the lines and connectors to make the block diagram look cleaner.
    I am using LabVIEW 8.5.1.  
    Best regards! 

    Two ideas come to mind.
    Type cast your U32 as an datalog reference. That will only give you the option for a green wire. But its traditional and has been around for a long time.
    LVOOP lets you define the appearence of the wires used by a class. So wrapping your dll inside a privat method in its class will give you custom wires.
    Ben
    Message Edited by Ben on 03-12-2009 01:07 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Wire_Colors.PNG ‏26 KB

  • [IDOC] Creating own IDOC

    Hey,
    playing with IDOCs, I would like to create an own one with customized structure.
    Found this thread:
    Creating own IDOC with segments
    In we31 I have to create a segment.
    - Do you uses segment names longer than 7 characters? I would not
      communicate with R/2 or older systems, so would you use longer names?
    - Data elements: If you create your own IDOCs do you use own data elements?
      Just want to have something like a string element. Or is there a standard
      data element you can use? (sorry, a newbie question). I would like to use
      S_PASSNUM, S_PASSNAME2, S_PASSNAME2......
    thanks a lot.
    chris
    Edited by: Christian Riekenberg on May 21, 2008 2:54 PM

    Hi Christian,
    Data elements: If you create your own IDOCs do you use own data elements?
    Its not mandatory that you have to create your own data element.  You can use an existing data element.You must create new data elements in the following case:
    A data element in SAP does not use one of the allowed data types for IDOC segments. For eg: the future price field (ZKPRS) in the E1MBEWM segment of the MATMAS02 basic type uses data type CHAR12 instead of ZKPRS. The reason is that the data type for ZKPRS is CURR (Currency) which is not allowed in a segment definition.
    Reward points if helpful.
    Regards,
    Soumya.

  • Volume's Owning Controller automatically changes.

    Hi,
    Our Setup is as follows.
    - 1 SunfireV440 and 2 SunfireV490(Running on Veritas Cluster)
    - 2 StorageTek 6140 (1GB Controller, Total 4 HostChannels)
    - 2 Brocade SAN switches.
    All the 4 host channels of both the 6140 is connected to the SAN switch as a redundancy configuration.
    The Volumes are Identical on Both the Storages. Mirroring is done across the storage via Veritas. Multipathing is also done through Veritas.
    Volumes are mapped using Licensed Storage Domains.
    Issue:
    Out of the 38 Volumes, we face issues on 4 particular volumes. The issue is these Volumes's Owining Controller has got changed automatically and the CAM is showing the Boxes as Degraded and generates Alarm.
    All the 4 volume's preffered controller is A and owning controller is B.
    There is no harware errors, Controllers, Cables, Switch and HBA are working fine. Except the 4 volumes rest of the volumes are all Owned by their Preffered Controllers.
    All the even LUNs are give to Ctrl. B and odd LUNs to Ctrl. A
    We tried re-distributing the volumes which resolved the issue, but the Owning Controller got changed again after 2 days.
    What might be causing the volume to move from its preffered controller as there was no physical errors.
    Is this some kind of loadbalancing on the controllers?
    Thanks for any help.
    Regards,
    Hari.

    If you're using MPxIO (aka STMS) you should check /var/adm/messages which should contain any failover messages - if both servers say that the cause of the failover is external, you need to check the switches and all the paths in between the hosts and storage (all the fibres / SFPs / patch panels etc)
    --A.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Getting error while creating Service controller from component controller

    Hi,
    I have added CAF model in used model for DC project.But when i m trying to create service controller from component controller by selecting used model it is giving error like "Context element cannot be bound to model layer".
    Can anybody help me out on this issue.
    Thanks in advance.

    Hello,
    try to check the check box in MS Word - File - Options - General - "Open e-mail attachements and other uneditable files in reading view"
    I am not sure how this option really works, but I think you will find it checked. So try to uncheck it.
    Or wise versa :c)
    Kind regards

  • My husband and I share his apple ID on our iphone5s.  I created own Apple ID.  How can I put it on my phone for own iCloud and keep joint itunes?

    My husband and I presently share his Apple ID on our respective 5c iPhones.  I want my own iCloud account.  I created an Apple ID for myself. 
    1} how do I change from his apple ID in my phone
    2) how do I continue to use the joint iTunes account under his name
    3) see below -  how do I switch the iTunes account to my apple ID
    Also, under a totally different subject.  My husbands iPhone was just stolen while he was doing volunteer disaster work in the Philippines.  Since he did not have internet access I was not able to wipe out his phone on Find My iPhone until about 8 hours after it was stolen.  After he found a way to call me back in the states,  I wiped out all his data using FInd My iphone, notified Verizon and they suspended service. 
    Because the nonplan iPhones are so expensive ($600 +) I think he will buy an Android when he returns.  Is there any way to transfer what is on our iTunes account to his Android? 
    The Verizon service person told me that whoever stole it will not be able to use the phone as it has been reported stolen.  I can not imagine that is correct as there seems to be a thriving secondary market online. Is that correct?  I am concerned that some super technical person will be able to retrieve data that was purged via Find My iPhone....   Is there anything else I should do? 

    Did you take a look at the new feature Apple - iOS 8 - Family Sharing ?
    Apple - iCloud - Family Sharing
    Up to now, songs bought from iTunes could only be played by the Apple ID that has been used to buy them.
    If you set up Family Sharing, your daughter can also play your songs and use the same contact info as before.
    If you don't want to do that, sync the contact info to the address book on your computer, and sync the info back, using iTunes:
    Sync your iPhone, iPad and iPod with iTunes using USB
    If the iPad already has her Apple ID and contact info on it, restore the phone from the latest iPad backup.

  • How to set up TimeCapsule (4th) to create own private (wired) network behind Airport Express (5th) that is set up to join existing wifi-network of fritz adsl modem/router?

    I work in an office building with free Wifi to connect to the Internet. I want to be able to use this internetconnection, but at the same time I want to shield of my own wired network.
    I've made the following configuration:
    - fritz adsl modem / router
    - Airport Extreme (5th gen) set up to join existing wireless network (green light, works)
    - Lan-cable from lan-port AE to wan-port TC (4th gen)
    - Lan-cable from TC to Mac
    - Lan-cable from TC to Printer
    When I set my TC (network-settings) in bridge-mode everything works fine, but my Mac and Printer get an IP-address from the fritz modem / router and are visible to others.
    I tried to set TC in NAT/DHCP-mode, but then I get the error message that I should set a static IP-adress for TC. When I set TC in DHCP-mode, it looses connection to the AE. I'm not sure what to do now. Does anyone know how to set up my TC and create my own private network and still be able to get on the internet?

    Hajenius wrote:
    Is there a better alternative? I'd rather not want to reset my TC every day.
    You are using free internet.. so there is a price to pay.. that is convenience and non-ideal network setup.
    The better alternative is to pay for your own connection. Then you are completely free of the possibility of others in the bullding seeing your connection. (as long as you secure the wireless).
    But I think you are probably over worrying about public wifi.. if it is setup right.. ask the building admins.. it should be setup so each user cannot see another users connection. This is typical for most wifi setup and simply means you can see internet connection but nobody else on the connection. ie other wireless users.
    Having a router with NAT makes it then more secure again and allows clients on your own network to interact with each other. But you can setup wireless to the free wifi for every client.. (depending on how many IP you are allowed).. and run a secondary network without internet access. This is easy for desktop etc where you have a wireless and a wired connection but less convenient for mobile devices.. unless you use a cloud connection and each client can link and share via that.
    Have I made the explanation worse??
    Think of it this way.. if you had 3 laptops.. all 3 could connect to the internet from the building wifi.. but they cannot talk to each other or share resources in local office. You can put resources out in the cloud, that can be shared.. but that adds traffic and most free services are not fast.
    Now you can also plug all three into Time Capsule by ethernet.. and share local resources. Files, printers backup etc. This network is not connected to the internet at all. Each laptop has internet via free wifi and local connection.
    For devices like iphones that have no ethernet or other method.. you could use local wireless and public wireless.. but in turns.. still the only advantage is less issues with double NAT.. if that causes problems.. then this is an alternative.

  • Create own idvd theme?

    How do you create your own them? Special SW? Please advice.

    short Q, short A:
    http://www.creativemac.com/2003/03_mar/tutorials/idvd31030319.htm
    http://www.creativemac.com/2003/03_mar/tutorials/idvd3p2030324.htm
    http://www.creativemac.com/2003/05_may/tutorials/idvd3-30305273.htm
    special SW mentioned in article
    advice:
    before going into deep, creating customized themes:
    you do know, iDVD allows to modify themes "to death"?

Maybe you are looking for

  • Can I cut-off New G/L migration date during fiscal year ?

    Dear Experts     I know that the principles of migration date of New G/L migration should be on first day of fiscal year and Year-end closing of the old fiscal year must be complete before New General Ledger Accounting is activated.     However, if I

  • Skipping update statement

    i am using 'For Update' statement to lock a record in a table and then updating that table through another update statement, like this in a procedure in my Developer Suite 9i application:- 1)SELECT TOTAL_OUTSTANDING INTO TEMP_OUTSTANDING FROM PPBS_DI

  • Crazy Error N CF Documentation

    I am just learning CF8. The code below is copied from CF's developer's guide (.pdf), AND ITS DRIVING ME CRAZY! <cfif info.FOUND LTE 5 AND isDefined("info.SuggestedQuery")> Did you mean: <a href="search,cfm?query=#info.SuggestedQuery#>#info.SuggestedQ

  • Preview panel in Premiere Elements 10 stopped working

    Hi The preview panel on Adobe Premiere Elements 10 has stopped working. It was working fine until a couiple of weeks ago. I'd created a film and rendered it OK but after watching decided to do a little more editing. When I opened up the project the p

  • Saving Files from Photoshop to Lightroom

    In LR 3 when I saved an image after editing in PS, the edited file showed up next to the original RAW file. Now in LR 4, the saved image is placed at the end of the folder. It there a preference somewhere that I can set to tell LR that I want it plac