Move a layer of texture on a plane

Hello

I've got 2 textures on a plane.
(1) the base repeated everywhere on the plane, texture
(2) a bitmap with a circular alpha channel

I want to be able to move the circle around the aircraft:

so it all works very well generate the circle:

Member ("scene2"). Shader ("planeShader"). TEXTURELIST [2] = MEMBER("SCENE2").texture ("Circle1Texture")
.blendFunctionList Member ("scene2"). Shader ("planeShader") [2] = #blend
.blendSourceList Member ("scene2"). Shader ("planeShader") [2] = #alpha
.textureRepeatlIST Member ("scene2"). Shader ("planeShader") [2] = FALSE
Member ("scene2"). Shader ("planeShader") .textureTransformList [2] .scale = vector (0.6, 0.6, 1)
Member ("scene2"). Shader ("planeShader"). TextureTransformList [2] .position = vector (0.00, 0.00, 0.00)

but when I try to move it by using the same line with numbers inside
Member ("scene2"). Shader ("planeShader"). TextureTransformList [2] .position = vector (50.00, 50.00, 0.00)

the circle disappears just entire aircraft?

The plan is 2000 x 2000 so a movement of 50 should not move the plane. (I tried a series of numbers from 1 to 1000)

any ideas anyone? -can we see why it does not work?

see you soon
Jez.




Quote:
Posted by: Jez C
but when I try to move it by using the same line with numbers inside
Member ("scene2"). Shader ("planeShader"). TextureTransformList [2] .position = vector (50.00, 50.00, 0.00)
the circle disappears just entire aircraft?
The plan is 2000 x 2000 so a movement of 50 should not move the plane. (I tried a series of numbers from 1 to 1000)

The translation vector must be between vector(-1,-1,0) and vector (1,1,0).
So... in your case:
Member ("scene2"). Shader ("planeShader"). TextureTransformList [2] .position = vector (50.0000/2000, 2000/50.0000, 0)
That's all.

Tags: Director

