Max Object creation?

cashman's icon

Hey all. I've made a simple little object in MaxMSP but don't know how to close it so that it can't be opened when you create it as an object in a new patch, basically I want my object to function in the same way that a standard object does. I figured it might be something to do with the 'this patcher' object but I can't for the life of me figure it out. I'm sure its a simple bit of coding but as they say they're only easy if you know the answers. If someone can help me I'll post the object up so that you can tell me if someone has made one before (which they probably have).. thanks

Joost Rekveld's icon

did you look at the tutorials at all ? (with the explanation in the
docs..)
tutorial 27 for example ??

-------------------------------------------

Joost Rekveld
----------- http://www.lumen.nu/rekveld

-------------------------------------------

"The mystery of the world is the visible, not the invisible"
(Oscar Wilde)

-------------------------------------------

cashman's icon

Yeah I've looked at that patch.. I've got my object working in new patches and I've been able to create a help file but the tutorial 27 doesn't tell you how to close your objects so that people can't click on them and have them open as if they were a sub patch.

Joost Rekveld's icon

aha,
got confused by the subjectline of your email there, and missed a
couple of "n't" because of reading too quickly.
can't answer your question, but why not hide the object you don't want
people to open ?

ciao,

Joost.

-------------------------------------------

Joost Rekveld
----------- http://www.lumen.nu/rekveld

-------------------------------------------

"Politicians should read science fiction,
not westerns and detective stories."
(Arthur C. Clarke)

-------------------------------------------

cashman's icon

thats not really what I want to do.. If I figure it out I'll let you know how since it seems pretty vital to me.

thanks for tryin though

Peter Castine's icon

Abstractions (patches that function as objects) are openable. If you
want a non-openable object, you will have to write it in C (or maybe
Java).

If you're concerned about "copy protection" or some such, you can
save the window position at some impossible screen cooridinates like
(8000, 8000). But this can be circumvented post facto pretty easily.

What's the problem with letting people see how the innards work?

-- P.

-------------- http://www.bek.no/~pcastine/Litter/ -------------
Peter Castine +--> Litter Power & Litter Bundle for Jitter

iCE: Sequencing, Recording & |home | chez nous|
Interface Building for |bei uns | i nostri|
Max/MSP Extremely cool http://www.castine.de
http://www.dspaudio.com/

Stefan Tiedje's icon

First select all and hide, and place an active object which immediatly
closes the patch after its in front.

But beware, activate that function only after you have finished the
abstraction...

This will not prevent anybody from looking into your patch, you can open
any patch as text and just change the active object into something else.
Then it would be openable again.

trying to open this might drive you crazy...

Stefan

Max Patch
Copy patch and select New From Clipboard in Max.

--

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

-------------------------x----
--_____-----------|-----------
--(_|_ ----|-----|-----()----
-- _|_)----|-----()-----------
----------()------------x-----

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09