JobW

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 44 total)
  • Author
    Posts
  • in reply to: Data Exporting from machine #14214
    Avatar
    JobW
    Participant

    Hi,

    See this video: https://www.youtube.com/watch?time_continue=420&v=7sMyptzTXdA

    Otherwise, you can use a python script that exports something to a CSV file.

    Regards,

    in reply to: How to use python #11812
    Avatar
    JobW
    Participant

    When I started with VC I couldn’t program at all.

    I first learned myself python with online tutorial (let’s say a month) before using Python in VC.
    From my own experience, I can say that it would be very wise if you first learn python.

    A basic understanding helps a lot if you run into some bugs and Python is also very helpful outside of VC you can use for a lot of different stuff too.

     

    in reply to: How to get the script name from python? #11644
    Avatar
    JobW
    Participant

    Yes, that’s true, it was a lazy copy-paste action from my script haha!

    Normally instead of print I define it as a variable (and without .Name)

    Good addition!

     

    in reply to: How to get the script name from python? #11619
    Avatar
    JobW
    Participant

    Hi,

    To find the name of the script that you are in right now you can use this:

    if you want to add a signal to the script you are in right now you can use:

    I hope this helps, if not, let me know!

    in reply to: Blockify and Cylindrify features from Python? #8830
    Avatar
    JobW
    Participant

    Good to hear that the provided solution works for you!

    Good luck!

    in reply to: Blockify and Cylindrify features from Python? #8812
    Avatar
    JobW
    Participant

    Hi,

    Okay let’s try something!

    In your program files folder browse to:

    Visual Components Professional 4.1\Python\Commands\vcHelpers\Geometry.py

    On line 285 and on line 328 are two functions defined with the name that looks like something that we need.

    Okay so let’s dig deeper: both need a triangle set. So you know it will only work with Geometry features and not with default blocks and cylinders.

    Now the Python part.

    and if you execute this code, your geometry will by cylindrified.

    Regards,

    in reply to: VcMatrix #8390
    Avatar
    JobW
    Participant

    Thanks, will look into it!

    Avatar
    JobW
    Participant

    I can’t do that!

    Maybe you can give a reply to the support ticket you’ve created with this fix?

    Avatar
    JobW
    Participant

    Hi,

    I think I’ve found a workaround for you.

    If you open the Python script of the picture frame and change line 49 from:

    mat.OpacityType = VC_MATERIAL_TRANSPARENCY_CONSTANT

    to:

    mat.OpacityType = VC_MATERIAL_TRANSPARENCY_MAP

    you can have a picture behind transparent material again.

    Maybe someone from VC can change this and update it in the eCatalog?

    Regards

    in reply to: Paletizing over a Conveyour Straight #7965
    Avatar
    JobW
    Participant

    Oke the geometry is now imported.

    However, I can’t get your simulation up and running.

    I’m not good with robotics so I’ll hope that someone can help you with this issue!

     

    in reply to: Paletizing over a Conveyour Straight #7959
    Avatar
    JobW
    Participant

    Hi,

    Can you try saving the layout including the boolean “Save Components”?  A lot of geometry is missing and I can’t see anything moving.

    Can you explain how you grab the part(s)?

    Regards,

     

    in reply to: control the start and stop of the robot #7680
    Avatar
    JobW
    Participant

    @eme

    True, but if you want to map multiple signals at once,  an interface can come in handy.

    However, I think that @laiba can choose what suits his/her problem the best.

    in reply to: control the start and stop of the robot #7674
    Avatar
    JobW
    Participant

    I think you need to create a one-to-many interface and connect the signals through that interface. From there one you can do something like: triggerCondition(lambda: getTrigger() == signal and signal.Value) where signal is the signal object

    Cheers

    Avatar
    JobW
    Participant

    Ah snap, one minute late, or just what @eme said 😉

    Avatar
    JobW
    Participant

    Hi,

    I think this occurred inside the def OnSignal(): function.

    The OnSignal function is being called during run time, so while the code execution is for example somewhere in the def OnRun(): function the Onsignal function can be called. (I think in native Python this isn’t even possible)

    Things you can do in the onsignal function are thing like appending something to a list, calculate a math problem or do anything except waiting.

    Waiting examples are: delay(5) or condition(lambda: something), those things you can’t add in the OnSignal function.

    I hope this makes sense if not, please let me know

    Cheers

Viewing 15 posts - 1 through 15 (of 44 total)