beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

CustomOp_v2 Op

Ops.Cables.CustomOp_v2


CustomOp
Namespace: Ops.Cables

Op author: stephan

code a custom op that will only be available in the current patch


summary (oneliner)

you can use any javascript code here, it will be bound to the
scope of the current op, which is available as op.

have a look at the documentation at:

https://docs.cables.gl/dev_hello_op/dev_hello_op.html
https://cables.gl/docs/5_writing_ops/coding_ops



doc

issues

youtube id

caniuse query

collections

related ops

Inputs

JavaScript (String)

a valid javascript snippet


Library (String)

url to a library (can also be uploaded to cables) - be aware that you are completely on your own here, no support (keep CORS in mind, though)


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

CustomOp - Example

Open Example In Editor


Youtube Video Tutorial

Changelog


created op
2021-01-28 - stephan

Ops.User.stephan.CustomOp renamed to Ops.Cables.CustomOp
2021-01-28 - stephan

cloned op from Ops.Cables.CustomOp
2021-08-04 - stephan

Ops.User.stephan.CustomOp_v2 renamed to Ops.Cables.CustomOp_v2
2021-08-04 - stephan

clean up old out-ports on load
2022-02-03 - stephan

loading libs from uploaded files respects prefixAssetPath in export now
2022-02-03 - stephan

fix error when copy pasting
2022-02-03 - stephan

Examples using CustomOp_v2 ()

Public Patches using CustomOp_v2 ()