Similar Questions

  • Move the layer to the photo above

    How to move the layer to the photo above

    Hi Melp,

    I don't know if he has a plan for this purpose in the future, but right now that isn't possible in the draw.

    Sue.

  • move the selection to the new work plan

    Hi guys,.

    I'm new to Illustrator script but I have done some in InDesign.

    I want a script to move a selection to a new work plan and be able to name the work plan.

    I can't find something in the DOM as artboards.add ().

    Any help?

    Hi jakec88782761,

    are what version of picture you?

    Working with work plans is possible since CS4 +.

    Here's a simple example in [JS]

    var AB_1 = activeDocument.artboards.add([0,50,200,0]);
    AB_1.name = 'first quadrant';
    var AB_2 = activeDocument.artboards.add([-200,50,0,0]);
    AB_2.name = 'second quadrant';
    var AB_3 = activeDocument.artboards.add([-200,0,0,-50]);
    AB_3.name = 'third quadrant';
    var AB_4 = activeDocument.artboards.add([0,0,200,-50]);
    AB_4.name = 'fourth quadrant';
    

    Have fun

  • When I try to move the layer switches

    HELO when I try to move a layer on the Web it photoshop cs6 has recently begun to move the selection to the top layer make me move instead, sick reclick so it does again the only way I can move layers is if I move to the section at the top or bottom of the ideas?

    If I understood your question,

    Select the tool move and from the options bar check ""automatic selection " on."

  • Move a layer with a speed controlled by a slider.

    I would like to move a layer (X position) with a speed controlled by a slider of retouching. This would be trivial if AE script supported certain types of global variables. I would just like to add the current speed * frameDuration to the previous value. Any ideas on how this could be achieved given that the AE does not "remember" previous images?

    Expression of speed and frequency

    Mylenium

  • Move a layer from one document to another, I get the error message that the layer is empty

    When I copy a layer from one document to another in PS CC 2015.5 and then try to move the layer in the destination document, I get the error message that the layer is empty.  It is not empty and I checked several times and checked that the layer is not empty.  I have never had this problem before and wonder if something has changed in CC 2015.5.

    Thanks to all who responded.  I think the problem was that I was using the NEF files and that he had not yet renamed PSD files.  Copy the layer in the destination document, but when I tried to move the layer in the destination document, I received the error message.  Apparently, he was copying the layer but there not then recognize the NEF format.  Once I saved both documents to the PSD, then the program behaved normally.  I appreciate your all of the help.

    Sue

  • How to move a layer over another layer uisng jsx?

    Hello guys,.

    can some tell me how do to move a layer to the top another layer using jsx script?

    Hi John,.

    Try this Code...

    var doc=app.activeDocument;
    var moveLayer = doc.activeLayer;
    var targetLayer = doc.layers[0];//say topmost layer;
    moveLayer.move(targetLayer,ElementPlacement.PLACEBEFORE);
    doc.activeLayer=targetLayer;
    //SelectionLayer;
    var laySB=doc.activeLayer.bounds;
    doc.selection.select([[laySB[0],laySB[1]],[laySB[2],laySB[1]],[laySB[2],laySB[3]],[laySB[0],laySB[3]]], SelectionType.REPLACE, 0, false);
    doc.activeLayer=moveLayer;
    align('AdCV');
    align('AdCH');
    doc.selection.deselect();
    
    function align(method) {
      var desc = new ActionDescriptor();
      var ref = new ActionReference();
      ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
      desc.putReference( charIDToTypeID( "null" ), ref );
      desc.putEnumerated( charIDToTypeID( "Usng" ), charIDToTypeID( "ADSt" ), charIDToTypeID( method ) );
      try{
      executeAction( charIDToTypeID( "Algn" ), desc, DialogModes.NO );
      }catch(e){}
    }
    
  • I just want to move a layer of document in Photoshop to another document that has a visible tab in the upper area

    I just want to move a layer of document in Photoshop to another document that has a visible tab in the upper area

    Ensuring that the layer is active, Ctrl (Cmd on Mac) + A to select all. CTRL (Cmd) + C to copy. Switch to the other document. CTRL (Cmd) + V to paste.

  • How can I stop the kick/kick to move a layer up?

    Whenever I use the movement or move the tool, Photoshop will move the layer to the top of the artboard. Why would he do that? If I wanted to move the layer to the top, I would have. I'm just trying to move the layer.

    How can I avoid that Photoshop do this?

    Nevermind, I solved this problem. The problem is that when I did drag a layer to the bottom of the stack of layers, Photoshop it moved outside of the artboard. When you move it, Photoshop he retreated inside the artboard, in the upper part.

  • Move the layer up

    Can someone help with the following.

    I want to be able to count the total number of layers in the document, and move the active layer to the top of the stack.

    Using this code by Davide is ok, but it assumes you want to move the layer to position 2

    function s2t(s) { return app.stringIDToTypeID(s); }; 
    
    var d1 = new ActionDescriptor(); 
    var r1 = new ActionReference(); 
    var r2 = new ActionReference(); 
    
    r1.putEnumerated( s2t('layer'), s2t('ordinal'), s2t('targetEnum') ); 
    d1.putReference( s2t('target'), r1 ); 
    r2.putIndex( s2t('layer'), 2 ); 
    d1.putReference( s2t('to'), r2 ); 
    d1.putBoolean( s2t('adjustment'), false ); 
    d1.putInteger( s2t('version'), 5 ); 
    executeAction( s2t('move'), d1, DialogModes.NO );
    
    

    Rather something like this:

    activeDocument.activeLayer.move( activeDocument, ElementPlacement.PLACEATBEGINNING );
    

    Have fun

  • Move the layer setting to another file

    In Photoshop, is there a way to move a layer of setting to another file WITHOUT having to extract the files to the workspace on the side and drag and drop the layer?

    Layer > duplicate layer

    Edit: But even tabs you should be able to manually drag their course to another file. Could you please post a screenshot to illustrate your question?

  • I can't move a layer with the mouse.

    I can't move a layer with the mouse. Only using the arrow. This happened two days ago and could not get the right set of return I guess. Until I'm able to move a layer with the mouse and arrow keys. When you move the layer with the mouse you he almost jumps back to the original space. I'm only using a bluetooth mouse, wired keyboard with a macbook from apple.

    Photoshop Elements does not respond when you use Mac OS X 10.10 editing tools

  • Move the layer but keep anchor still

    Hi, I know that I can use the Pan behind tool to move a layer anchor point. Now for adjustment purposes that I need to move the layer, but keep the anchor point where it is... otherwise it changes the path of the animation. Is this possible?

    Kind regards

    Frank

    I guess you have your animation path and you want to change the position of the layer to this track. If you simply position keyframes adjust anchor point values in the timeline panel. You can click and drag on the values, so that you can see the movement of the layer from the path.

    If you have animated a layer by setting keyframes in the anchor point so that you can change the relative position of the layer by rubbing through the position values in the timeline panel.

    If you have animated the two position and anchor, then you can open the layer in the layer panel, reveal the path of the anchor, select all the keyframes of an anchor in the scenario, click and drag on any keyframes the anchor to drag all this without creating a new keyframe. You can see and move keyframes from the plug-in position which has properties of position in the layer window and do the same thing.

    You can use the same select all the keyframes in the technical timeline to recover and move a path any position in the composition window.

    If this doesn't give you a solution I don't understand your problem.

  • Newbie question - how to move a layer with the effect of deformation without changing the distortion?

    For example, to move a layer with an effect of training as well as his training center, so I don't have to make the corresponding calculations Center ripple and position.

    GSIDesign wrote:

    ... the two methods roughly the same result but are very different when you move the training center now.

    Thanks for the tip of the expression.

    If the mask is exactly the same size and shape as the shape layer, then you should get the same results.

  • Move the layer, but keep the layer in the Web?

    Can someone help me?

    I'm not exactly sure how to describe my question correctly. But what I want is that when I move a layer selected example to the left I want parts that normally goes outside the canvas to appear to the right.

    You want to wrap around to select the layer, and then use the menu Filter > other > offset in its dialog box enable wrap around using the sliders or type a pixel count more or less number for vertical and horizontal offsets. Works even on Basemap layers. Layer must be a raster layer, if there is a layer mask, I think more often than you would like it linked layers also content or you can use the offset on the mask or the content.

Maybe you are looking for

  • How to remove Babylon as my default search engine?

    I removed from the control panel/programs/uninstall. It does not appear on Firefox-tools/add-ons/extensions or plugins. Yet, every time I click on 'new tab' is the default search engine. I also removed a cookie called Babylon. Still apears.

  • Tecra series - battery charging status always shows 70%

    When unplugged battery power meter indicates 70% if the battery if fully charged or discharged. Used to work fine but just stopped. Looking for drivers, but couldn't find

  • The way heart rate monitor works in watch

    I have been using shows since the first day he appeared in Spain. Latest operating system installed os shows 2. I usually run, leave, for example, 4-5 days a week. Sometimes in one race track, other running the streets. In November, I discovered some

  • continues to stop watching the video on youtube?

    watching the video on youtube, video will stop after 1 or 2 minutes and he will no longer play even trying to click on the play or pause buttons and video turns into full screen. When pressing ESC button screen will return to normal, but does not pla

  • Computer does not recognize the phone when connected via USB

    original title: usb recogonozation I want to connect my phone to my pc via the usb port but its upcoming Dungeon with an error stating that my device has mafunctioned or he stopped window. can someone pls tell me what to do? Thank you very much