@simon
Active 1 year ago-
Simon replied to the topic indices of ROI in python scene in the forum Using SOFA 1 year ago
Thanks a lot @Hugo
-
Simon replied to the topic indices of ROI in python scene in the forum Using SOFA 1 year ago
I could think off 2 .pyscn files:
1st .pyscn
-create part of my scne with the roi
-initialize it
-animate for on time step
-get my indices, save them somehow2nd .pyscn
-import indices somehow
-continue/finish my createscene processOr is there already some more clever approach to this?
-
Simon replied to the topic indices of ROI in python scene in the forum Using SOFA 1 year ago
Thanks @Hugo,
I understand. But if I need the the list of indices in the creation of my scene how can I do this?
Is there something possible like:
– createScene() (until I need initialization)
– initialize()
– continue with createScene() ? -
Simon started the topic indices of ROI in python scene in the forum Using SOFA 1 year ago
Hi,
in my .pyscn I want to get the list of indices found in my ROI. In the sofa gui everything works perfectly fine. Doubleclicking on my boxROI, I can see the ROI is working and the found points/indices are listed. Also the following
FixedConstraint
with@box_roi_fix.indices
is working fine.But I want to get the list of indices by using
findDa…
[Read more] -
Simon replied to the topic How to import numpy in python scripting of SOFA? in the forum Using SOFA 1 year ago
-
Simon replied to the topic How to import numpy in python scripting of SOFA? in the forum Using SOFA 1 year ago
Hi @jnbrunet,
thanks for the fast reply, in the meantime I have installed python 2.7 and pip installed numpy into that.
sys.prefix
is the one I needed to check.Output in the runSofa console window:
[INFO] [SceneCheckerVisitor] Finished validating node “root”.
C:Python27
C:UsersswtouchSOFAv19.12.00binrunSofa.exe
['',…[Read more]
-
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year ago
Hi @damien-marchaluniv-lille1-fr,
now it is working. I have forgotten to get a python27 + numpy for the DeFrost SOFA version to work.
Now I can progress.
Thanks -
Simon replied to the topic How to import numpy in python scripting of SOFA? in the forum Using SOFA 1 year ago
Hi @Zahra,
I am having the same problem as you had. Good to see you have solved that.
– What do you mean by the default python? I have Anaconda2, Anaconda3 and a clean python 2.7, which one is the default? How do I find out?
– How can I find out which python my SOFA is using? I am so far using the precompiled SOFA binaries.
– How to change the…[Read more]
-
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year ago
Hi @Hugo,
okay cool, can I see your corresponding .pyscn file + .py(for the rotation, if you do so)?
I prepare another question because I’ve come up with something where my problem originates. maybe…
Thank you
-
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year ago
maybe I’ve messed up my TransformEngine I’ll have to check that first…
-
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year ago
Hi @Hugo,
aha ok, I understand it is not an error it’s a warning. So what I’ve build so far is the right way for my needs? And the fixedConstraint is not working properly in this case? Or have I done something wrong?
Maybe the TransFormEngine and the Constraint don’t work together well. I’ll try something in this direction, but in general I will…[Read more]
-
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year, 1 month ago
could it be the
/
andin the path strings?
-
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year, 1 month ago
sorry for the delay…
with the precompiled “DeFrost” Version of SOFA I get following erros, when running your example code. The “plugins/SoftRobots/docs/tutorials/FirstSteps” Tutorial however runs with no problem. What could be the problem?
[ERROR] [PythonScript] ImportError: cannot import name…
[Read more] -
Simon replied to the topic RigidMapping from Rigid3d to only some particles of FEMbody in the forum Using SOFA 1 year, 1 month ago
Hi @Damien, Hi @Hugo,
thanks for your help, I will have a try at your suggestions.
-
Simon posted a new activity comment 1 year, 2 months ago
now it is
thank you -
Simon posted a new activity comment 1 year, 2 months ago
so far I’ve got this link
https://www.sofa-framework.org/?post_type=topic&p=15215
telling me the topic is pending moderationbut the post is neither listed in PendingTopics nor can i find it under UsingSOFA
what else can i try?
-
Simon posted a new activity comment 1 year, 2 months ago
Hey thanks for the quick reply. Yes I will try that.
-
Simon posted an update 1 year, 2 months ago
@hugo Hello, and I am sorry to contact you on that way. But I have problems with my Forum Posts/Questions. They are not geting listed. I can’t find them. But I have this link:
https://www.sofa-framework.org/?post_type=topic&p=15210
Sorry, But it is happening again and again. What am I doing wrong.?-
Hey @simon this is a perfect way to contact us! no worries!
Could you try posting you message with a different (simpler) title: especially without specific symbols like “/” ?-
Hey thanks for the quick reply. Yes I will try that.
-
so far I’ve got this link
https://www.sofa-framework.org/?post_type=topic&p=15215
telling me the topic is pending moderationbut the post is neither listed in PendingTopics nor can i find it under UsingSOFA
what else can i try?
-
It should be fine now 😉
-
now it is
thank you
-
-
-
-
-
Simon became a registered member 2 years, 7 months ago
It should be fine now 😉
now it is
thank you