start python script in blender from Java


(2abstract4u) #1

how can i do that ?

i got the blend file opened , but can´t find a way to execute the script an that file also ! iit only works with alt-P then !

is there a parameter to execute script from another programm?

Thanxx


(S68) #2

You might try to set the script as a scriptlink OnLoad

Stefano


(2abstract4u) #3

thanxx solved it like that


(antont) #4

why are you running Blender from Java BTW?

~Toni


(2abstract4u) #5

ITS SOLVED

but its an server application in java which kicks a python script !

but the linkin works fine
FORGOT THAT! :expressionless:


(antont) #6

you can also pass the script as a command line argument, but OnLoad is cool too. do note that scriptlinks have to be enabled for it to work.

have fun with the server :slight_smile: