Syntax problem: Apply rotation
- Jakob Andersen
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
15 years 3 months ago #3718
by Jakob Andersen
Replied by Jakob Andersen on topic Re:Syntax problem: Apply rotation
That did the trick!
On to the next one
Best regards,
Jakob
On to the next one

Best regards,
Jakob
- kwou
-
- Offline
- Moderator
-
15 years 3 months ago #3759
by kwou
Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)
--
kind regards - kees
Replied by kwou on topic Re:Syntax problem: Apply rotation
Hoi Jakob
Did you have any success on changing the centre of the rotation vector? Still curious whether that option is working correctly at your site... If the rest is operating as expected of course.
kind regards - kees
Did you have any success on changing the centre of the rotation vector? Still curious whether that option is working correctly at your site... If the rest is operating as expected of course.
kind regards - kees
Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)
--
kind regards - kees
- Jakob Andersen
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
15 years 3 months ago #3760
by Jakob Andersen
Replied by Jakob Andersen on topic Re:Syntax problem: Apply rotation
Hi Kees,
Seing that my problem had a rotational centre at (x,y,z)=(0,0,0), I just commented out the "CENTRE" command.
I will give it a go when I get a moment for extra curricular activities
BR,
Jakob
Seing that my problem had a rotational centre at (x,y,z)=(0,0,0), I just commented out the "CENTRE" command.
I will give it a go when I get a moment for extra curricular activities

BR,
Jakob
- Jakob Andersen
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
15 years 1 month ago #4011
by Jakob Andersen
Replied by Jakob Andersen on topic Re:Syntax problem: Apply rotation
...Some time after;
I've finally gotten to testing whether or not changing the centre of rotation using the CENTRE command has any effect - and it seems that the change does nothing. BTW - I am in 9.4.
Alas, I now have a derived problem. In defining a rotation, one applies it to the whole model, imposing a rotation around a predefined axis. Due to gravitational loading, such an axis is not a correct way of describing the rotation of my model (it will cause an instability). I have attempted to describe this better in the figure below (EDIT: Cannot upload picture for some reason).
Fig. 1 shows a structure without gravitational loading. Fig. 2 shows the structure as it should be - with gravity applied.
In Fig. 3 i propose a way of rotating the structure by only imposing a rotation on two dummy volumes.
Any inputs on how to solve this problem?
Thanks!
Best regards,
Jakob<br /><br />Post edited by: Jakob Andersen, at: 2010/03/22 12:00
I've finally gotten to testing whether or not changing the centre of rotation using the CENTRE command has any effect - and it seems that the change does nothing. BTW - I am in 9.4.
Alas, I now have a derived problem. In defining a rotation, one applies it to the whole model, imposing a rotation around a predefined axis. Due to gravitational loading, such an axis is not a correct way of describing the rotation of my model (it will cause an instability). I have attempted to describe this better in the figure below (EDIT: Cannot upload picture for some reason).
Fig. 1 shows a structure without gravitational loading. Fig. 2 shows the structure as it should be - with gravity applied.
In Fig. 3 i propose a way of rotating the structure by only imposing a rotation on two dummy volumes.
Any inputs on how to solve this problem?
Thanks!
Best regards,
Jakob<br /><br />Post edited by: Jakob Andersen, at: 2010/03/22 12:00
- Jakob Andersen
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
15 years 1 month ago #4014
by Jakob Andersen
Replied by Jakob Andersen on topic Re:Syntax problem: Apply rotation
- Cavin
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
14 years 3 months ago #5193
by Cavin
cavinbill115
Replied by Cavin on topic Re:Syntax problem: Apply rotation
sorry, I should add something useful in a general sense too:
The "properties" of a timeline, like _x or _rotation, are not really handled as properties in the other senses of actionscript. For example, say I have a constructor:
function someObject(name){
this.name=name;}
If the constructor is "called" using the "new" keyword,
myPlate=new someObject("empty");
then the object "myPlate" has the property, "name", which is accessed in actionscript as:
myPlate.name
Now, one can access the "properties" of a MovieClip object in the same manner, just as you have, by specifying the path and property identifier, as in:
_root.myMovieClip._rotation
and this is legal syntax. However,
It appears that the actual script processing of this type of access to movieClip properties actually amounts to a "call" to getProperty or setProperty. The result is, until actionscript processing changes with some rev or new release, that this:
_root.myMovieClip._rotation=50;
takes "longer" to execute than does:
setProperty(_root.myMovieClip,_rotation,50);
In a normal setting, this difference in execution times won't have any impact on the presentation. If, however, the presentation contains enough processing requirement to threaten degradation of the frame rate, then small execution time differences between methods of access might be critical to maintaining the frame rate.
Hope that adds something other than just a code fix.
The "properties" of a timeline, like _x or _rotation, are not really handled as properties in the other senses of actionscript. For example, say I have a constructor:
function someObject(name){
this.name=name;}
If the constructor is "called" using the "new" keyword,
myPlate=new someObject("empty");
then the object "myPlate" has the property, "name", which is accessed in actionscript as:
myPlate.name
Now, one can access the "properties" of a MovieClip object in the same manner, just as you have, by specifying the path and property identifier, as in:
_root.myMovieClip._rotation
and this is legal syntax. However,
It appears that the actual script processing of this type of access to movieClip properties actually amounts to a "call" to getProperty or setProperty. The result is, until actionscript processing changes with some rev or new release, that this:
_root.myMovieClip._rotation=50;
takes "longer" to execute than does:
setProperty(_root.myMovieClip,_rotation,50);
In a normal setting, this difference in execution times won't have any impact on the presentation. If, however, the presentation contains enough processing requirement to threaten degradation of the frame rate, then small execution time differences between methods of access might be critical to maintaining the frame rate.
Hope that adds something other than just a code fix.
cavinbill115
Moderators: catux
Time to create page: 0.132 seconds