How to get relative position of layer in larger precomp.

The Setup:
Comp 1 is 2000x3000 pixels. Comp 1 contains Layer X that is positioned at 1750,1250. (or whatever)
I pull Comp 1 into Comp 2 which is 800x600. I scale and move Comp 1 inside Comp 2 by an arbitrary amount.
How can I determine Layer X's position using Comp 2's coordinate space?

Hmmmm... That's not working either.
Inserting this expression into an Effect's point control doesn't put it in the right position.  I tried inserting this expression into another (2D) null's position, but it's in the same incorrect place.
Original Null A Position (from C4D project import).  This comp is put into Comp ZZ.
Applying that Expression to Null's position in Comp ZZ puts the new Null B way off in the corner.

Similar Messages

  • HELP!! How to get the position of active windows in the desktop

    How to get the position of active windows in the desktop

    You mean, active windows other than the program you're running, or windows the program puts there? And a real desktop (like where MyComputer is), or a desktop pane?

  • How to get info from a layer which is  applied  with styles  ?

    How to get info from a  layer  ?  such  as   (  apply  style  or  not , which  effect  have  applied  on  it  etc..)
    I  really  can't  solve  it , Who can hlep me..  By the way , I 'am  using  CS version.  

    xtools/xlib/Styles.js has a set of functions for working with layer styles. I do not know if it works with CS. I wrote it several years ago for either CS or CS2. If this doesn't work, then nothing will. The script retrieves a layer's style by saving it to disk then parsing the file for the desired ActionDescriptor.
    There is a function at the bottom of the file that tests the Styles.js API.
    Styles.test = function() {  var doc = app.activeDocument;
      var layer0 = doc.artLayers[0];
      var gdesc = Styles.getLayerStyleDescriptor(doc, layer0);
      if (!gdesc) {
        alert("There is no layer style associated with the layer");
        return;
    //   this will set the layer style to another layer.
    //   var layer1 = doc.artLayers[1];
    //   Styles.setLayerStyleDescriptor(doc, layer1, gdesc);
      if (!gdesc.hasKey(cTID('FrFX'))) {  // look for a stroke effect
        return;
      var frfx = gdesc.getObjectValue(cTID('FrFX'));
      if (!frfx.hasKey(cTID('Clr '))) {   // look for the color
        return;
      var clr = frfx.getObjectValue(cTID('Clr '));
      // we should really check that the objectType is RGBC
      var r = clr.getDouble(cTID('Rd  '));
      var g = clr.getDouble(cTID('Grn '));
      var b = clr.getDouble(cTID('Bl  '));
      if (r == 0 && g == 0xFF && b == 0xFF) {
        return;
      clr.putDouble(cTID('Rd  '), 0);
      clr.putDouble(cTID('Grn '), 0xFF);
      clr.putDouble(cTID('Bl  '), 0xFF);
      frfx.putObject(cTID('Clr '), cTID('RGBC'), clr);
      gdesc.putObject(cTID('FrFX'), cTID('FrFX'), frfx);
      Styles.setLayerStyleDescriptor(doc, layer0, gdesc);

  • I pressed  some keys in iPhoto and the picture "icons" shrunk. How to get them back to their original larger size?

    I pressed  some keys in iPhoto and the picture "icons" shrunk. How to get them back to their original larger size?
    I read another post about this that suggested restoring preferences, but I don't know how to do this. I don't want to re-install iPhoto for sure.

    My bad. I didn't see the slider lower right (it was mentioned in the reply).
    Now can somebody tell me how to delete questions

  • 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)?

  • How to get a position in a string?

    I need to get a position in a string like the word CHEESE, where the c is position 1, the h is position 2, the e is position 3 etc... Which input stream should i use and how does it work really?

    indexOf(int ch)
    Returns the index within a string of the first occurrence of the specified character.

  • How to get the position of a selected cell in a table ?

    Hi,
    How can I get the position of a selected cell in a table or in a list multicolumn cmd ?
    Thanks.

    Invoke node >>> point to Row Column
    Ben
    Message Edited by Ben on 07-19-2007 03:14 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Point_To_Row_Column.PNG ‏22 KB

  • How to get related entities in lightswitch RIA domain service?

    I have set up my DomainService and here is the data structure(one CombinedStadium may
    have many CombindeEcoStatus)
    public class CombinedStadium
    [Key]
    public int SiteId { get; set; }
    [Include]
    [Association("Stadium_EcoStatus", "SiteId", "StadiumId")]
    public IQueryable<CombindeEcoStatus> EcoStatus { get; set; }
    public class CombindeEcoStatus
    private CombinedStadium _combinedStadium;
    [Key]
    public int EcoId { get; set; }
    public int Year {get;set;}
    public int StadiumId { get; set; }
    [Include]
    [Association("Stadium_EcoStatus", "StadiumId", "SiteId", IsForeignKey = true)]
    public virtual CombinedStadium Stadium
    get { return this._combinedStadium; }
    set
    this._combinedStadium = value;
    if (value == null)
    this.StadiumId = value.SiteId;
    the query is
    [Query(IsDefault = true)]
    public IQueryable<CombinedStadium> GetAllStadiums()
    var stadiumsQuery = from stadium in this.Context.StadiumSet
    select new
    SiteId = stadium.Id
    return stadiumsQuery;
    When I consume this RIA service in my lightswitch app as datasource,and the result looks as same as the Original lightswitch Data Source.
    Question:When I query the "CombinedStadium" in HTML client. I can't use the "expand" keyword to get the "EcoStatus" Items which belong to the selected
    "CombinedStadium" items.the query code is below:
    //streetIds, openIds are query parameters
    //streetIds is parameter for query the "CombinedStadiumItem" table
    //openIds is parameter for query the "CombindeEcoStatusItem" table
    myapp.activeDataWorkspace
    .WCF_RIA_ServiceData
    .CombindedStadiumQuery(streetIds, openIds)
    .expand('EcoStatus')
    .execute()
    .then(function(proItems) {
    var test = proItems.results;
    addPin2Map(test);
    loadStadiumInfoGrid(test);
    the browser throw "error 501".
    So I query the "CombinedStadiumItem" table alone.the code is below: 
    //streetIds, openIds are query parameters
    //streetIds is parameter for query the "CombinedStadiumItem" table
    //openIds is parameter for query the "CombindeEcoStatusItem" table
    myapp.activeDataWorkspace
    .WCF_RIA_ServiceData
    .CombindedStadiumQuery(streetIds,openIds)
    .execute()
    .then(function(proItems) {
    var test = proItems.results;
    addPin2Map(test);
    loadStadiumInfoGrid(test);
    myapp.activeDataWorkspace
    .WCF_RIA_ServiceData
    .RiaEcostatusQuery(streetIds,openIds)
    .execute()
    .then(function(proItems) {
    var test = proItems;
    and the query code in server :
    partial void CombindedStadiumQuery_PreprocessQuery(string streetPara, string openPara, ref IQueryable < CombinedStadiumItem > query) {
    var street = ParseParaStr(streetPara);
    if (street != null) {
    query = query.Where(e => street.Contains(e.Street));
    var open = ParseParaStr(openPara);
    if (open != null) {
    //when I try to access "EcoStatus" property in "CombindedStadiumItem" table,it throws error
    query = query.Where(e => e.EcoStatus.Any(eco => open.Contains(eco.OpenStatus)));
    //when I try to access "Stadium" property in "CombindedEcoStatusItem" table,it throws error
    partial void RiaEcostatusQuery_PreprocessQuery(string streetPara, string openPara, ref IQueryable < CombindeEcoStatusItem > query) {
    var street = ParseParaStr(streetPara);
    if (street != null) {
    //when I try to access "Stadium" property in "CombindedEcoStatusItem" table,it throws error
    query = query.Where(e => street.Contains(e.Stadium.Street));
    var open = ParseParaStr(openPara);
    if (open != null) {
    query = query.Where(e => e.EcoStatus.Any(eco => open.Contains(eco.OpenStatus)));
    Now, I can not get "CombindedEcoStatusItem" that related selected "CombindedStadiumItem" respectively.
    How can I  get related entities when I use lightswitch RIA service in  HTML Client query?
    Thanks!!!

    How to write to the event log is not a WPF topic. Please ask C# questions in the C# forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    There is an example of how to the event log using C# code available here:
    https://support.microsoft.com/en-us/kb/307024?wa=wsignin1.0
    This sample code should work:
    string sSource;
    string sLog;
    string sEvent;
    sSource = "My application name";
    sLog = "Application";
    sEvent = "Log initialization";
    if (!System.Diagnostics.EventLog.SourceExists(sSource))
    System.Diagnostics.EventLog.CreateEventSource(sSource, sLog);
    System.Diagnostics.EventLog.WriteEntry(sSource, sEvent);
    System.Diagnostics.EventLog.WriteEntry(sSource, sEvent,
    System.Diagnostics.EventLogEntryType.Warning, 234);
    The event will get added to Event Viewer->Windows Logs->Application.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread in the appropriate forum if you have a new question. And please don't ask several questions in the same thread.

  • [CS3 Win]: How to get active spread and layer ?

    How to get the active spread and layer in an Indesign CS3 document?

    I found the answer (I wanted active spread and page):<br /><br />active Spread:<br />InterfacePtr<ILayoutControlData> layoutControlData(gContext->GetContextView(), UseDefaultIID());<br />UIDRef uidRefSpread = layoutControlData->GetSpreadRef();<br /><br />active page:<br />UID uidMyPage = layoutControlData->GetPage();<br />UIDRef uidRefPage(fCHMLDocRef.GetDataBase(), uidMyPage);

  • How to get text position in a pdf?

    I need to get text position such has width, height, x, y and base position in a pdf.
    Can one help me to work further.

    i solved PDEForm issue thank you. Now i need to get the text from PDEElement.
    Can you help for this?
      PDEElement pdeElement;
        ASInt32 numElems = PDEContentGetNumElems (pdeContent);
        ASFixedRect bBox;
        for (ASInt32 i = 0; i < numElems; i++) {
            pdeElement = PDEContentGetElem (pdeContent, i);
            if (PDEObjectGetType((PDEObject)pdeElement) == kPDEForm)
                PDEForm form = (PDEForm)pdeElement;
                PDEContent content = PDEFormGetContent(form);
                GetCoOrdinate(content);
            else if(PDEObjectGetType((PDEObject)pdeElement) == kPDEText)
                PDETextState objPDETextState;
                PDEText aotextObject;
                memset(&objPDETextState, 0,sizeof(PDETextState));
                aotextObject = (PDEText)pdeElement;
                PDETextGetTextState(aotextObject,kPDETextRun,0,&objPDETextState,sizeof (PDETextState));
                if(objPDETextState.renderMode == kPDETextInvisible)
                    AVAlertNote("Invisible");
                else
                    PDEElementGetBBox (pdeElement, &bBox);
                    os.str("");
                    os << ASFixedRoundToInt32 (bBox.top) <<":" << ASFixedRoundToInt32 (bBox.bottom) << ":" << ASFixedRoundToInt32 (bBox.left) << ":" << ASFixedRoundToInt32 (bBox.right);
                    AVAlertNote(os.str().c_str());
            else
                os.str("");
                os << "Type: "<< PDEObjectGetType((PDEObject)pdeElement);
               // AVAlertNote(os.str().c_str());
                // Get the bounding box of the PDEElement and fill out the
                // selection structure to highlight the image.
                PDEElementGetBBox (pdeElement, &bBox);
                os.str("");
                os << ASFixedRoundToInt32 (bBox.top) <<":" << ASFixedRoundToInt32 (bBox.bottom) << ":" << ASFixedRoundToInt32 (bBox.left) << ":" << ASFixedRoundToInt32 (bBox.right);
                //AVAlertNote(os.str().c_str());

  • How to get the position of a tag in XML,when i am using the org.xml.sax

    Hi,
    I am able to parse a xml document.I want to get the position of a tag in the document.So that by keeping that as reference, i can access other tags.Plz help me.I am using org.xml.sax API.

    Hello Friends
    After research , I could also find another way to check the existence of a node .We can even use CHOOSE to check the existence.
    <xsl:choose>
          <xsl:when test="(/mynode)">
              your action if the mynode is found
          </xsl:when>
          <xsl:otherwise>
                    action if mynode is not found
          </xsl:otherwise>
    </xsl:choose>
    Thanks.
    Wishes
    Richa

  • How to get manager position via hrp1001?

    Hello
    lets say that i have worker number and i need is manager number.
    i think that via 4 selections i can get his boss.
    1st find position of work
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'P'
      and objid = '50000666' "
    and relat = 008
      and rsign = 'A'
      and sclas = 'S'.
    2nd find unit of position
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'S'
      and objid =  lv_sobid
    and relat = 003
      and rsign = 'A'
      and sclas = 'O'.
    3rd want to find manager of unit
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'O'
      and objid = 'lv_sobid'
      where otype = 'S'
      and objid =  lv_sobid
    and relat = ? // i thought 012 but it is giving me 2 actual positions
      and rsign = 'A'
      and sclas = 'S'.
    4th I want to find the worker of the manager position
    SELECT SINGLE sobid
      INTO lv_sobid
      FROM hrp1001
      where otype = 'S'
      and objid = lv_sobid
    and relat = ?
    and rsign = 'A'
      and sclas = 'P'.
    Thanks in advance
    Avner
    Moderator message: only one open thread per issue, please.
    Edited by: Thomas Zloch on Aug 22, 2011 10:05 AM

    Hi
    Use the Function Module : RH_GET_LEADER to get the Manager's Position.
    Go through the FM : RH_GET_LEADER documentation for more information.
    OR
    DATA: it_result LIKE swhactor OCCURS 0.
    DATA: wa_result LIKE swhactor.
    DATA: l_employee_position TYPE objid VALUE '20000022'.
    DATA: l_manager_position TYPE objid.
    CALL FUNCTION 'RH_STRUC_GET'
      EXPORTING
        act_otype              = 'S'
        act_objid              = l_employee_position "This is employee's position
        act_wegid              = 'A002'
      ACT_BEGDA              = SY-DATUM
      ACT_ENDDA              = SY-DATUM
       act_tdepth             = 2
    TABLES
       result_tab             = it_result. "This table will hold manager's position
    IF sy-subrc = 0.
      READ TABLE it_result INDEX 1 INTO wa_result.
      WRITE: wa_result-objid.
    ENDIF.
    Regards,
    Sree
    Edited by: Sreeram Kumar Madisetty on Aug 22, 2011 8:26 AM

  • How to get only the selected layer data?

    Hi All,
              I'm using dissolve sample plugin. I added two layers in photoshop both of different dimensions, say 1000 * 1000 & 2000 * 2000. Now I select the layer with 1000 * 1000 dimension and click on Dissolve plugin. The preview image what is shown in dissolve plugin dialog is not just the selected layer, but also some extra pixels around the selected layer.
    Do I need to set any flag for getting only selected layer data to display in preview?
    Also I need to get only the selected area in a particular layer. When I checked FilterRecordPtr, haveMask flag is TRUE if the part of the layer is selected. But how do I get only the part of the layer that is selected for displaying preview image?
    Please let me know if the description is not clear.
    Thanks,
    Dheeraj

    Thanks Tom Ruark for the response.
    That is exactly the same thing what I'm seeing.
    1.Is there a direct way to know the bounds of the layer without the transparency grid so that I can show only the layer?
    2. If I select an area of 50*50 within a layer(1000*1000) using Rectangular Marquee tool, then I want only that selected area to be shown in preview. For this there is a haveMask flag which indicates whether or not there is selection, but the selected bounds are not available. I'm currently calculating the bounds. I just wanted to know if Photoshop SDK has any field for getting the bounds?

  • How to get current position in SAPscript?

    Hi gurus,
    I am now having to draw the BOXs which are not fix in the SAPscript ,( This depends on data line ) , In my case the form is QM_INSP_RESULT , Here I want that for each "Inspection control" I will draw a box , In an inspection lot there are many Inspection controls , So here to draw the BOX , The XPOS is fixed , but the YPOS will vary . In the standard we use &uline(100) & , Here I want to replace &uline(100) & with the command BOX ...., So how can i get the current position of the current line in SAPscript ? Is there any way to do this ?
    Thanks ...

    indexOf(int ch)
    Returns the index within a string of the first occurrence of the specified character.

  • How to Get Cursor Position in a Table

    Hi Experts,
    I have a table, with input fields. I have a button to add as many rows as I want. For the second column I have
    a OVS. Now assume I have added 3 rows and I want to edit the first row again. So I click the first row and click
    on the OVS selector, and finally when I select a value in the OVS it comes to the Third row, that is the row
    with the Lead Selection. How do I get it to come in the first row?

    Hi Murli,
                 If I understand your requirement correctly, you have table which has OVS for one field. If this problem is only because of leadselection you can disable the lead selection by setting selectionMode property of the table to none. Try it out once.
    But I guess the problem might be different, you can try  like this.
    Create a child node for the table node with Cardinality 1...1 Singleton     false
    Create the attribute and impliment OVS and bind this to your second column of the table.
    Regards,
    Siva

Maybe you are looking for

  • Question of displaying Task Flow Region in Master-Details pattern

    We have a master-details page. There is a region on the details pane along with other widgets and the content of that details pane including the region depends on the row selection on the master table list. The first time page loads with no row selec

  • Positioning of monitor and (dis)ability to move certain windows

    I just got a LCD TV with DVI which I connected to my MBP. at first I had it on the table positioned to the right. All windows could move back and forth just fine. but, to save table space I mounted the TV to the wall just above my MBP and reset the p

  • [Solved] GS60 - Windows 8 - Screen Goes Blank But Sound Continues

    Typically about 1-2 seconds after the windows signup screen, the screen goes blank but you can still hear beeps of the pc loading. Then, only sometimes, white lines flash horizontally across the screen.  My only choice at this point is to do a hard s

  • Thunderbolt to ethernet - Network printing

    Hi there, I'm currently trying to get an employees Macbook pro 13" Retina 2013 integrated with a windows network. So far I have manged the boot camp installation and all other services have been integrated successfully; however it seems that our netw

  • Customer master feilds

    Hi Gurus, Is there somewhere in the customer master in core R3 that we can store the longitude and latitude values for the address of a customer? If it is not standard what options to I have? Any suggestions will be rewarded. Thank You