No more acces to geom variable ?
3 posts • Page 1 of 1
No more acces to geom variable ?
Hi everybody,
I have a problem to acces to the "geom" property of a thruster when I try to put it in my script for example in the "force" script : {geom}.
I have the error :
170852 ms: - WARNING - Caught Exception: Not a real: undefined, source\script\Attributes.hpp:216: void script::TAttrib<float>::UpdateValueFromObject(const class SharedPtr<class script::Object> &,bool)
170852 ms: - WARNING - Failed to find name of ClassObject
170852 ms: - WARNING - force was bound to bad type. Restoring to last known value.
It seems that all "uneditable" variable are not accessible. But I remember that it was possible in Algodoo V 2.0.1, i'm now with V2.1.
Does some one has a solution ?
Thanks you !
I have a problem to acces to the "geom" property of a thruster when I try to put it in my script for example in the "force" script : {geom}.
I have the error :
170852 ms: - WARNING - Caught Exception: Not a real: undefined, source\script\Attributes.hpp:216: void script::TAttrib<float>::UpdateValueFromObject(const class SharedPtr<class script::Object> &,bool)
170852 ms: - WARNING - Failed to find name of ClassObject
170852 ms: - WARNING - force was bound to bad type. Restoring to last known value.
It seems that all "uneditable" variable are not accessible. But I remember that it was possible in Algodoo V 2.0.1, i'm now with V2.1.
Does some one has a solution ?
Thanks you !
- Jedjej
- Posts: 5
- Joined: Thu Feb 28, 2013 11:23 pm
Re: No more acces to geom variable ?
Please upload a copy of the scene, and the code you are trying to use, I don't think anything has changed which could be affecting this.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: No more acces to geom variable ?
So here are two scene :
The first is created with algodoo v2.0.1 :
The force of the thruster is egual to the geom number of the geometry it is attached to. That is what i'd like to do in the second scene.
But when i copy this code :
like in the v2.0.1 scene, i have the error cited in my first post.
The very strange thing is that when i open the v2.0.1 scene with algodoo V2.1 the code well appears in the script and works fine. But when i click to edit it and change nothing, i then have the error
It seems that the new compilator does not understand it
thanks for your help
The first is created with algodoo v2.0.1 :
The force of the thruster is egual to the geom number of the geometry it is attached to. That is what i'd like to do in the second scene.
But when i copy this code :
- Code: Select all
{
oo = readable(owner);
oo.geom
}
like in the v2.0.1 scene, i have the error cited in my first post.
The very strange thing is that when i open the v2.0.1 scene with algodoo V2.1 the code well appears in the script and works fine. But when i click to edit it and change nothing, i then have the error
It seems that the new compilator does not understand it
thanks for your help
- Attachments
-
script algodoo 2.1.phz- (6.49 KiB) Downloaded 23 times
-
script algodoo 2.0.1.phz- (7.23 KiB) Downloaded 24 times
- Jedjej
- Posts: 5
- Joined: Thu Feb 28, 2013 11:23 pm
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests



