HI
i'm making a python script which needs (well.. I'd say “i'd like to”) telnet houdini (which have ‘openport 12000’ from textport windows) .. everything runs fine if i run “telnet localhost 12000” from shell…. and telnetlib.Telnet(“localhost”, 12000) gives me no error. Netstat gives me a ESTABLISHED connection… but then i got nothing more..
write() gives me no output (hence i guess no errors)
read() gives me no output … (tried read_until() but i then have a stucked telnet session since there's no output back from my write() commands)
any guess?
thanks in advance.
cheers.
python telnetlib
7694 11 0-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
-
- JColdrick
- Member
- 4140 posts
- Joined: July 2005
- Offline
I haven't personally used the library you're referring to, but have you read the Python to Houdini section [odforce.net] on the odforce wiki? It uses the more generic socket library. Not sure of any advantage in using horrible old insecure telnet protocol…
Cheers,
J.C.

Cheers,
J.C.
John Coldrick
-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
… yup thanks 
actually that link ws my start… but after a week or so or learning python.. i went back to the “telnet” thing.. and i totally forgot i started from that Odforce page! ehehe… too much work.. i need holydays.
cheers

actually that link ws my start… but after a week or so or learning python.. i went back to the “telnet” thing.. and i totally forgot i started from that Odforce page! ehehe… too much work.. i need holydays.
cheers
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
hm…. anyone knows how to “create shop from vop network” … with Hscript command?
since I'm going on with my little python parser.. i now need to create Shops from the VOP i just created.. using Hscript commands.
thanks in advance for any help.
cheers
since I'm going on with my little python parser.. i now need to create Shops from the VOP i just created.. using Hscript commands.
thanks in advance for any help.
cheers
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
-
- wolfwood
- Member
- 4344 posts
- Joined: July 2005
- Offline
sum][one
…. any idea? :roll: :roll: :roll:
Use the help.

/ -> help -k vop
dsoinfo ophelp optype opunhide otwrite vopwritevfl
opglob
vopwritevfl looks promising….
help vopwritevfl
vopwritevfl
Writes code generated by a VOPNET to a file.
USAGES
vopwritevfl <vop_node> <vfl_file>
OVERVIEW
<vop_node> can be either a VOP node or a VOPNET node. If you
specify a VOP node, the command will use its enclosing VOPNET.
You should specify <vop_node> relative to the current node in
the network hierarchy.
EXAMPLES
| opcf /vex vopwritevfl surface1 $HIH/vex/Surface/surface1.vfl
Write the surface1 VFL code to the proper VEX subdirectory for
VEX Surface shaders.
if(coffees<2,round(float),float)
-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
hm…. iused the help actually.. but… then I'll have to compile the .vfl?
what i wanted actually.. was the shaders in my SHOP network directly.. like rightclick does.. but with a hscript…
i'll give a try to your advice tought…
cheers.
what i wanted actually.. was the shaders in my SHOP network directly.. like rightclick does.. but with a hscript…
i'll give a try to your advice tought…
cheers.
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
-
- Le_monkey_butt
- Member
- 166 posts
- Joined: Feb. 2006
- Offline
You may know this already or tried it, but what about using “opscript” after doing the RMB? When I want the hscript for an action or something else, I use “opscript” command and… ok go through the dirt it will give me.
I will try to have a look as I might need the same command soon.
I will try to have a look as I might need the same command soon.
Time to get out of this messy world.
-
- wolfwood
- Member
- 4344 posts
- Joined: July 2005
- Offline
-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
Wolfwood
Well once you have the .vfl saved out to disk you can use vcc -l myOTL.otl myVFL.vfl
Or like they said on the mailing list….as soon as you create a VOPNet in Houdini you can just go to /shops and opadd your shop there.
i mus add lost that message then .. i got problem with mail server during last day …. it might pop up later then..
thanks.
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
-
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
Wolfwood
Or like they said on the mailing list….as soon as you create a VOPNet in Houdini you can just go to /shops and opadd your shop there.
LOL … that was just what i was looking for… and it was SO easy ? …hm…. thanks then
… sad i didnt received the mailing list first..many thanks.. now i can go on with my useless script

cheers
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
-
- wolfwood
- Member
- 4344 posts
- Joined: July 2005
- Offline
-
- Quick Links


