Graphics

 View Only
  • 1.  Rotating a baseObject

    Posted 01-29-2021 01:44

    Hello,

    I'm trying to rotate an object in c# using _object.SetRotXYZ(0,0, degrees) and when I check the value it is the same before and after the call.  The on screen object, of course, doesn't rotate.  

    I'm able to use other api calls to set the position and the colour but not the rotation.

    thanks

    dave

     



  • 2.  RE: Rotating a baseObject

    Posted 01-29-2021 03:45

    Hello,

    I tried _object.RotZ = degrees and I see that is sets it to the correct rotation but it resets back to what was originally in the file.

    thanks

    dave


    #XPression


  • 3.  RE: Rotating a baseObject

    Posted 02-01-2021 11:54

    Just a guess without looking at the project but do you have an animation with keyframes on somewhere in the project that might be conflicting with what you are scripting? 


    #XPression


  • 4.  RE: Rotating a baseObject

    Posted 02-01-2021 17:15

    Hi,

    I did check that and there wasn't.  The issue was that someone had put some visual logic accessing the same object so the two instructions conflicted.

    thanks for your insight!


    #XPression