question

anon-user avatar image
0 Likes"
anon-user asked anon-user commented

script more simply.

I want to write a script more simply.


I created a script to move the position of Processor1 10 meters in the X direction.

There are two lines, but is there a way to put them together in one line?



Object obj = Model.find("Processor1");

obj.location = obj.location + Vec3(10,0,0);





FlexSim 20.1.3
flexscriptflexsim 20.1.3script
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered anon-user commented

Try:

Model.find("Processor1").as(Object).location.x+=10;

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.