Forum Replies Created

Page 4 of 4
  • Nathan Clark

    May 29, 2009 at 2:48 am in reply to: convert a 3d layer’s orientation to rotation

    Hey Dan
    Your workaround is great, thanks!

    It seems though, that the below script will only run on the topmost selected layer, not all of them, is there a tweak we could make so as to ensure the script applies to all selected layers?

    {
    var myLayer = app.project.activeItem.selectedLayers[0];
    var temp = myLayer.property("orientation").value;
    myLayer.property("xRotation").setValue(temp[0]);
    myLayer.property("yRotation").setValue(temp[1]);
    myLayer.property("zRotation").setValue(temp[2]);
    myLayer.property("orientation").setValue([0,0,0]);
    }

    Thanks heaps,

    Nathan

    On Point Cloud Nine

  • Nathan Clark

    May 27, 2009 at 5:59 am in reply to: convert a 3d layer’s orientation to rotation

    Okay so what if the layer has rotation and orientation values set, and i need to convert it to just rotation values…

    Need a script that looks at a 3d layers rotation and orientation values and bakes them into rotation values only.

    Perhaps to make it usefull to a broader range of applications there could be a choice between baking to Rotation or baking to Orientation.

    Anybodies help with this would be spectacular!

    On Point Cloud Nine

  • Nathan Clark

    May 27, 2009 at 5:52 am in reply to: Covert 3d Orientation values to Rotation Values

    I thought I had solved the problem with help from a few forums,

    Now I realize the problem is deeper.

    My end goal would be a script that looks at a 3d layers rotation and orientation values and bakes / merges them into rotation values only.

    Does that make any sense lol?

    Thanks

    On Point Cloud Nine

  • Nathan Clark

    May 25, 2009 at 4:19 pm in reply to: convert a 3d layer’s orientation to rotation

    Checked Scripting section of motionscript and worked it out…

    Thankyou so much!!

    hmm scripting looks fun!!

    I love the scripts that I have so much in fact that I customized the launch pad to accommodate them!

    On Point Cloud Nine

  • Nathan Clark

    May 25, 2009 at 3:28 pm in reply to: convert a 3d layer’s orientation to rotation

    Dan,

    You are the man!!

    That’s twice you’ve saved me now,

    I owe you big time!

    Do you have a donations system through motionscript you could refer me to?

    I think all your hard work and support to the community deserves some repayment!

    By the way,

    Would it be WAY harder to include in the script a way to undo the entire operation rather than having to undo multiple times to get back where I started?

    Thanks so very much

    –Nathan

    On Point Cloud Nine

  • Nathan Clark

    May 25, 2009 at 10:55 am in reply to: Covert 3d Orientation values to Rotation Values

    Will Do,

    Thanks heaps!

    –Nathan

    On Point Cloud Nine

  • Nathan Clark

    April 18, 2009 at 1:24 pm in reply to: Checkbox + Interpolation Problem

    Hey Dan

    Okay Wow,
    Its so simple
    I worked it out!!
    when the interpolation methods finally made sense it was an amazing moment!
    I was having difficulty understanding the relationship between the inputs but then suddenly it all clicked!
    wow, what a powerful function!

    I am on the right track now

    Thanks for you help and time!

    Best wishes

    Nathan Clark

    (PS.
    is it normal to get so excited about a line of code. I am smiling so hard my cheeks hurt… and over an expression… what a geek).

  • Nathan Clark

    April 18, 2009 at 12:42 pm in reply to: Checkbox + Interpolation Problem

    Hey Dan,

    Thanks for your fast response!
    After having the night to think about it I have come to realize I could simplify my needs and even improve the function of my expression..

    All I need is a slider that will control the interpolation between my 2 values (v3 and B3)

    So for example if the Slider is at zero, my value will be v3 and if slider is 100 my value will be b3.

    Is this possible?

    Again, Thank You very much for you attention!

    Kind Regards,

    Nathan

    (PS.
    Please let me know if you would like me to elaborate on the context of this expression in relation to my project.)

Page 4 of 4

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy